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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing a refresh after changing innerHTML

Status
Not open for further replies.

MattWoberts

Programmer
Oct 12, 2001
156
GB
Hi,

I have an HTML page that creates an excel spreadsheet "on the fly". I am trying to write a percent complete thing, and am peridically changing the innerHTML of some text on the page to update a number. The problem is that the number wont update once until the page has finished creating the spreadsheet - is there a way of forcing the page to update/refresh the innerHTML once changed????

I have tried document.recalc() and also document.refresh(). The first does nothing and the second gives an error.

Any ideas welcome :)

 
you could try

window.self.location.reload()

dunno if it will work in this situation tho..

:)
 
Tried window.self.location.reload() but it doesn't work :( It refreshes the whole window and seems to start back at the beginnning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top