IT Community - Software Programming, Web Development and Technical Support

.How do I make a link or form in one frame update another frame?

This is a discussion on .How do I make a link or form in one frame update another frame? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; .How do I make a link or form in one frame update another frame?...


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 07-27-2007, 03:21 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Question .How do I make a link or form in one frame update another frame?

.How do I make a link or form in one frame update another frame?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-27-2007, 03:45 AM
Senthilkumar Senthilkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 93
Senthilkumar is on a distinguished road
Default Re: .How do I make a link or form in one frame update another frame?

In the frameset document (the HTML document containing the <frameset> <frame> tags), make sure to name the individual frames using the NAME attribute. The following example creates a top frame named "navigation" and a bottom frame named "content":

<frameset rows="*,3*">
<frame name="navigation" src="navigation.html">
<frame name="content" src="content.html">
<noframes><body>
<!-- Alternative non-framed version -->
</body></noframes>
</frameset>Then, in the document with the link, use the TARGET attribute to specify which frame should be used to display the link. (The value of the TARGET attribute should match the value of the target frame's NAME attribute.) For example:

<a target="content" href=...>

To target a form submission, use the TARGET attribute of the FORM element, like this:

<form target="content" action=...>

Note that when forms are processed entirely by JavaScript, the target frame must be specified in the JavaScript. The value of the TARGET attribute is irrelevant.

Normally, the default target frame is the current frame ("_self"). To change the default target for every link/form on the page, use the TARGET attribute of the BASE element, like this:

<base target="content">
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-27-2007, 04:02 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: .How do I make a link or form in one frame update another frame?

In the frameset document (the HTML document containing the <frameset> <frame> tags), make sure to name the individual frames using the NAME attribute. The following example creates a top frame named "navigation" and a bottom frame named "content":
<frameset rows="*,3*">
<frame name="navigation" src="navigation.html">
<frame name="content" src="content.html">
<noframes><body>
<!-- Alternative non-framed version -->
</body></noframes>
</frameset>
Then, in the document with the link, use the TARGET attribute to specify which frame should be used to display the link. (The value of the TARGET attribute should match the value of the target frame's NAME attribute.) For example:

<a target="content" href=...>
To target a form submission, use the TARGET attribute of the FORM element, like this:
<form target="content" action=...>
Note that when forms are processed entirely by JavaScript, the target frame must be specified in the JavaScript. The value of the TARGET attribute is irrelevant.
Normally, the default target frame is the current frame ("_self"). To change the default target for every link/form on the page, use the TARGET attribute of the BASE element, like this:
<base target="content">
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
Cross-Frame Scripting P.Sathiya PHP Programming 60 03-20-2008 04:09 AM
Add Frame to a gif Savior C# Programming 10 02-25-2008 10:37 PM
Frame works in php venkatbi PHP Programming 10 12-05-2007 04:00 AM
Why do my links open new windows rather than update an existing frame? oxygen HTML, CSS and Javascript Coding Techniques 1 07-27-2007 03:59 AM
Goto the particular frame on Keystroke oxygen Flash Actionscript Programming 1 07-21-2007 02:45 AM


All times are GMT -7. The time now is 09:05 AM.


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

SEO by vBSEO 3.0.0