How to display the details in right frame?

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Aug 2008
Posts: 28
Reputation: Vandithar is an unknown quantity at this point 
Solved Threads: 0
Vandithar Vandithar is offline Offline
Light Poster

How to display the details in right frame?

 
0
  #1
May 22nd, 2009
Hi,

I have 2 frames. In left panel i have a hyper link.

Whenever i click on hyper link (on the left panel) of the page should open in right panel of the frame.

Here is the frame code.

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <html>
  2. <FRAMESET cols="200,*">
  3. <frame name="left" src="page.html">
  4. <frame name="right" src="#">
  5. </FRAMESET>
  6. </html>

I tried like this but its not displaying the page in right panel of page.

Here is the code.

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. function fncSelected(form)
  4. {
  5. alert("entered location");
  6. parent.right.location.href=(form.form1.product.value);
  7. }
  8. </script>
  9. </head>
  10. <a href='http://www.google.com' name='product' onClick='fncSelected(this.form)'> strproduct</a>
  11. </html>

what should i change in order to get the display in right panel???

when user clicks on hyperlink on left panel of the frame the page should open in right panel!!

How can i do that???

Any suggestions???

Regards
Vanditha
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 38
Reputation: _Nestor is an unknown quantity at this point 
Solved Threads: 4
_Nestor _Nestor is offline Offline
Light Poster

Re: How to display the details in right frame?

 
0
  #2
May 22nd, 2009
This web page should help you
http://www.w3schools.com/HTML/html_frames.asp
There is an example on it called navigation frame that does what you want
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

Re: How to display the details in right frame?

 
0
  #3
May 22nd, 2009
Assuming that this is the your leftFrame. Then simply add target="rightFrameId" attribute with your links'.
Left Frame.html
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. <title>Left Frame</title>
  4. </head>
  5. <body>
  6. <a target="right" href="http://www.google.com/" id="product">strproduct</a>
  7. </body>
  8. </html>
Javascript is not necessary on this issue.

Hope it helps you...
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 28
Reputation: Vandithar is an unknown quantity at this point 
Solved Threads: 0
Vandithar Vandithar is offline Offline
Light Poster

Re: How to display the details in right frame?

 
0
  #4
May 25th, 2009
Originally Posted by essential View Post
Assuming that this is the your leftFrame. Then simply add target="rightFrameId" attribute with your links'.
Left Frame.html
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. <title>Left Frame</title>
  4. </head>
  5. <body>
  6. <a target="right" href="http://www.google.com/" id="product">strproduct</a>
  7. </body>
  8. </html>
Javascript is not necessary on this issue.

Hope it helps you...
Hi,

Thanks a lot!!

I t really helped me!

Regards
Vandhita
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 28
Reputation: Vandithar is an unknown quantity at this point 
Solved Threads: 0
Vandithar Vandithar is offline Offline
Light Poster

Re: How to display the details in right frame?

 
0
  #5
May 25th, 2009
Originally Posted by _Nestor View Post
This web page should help you
http://www.w3schools.com/HTML/html_frames.asp
There is an example on it called navigation frame that does what you want
Hi,

Thanks for the reply!!

Regards
Vandita
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC