OZONE Asylum
Forums
DHTML/Javascript
loading div with javascript?
This page's ID:
30924
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi, I'm trying to create the functionality of an iFrame with a div. What I need to do is load / reload a div with a partial html file (no <html> or <body> tags) . The html file always has the same name, it just might change or be added to during a 24 hour period. I understand that I can do something like window.GetElementById(some-Div). innerHTML = "blah blah blah", but what I would like to do (upon initial load) is something like Window.GetElementById(some-div).src = "http://mysite.com/myfile", then, find someway to reload the div when needed. The reload would occur when a server side script runs that is called from an iframe, and the script writes some javascript code back to the page like parent.window.GetElementById(some-div).reload. BTW, I wanted to use a Div, instead of an iFrame, because the div would expand vertically. Does this have the slightest chance of working? Any suggestions?
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »