IT Community - Software Programming, Web Development and Technical Support

Can I update two (or more) frames simultaneously?

This is a discussion on Can I update two (or more) frames simultaneously? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all..... How can I update two (or more) frames simultaneously? Thanks & Regards itbarota..........


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-13-2007, 02:04 AM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 547
itbarota is on a distinguished road
Default Can I update two (or more) frames simultaneously?

Hi all.....

How can I update two (or more) frames simultaneously?

Thanks & Regards
itbarota.......
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-13-2007, 03:00 AM
Pvinothkumar Pvinothkumar is offline
D-Web Analyst
 
Join Date: Sep 2007
Posts: 237
Pvinothkumar is on a distinguished road
Default Re: Can I update two (or more) frames simultaneously?

Hi all.....

The easiest way to update several frames simultaneously is to have a JavaScript function that loads a new page into each of the frames to be updated. For example, if you have two frames, left and right, then the function for updating both frames might look like this:

function updateBothFrames() {
top.left.location="newpage1.htm";
top.right.location="newpage2.htm";
}

This function can be called when the user presses a button or clicks a hyperlink. The following example shows the HTML code for a button and hyperlink that invoke the function:

<a href="javascript:updateBothFrames()">Click here</a>
<input type=button value="Press me" onClick="updateBothFrames()">
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
frames kesuu Web Design Help 1 03-03-2008 05:51 AM
Can I update two (or more) frames simultaneously? GDevakii HTML, CSS and Javascript Coding Techniques 1 10-26-2007 07:17 AM
Why aren't my frames the exact size I specified? oxygen HTML, CSS and Javascript Coding Techniques 1 07-27-2007 03:50 AM
How to get the value in the dictionary both Key and Value collections simultaneously? oxygen C# Programming 1 07-26-2007 08:00 AM
How to display the values from a hashtable both key and value simultaneously? kingmaker C# Programming 1 07-20-2007 07:26 AM


All times are GMT -7. The time now is 12:50 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0