Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 22nd, 2005, 03:52 AM
Friend of Wrox
 
Join Date: Jun 2004
Location: Alhambra, ca, USA.
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can you preload child html files to 1parent html?

Hello
I know that you can preload image files to html files like below:

function PW_Preload(src)
{
   var img = new Image();
   img.src=src;
}

function PreloadGraphics()
{
 PW_Preload('image1.gif');
 PW_Preload('image2.gif');
}

Can you preload several child html files to 1 parent html file with iframe???

Please don't ask me why I am doing this, I just need to know how.

Reply With Quote
  #2 (permalink)  
Old January 22nd, 2005, 06:23 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

I think you can do this with an <iframe> tag. Set the src attribute of the iframe to the page you want to preload, and then use CSS to hide the entire iframe.
That way, the contents will be loaded, while the frame won't be visible in the browser.

Can I ask why we cannot ask why you want to do this? ;)

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #3 (permalink)  
Old January 22nd, 2005, 01:27 PM
Friend of Wrox
 
Join Date: Jun 2004
Location: Alhambra, ca, USA.
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,
It is too difficult to explain in word. I can email you my website link if you want to see why.

Reply With Quote
  #4 (permalink)  
Old January 22nd, 2005, 01:28 PM
Friend of Wrox
 
Join Date: Jun 2004
Location: Alhambra, ca, USA.
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by bekim
 Imar,
It is too difficult to explain in words. I can email you my website link if you want to see why.

Reply With Quote
  #5 (permalink)  
Old January 22nd, 2005, 04:17 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Sure, if you want to. You can send me an e-mail through my profile page....

Cheers,

Imar
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
jsp files and html files jamara ASP.NET 2.0 Basics 1 November 20th, 2006 07:03 AM
Generating multiple HTML files dunpeal ASP.NET 1.0 and 1.1 Professional 6 August 24th, 2006 07:16 AM
Two HTML files Question bonekrusher XSLT 2 August 10th, 2006 02:04 PM
.php files vs .html files pbuongiovanni PHP How-To 2 January 5th, 2006 04:15 AM
Open Window and Write HTML to Child Advice fs22 Javascript How-To 3 August 6th, 2005 02:04 PM



All times are GMT -4. The time now is 08:12 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.