We help IT Professionals succeed at work.
Get Started

Refresh / Reload Div Without Reloading Page

Tra71 asked
Last Modified: 2012-08-14

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%>

Open in new window

Watch Question
Distinguished Expert 2020
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE