Firefox and Dropdownlist
|
Original Message
|
Name: davser
Date: April 16, 2007 at 10:56:09 Pacific
Subject: Firefox and DropdownlistOS: Windows XPCPU/Ram: Centrino/512Model/Manufacturer: 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
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Michael J (by mjdamato)
Date: April 16, 2007 at 11:37:38 Pacific
Subject: Firefox and Dropdownlist |
Reply: (edit)Can you elaborate on "I load information for a file"? Sounds like a cache issue. Are you using a server-side implementation? Michael J
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: davser
Date: April 17, 2007 at 08:44:48 Pacific
Subject: Firefox and Dropdownlist |
Reply: (edit)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...)???
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: Michael J (by mjdamato)
Date: April 17, 2007 at 14:41:30 Pacific
Subject: Firefox and Dropdownlist |
Reply: (edit)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
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: davser
Date: April 19, 2007 at 03:07:13 Pacific
Subject: Firefox and Dropdownlist |
Reply: (edit)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
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: