Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scrolling list not getting updated

Status
Not open for further replies.

nappaji

Programmer
Mar 21, 2001
76
US
I have 2 scrolling lists . When i select an entry under the first one,and hit a "Go" button, the second one gets filled out.

Now, if I select one/more entries in the second list, get back to the first list, select a different entry , hit "Go", and then get back to the entry I first selected and again hit "Go", the entries which I selected are not highlighted.

I am sure its a caching problem. Does any one know how to fix this????

Thanks for ur help.
 
Somewhere in your script you can do this (keep in mind there are much, much better ways to formulate and build time strings, and I am sure someone out there can provide a solution for sending HTTP headers from the script instead of having to build HTML type headers):

#!/usr/local/bin/perl

($sec,$min,$hour,$mday,$month,$year,$wday,$yday,$isdst) = (localtime)[0..8];

@month_names = ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
@weekday_names = ('Sun','Mon','Tue','Wed','Thu','Fri','Sat');

$year_now = $year + 1900;

$time_now = $weekday_names[$wday].", ".$mday." ".$month_names[$month]." ".$year_now." ".$hour.":".$min.":".$sec." GMT";

print "Content-type: text/html\n\n";

print qq(<META HTTP-EQUIV=&quot;Cache-Control&quot; CONTENT=&quot;must-revalidate&quot;>
<META HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;Mon, 26 Jul 1997 05:00:00 GMT&quot;>
<META HTTP-EQUIV=&quot;Last modified&quot; CONTENT=&quot;$time_now&quot;>
<META HTTP-EQUIV=&quot;Cache-Control&quot; CONTENT=&quot;no-cache, must-validate&quot;>);


Basically, you want these meta tags to go at the top of your HTML files that you don't want cached.

chad. ICQ: 54380631
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top