Tra71
asked on
Refresh / Reload Div Without Reloading Page
Hi,
I have a div on a page which I would like to refresh/load on a timer, say every 5 mins using java, is this possible? If so, any help would be greatly appreciated :)
I've attached the div.
I have a div on a page which I would like to refresh/load on a timer, say every 5 mins using java, is this possible? If so, any help would be greatly appreciated :)
I've attached the div.
<div id="DiaryNotice" style="position:absolute; top:0px; left:200px; width:1000px; font-size:63px; font-weight:bold; color:#ED9336; cursor:default;">
<% strSQL = "Select * From [Diary Action Home] WHERE [Diary FAO] = '" & Replace(session("Name"),"'","''") & "';"
objRS2.Open strSQL, objConn
If Not objRS2.EOF Then%>
<marquee style="cursor:pointer;" onClick="window.open('Diary.asp?SourceTable=Diary Action Home');"> You have diary records overdue - click here to view...</marquee>
<%End If%>
<%objRS2.Close%>
</div>
and this is how to call JavaScript fuinction every 5 min:
http://stackoverflow.com/questions/2170923/whats-the-easiest-way-to-call-a-function-every-5-seconds-in-jquery
http://stackoverflow.com/questions/2170923/whats-the-easiest-way-to-call-a-function-every-5-seconds-in-jquery
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks I'm still looking at this...
ASKER
Sory for the delay, that worked great, thanks :)
With the help of JavaScript (not java) you should be able to do it; check this:
http://stackoverflow.com/questions/5316482/how-to-change-the-content-of-a-div-without-reloading-the-webpage