Computing.Net > Forums > Web Development > Firefox and Dropdownlist

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Firefox and Dropdownlist

Reply to Message Icon

Name: davser
Date: April 16, 2007 at 10:56:09 Pacific
OS: Windows XP
CPU/Ram: Centrino/512
Product: Intel
Comment:

I have a problem with my dropdownlist in firefox...I load information for a file, everything is perfect until i refresh, then firefox lose all my data in the dropdownlist.
Can anybody help???No problem in IE



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: April 16, 2007 at 11:37:38 Pacific
Reply:

Can you elaborate on "I load information for a file"?

Sounds like a cache issue. Are you using a server-side implementation?

Michael J


0

Response Number 2
Name: davser
Date: April 17, 2007 at 08:44:48 Pacific
Reply:

Yes I'm using server-side implementation (Apache and PHP)
I read the values of the file in variables, then I write to the dropdownlist.

foreach ($fich as $line)
echo "<option value....

Cache from web server, I think dont make sense (everything is ok on explorer) maybe Firefox post cache (but it works in the first time...)???


0

Response Number 3
Name: Michael J (by mjdamato)
Date: April 17, 2007 at 14:41:30 Pacific
Reply:

It appears that IE is caching your values locally and Firefox is not. Since you most likely have not specified caching rules for the page each app is making up it's own mind of how to handle it.

Try adding this at the top of the PHP page to force the browser to cache the form data:

header("Cache-control: private");

Michael J


0

Response Number 4
Name: davser
Date: April 19, 2007 at 03:07:13 Pacific
Reply:

I have tried the line header("Cache-control: private"); and still no cache.

But your right, firefox is caching the values
if I do a remote access. So the problem is with my local test server. Less bad, no problem for the client ;)

but I'm still looking for a way to make firefox cache locally my dropdownlist.

Thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Wierd layout problem Apply CSS across entire s...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Firefox and Dropdownlist

CSS font for Firefox www.computing.net/answers/webdevel/css-font-for-firefox/2295.html

Firefox No No, IE Yes Yes www.computing.net/answers/webdevel/firefox-no-no-ie-yes-yes/992.html

Embedded sound loops in Firefox www.computing.net/answers/webdevel/embedded-sound-loops-in-firefox/1279.html