Current location: Hot Scripts Forums » General Web Coding » JavaScript » iframe and double links


iframe and double links

Reply
  #1 (permalink)  
Old 07-26-05, 08:52 PM
Dragon Dragon is offline
New Member
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
iframe and double links

I have a page with 2 iframes on it. There are text links that will load one but I need more.
currently my link looks like this:
<a href="javascript:loadintoIframe('myframe1','measur e.html')">

when the link is clicked it needs to load myframe with a specific file and myframe1 with a different file at the same time.
myframe is strictly a graphic file. myframe1 is a text file.
each text link will load a pair of files.
is there any way this can be done?

Thanks
Dragon
Reply With Quote
  #2 (permalink)  
Old 08-05-05, 04:03 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Sure, just do <a href="javascript:loadintoIframe('myframe','pic.jpg ');loadintoIframe('myframe1','text.txt')">

The javascript: thingy (sorry, don't remember the proper name) lets you execute any code it follows standart JavaScript rules when it comes to the syntax. If you want to do two or more things you'd normaly put on multiple lines, just add keep adding after the semicolon... to the JS interpreter it doesn't matter if there's a new line or not between statements, as long as the semicolon is there.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 10:52 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.