content

PHP library with Countries, States and Cities

I am currently working on a PHP application that puts me in the desperate need of all the Countries, States and Cities in the world. In the application, when you select a Country from the drop down menu, it loads up all the States in the selected Country into another drop down menu. When you then select a State from the newly generated ...

Distributing a Java program with content

For the past couple of months I've been working on a game in java for a university project. It's coming up to the end of the project and I would like to compile the project into a single file which is easy to distribute. The game currently runs from inside the IDE and relies on the working directory being set somewhere specific (i.e. the...

Asp.Net: Is it possible filtering a list in a content page by a value set in its master page?

hi all Is it possible filtering a list in a content page by a value set in its master page? I mean when a user clicks on a link button in master page a variable is set and then based on the value that variable, when loading a content page, a list in it is filtered? ...

How to filter adult words

Hi; I am developing a web application, and do not want people to publish adult (pornographic) content. So is there a service or a list of words which are porn related? Or is there another way to filter adult content? Thanks.. See also How do you implement a good profanity filter? ...

jquery slider shows all content on load

Hi, IE somehow shows the whole div when the page loads (just click a button to see it) befor it resizes to the right size. Is it possible to avoid this since it is really ugly: http://www.bbp.nl/luuk-test/wac/partners/ In FF it works perfectly fine (not the layout fully, but the slider) plz help. ...

Java webapp: adding a content-disposition header to force browsers "save as" behavior

Even though it's not part of HTTP 1.1/RFC2616 webapps that wish to force a resource to be downloaded (rather than displayed) in a browser can use the Content-Disposition header like this: Content-Disposition: attachment; filename=FILENAME Even tough it's only defined in RFC2183 and not part of HTTP 1.1 it works in most web browsers as...

fade in all divs of a page. once the content of the divs is loaded

Sorry, Ill try simplify my question. Basically, when a user goes to a page...all the divs on the page and the content of the div fade in. Once loaded. I was thinking maybe something like: $(window).load(function(){ $('#div').load(function () { $(this).fadeIn(4000); }); }); cheers ...

Scope of controls in asp.net content blocks

Just ran into some interesting problem. I've separated a panel from a asp:Content block to another. In the original asp:Content block still resides a asp:FormView with childs, which references multiple ObjectDataSources. These ObjectDataSource are defined in the same asp:Content block. The separated panel has child controls which are us...

Drupal: Sharing content across Multisite

I have 2 websites with similar content types. Let's say an event-content type with some cck fields in it. site1: events ( title, body, image ) site2: events ( title, body, image, onsite1) by the extra field at site2-events i want to give the possibility to the user to post his event on the ( main ) site1. Site1 and site2 are both on...

Load jQuery UI Accordion on the fly

I have this jQuery UI Tabs implemented. One of the tabs use AJAX to load the jQuery UI Accordion. I tried to load the Accordion after the content has been loaded. But nothing happend. Here is the code. The accordion is is Tab 2 (index 1). Anybody have a way to do this? Load the accordion based on user triggered action? $(functi...

Help with animation

I've used the "FeatureList" Jquery Plugin to make my own content slider. The script can be found here: http://pastebin.com/7iyE5ADu Here is an exemplificative image to show what I'm triyng to achieve: http://i41.tinypic.com/6jkeq1.jpg Actually the slider add a "current" class to an item (in the example the squares 1,2 and 3) and for e...

"Alert" and "if" changes behaviour of dom copying from iframe to div

Hi guys! Tried to make a little old school ajax (iframe-javascript) script. A bit of mootools is used for DOM navigation Description: HTML: 1 iframe called "buffer" 1 div called "display" JAVASCRIPT: (short: copy iframe content into a div on the page) 1) onLoad on iframe triggers handler(), a counter makes sure it only run once (th...

Event receiver on Content Type not triggered on WikiPageLibrary

Hello all, I created a new content type for a wiki page library. I added this content type to library by code (the interface did not allow this). Next, I added an event receiver to this content type (on ItemAdded and ItemAdding). My problem is that no event is trrigered. If I add this events directly to the wiki page library all works ...

Lightweight open source CMS - current situation

Hello, It happened that I need to pick up PHP based open source CMS. I did a small research and found many candidates. CMS made simple seems to be right choice, but I am not sure what's the current state, I know it was widely used time ago. I need it to be fully compliant with web standarts, lightweight (especially interface). It needs t...

What is the best way to semanticly structure a FAQ ?

I am wondering how I should structure a FAQ to keep semantic meaning of the content. I think of using defintion list, as the close relation between a question and an anwser may have together. What are your thoughts about this ? ...

In XPath how to select the element content

Hi all, Is there a way of writing an XPath expression to select the content of the element. e.g. <Element>xxx</Element> Assuming I can write XPath (/Element) to get Element how do I tweak the XPath to get xxxx returned rather than the Element wrapper? EDIT/ANSWER To do this in dom4j world use the Element.valueOf(String xpathExpres...

Ajax dynamic content from .aspx page

Hi, I'm using this Ajax script (http://www.dhtmlgoodies.com/index.html?whichScript=ajax-dynamic-content) to load content from an aspx page on another server than the page calling the content. So far I've learned that this is a no go. The problem seems to be that when using an absolute link to content the script fails as apposed to using ...

ActionScript 3.0 Getting Size/Coordinates From Loader Content

i'm attempting to position a textfield to the bottom left of an image that is added to the display list from the Loader() class. i don't know how to access the width/height information of the image. var dragSprite:Sprite = new Sprite(); this.addChild(dragSprite); var imageLoader:Loader = new Loader(); imageLoader.load(new URLRequest("...

How Can I have a Flash AS3 Projector load protected content?

How Can I have a Flash AS3 Projector load protected images/mp3s/videos from a password protected server? I have a bunch of content in a password protected directory that I do not want people to access unless it is in my flash Projector. Is this possible? ...

Squid proxy not serving modified html content

I'm trying to use squid to modify the page content of web page requests. I followed the upside-down-ternet tutorial which showed instructions for how to flip images on pages. I need to change the actual html of the page. I've been trying to do the same thing as in the tutorial, but instead of editing the image I'm trying to edit the htm...