Link to home
Start Free TrialLog in
Avatar of Tra71
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.
<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>

Open in new window

Avatar of for_yan
for_yan
Flag of United States of America image


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
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tra71
Tra71

ASKER

Thanks I'm still looking at this...
Avatar of Tra71

ASKER

Sory for the delay, that worked great, thanks :)