HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 5th, 2000, 03:30 AM
naseem naseem is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 1 naseem User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to naseem
Hi
I have a problem in javascript/HTML
I set the document.src property of IFRAME tag to a HTM file .
How I know that the htm file is fully read(opened or say status) to display its content into the DIV tag through document.innerHTML property.
<div id="divIE"></div>
<div id="divIECont">
<iframe name="my" scrolling="No" width="500" height="65%" frameborder="No" ></iframe></div>
</div>

i set the src property of Iframe with in a function "changeSrc()" and need to show the content of "plastic.htm" in the Div through function "show()"

var pp1;
function changeUrl(url)
{
document.all["my"].src = url;
pp1 = setTimeout("track()",500);

}

function track() {
document.write(my.document.onload)
if (my.document.readyState == ‘complete’) {
ddd();
}
else {
pp1 = setTimeout("track()",50);
}
}

function ddd()
{
divIE.innerHTML = my.document.body.innerHTML;
clearTimeout(pp1);


}

The content will show when the size of the file is not too large
But when the size of file is large and it will not loaded in 50 milliseconds then content will not appear.
so you know any property or method as we find the status of file (load completely or not) and then call the function "Show()" to visible the content in Div tag.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > IFRAME


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway