Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Form Action 3

Status
Not open for further replies.

Domino2

Technical User
Jun 8, 2008
475
GB
I am using frames. Is there a way or method to produce multiple form actions, ie click submit on form in frame1, the result changes the form in Frame1 with another, but also put a new form in Frame2. Frame3 is a banner and stays the same. Hope thats clear and comes under PHP. They are all PHP forms. Thanks
 
Thanks, however if java disabled on user machine then it's dead. I windered if it was possible to do a series of forms that went through doing nothing but just redirecting, with different target values in. I know its probably a waste of rescources but is it feaseable.
 
within the context of your question no. if you want something to happen in frame 2 AND frame 1 that is triggered by something in frame 1 you need to use javascript. if you wanted something to happen in frame 1 that is triggered by an event in frame 1, or in frame2 that is triggered by an event in frame1 then you could use plain html. the problem here is wanting both.
you might be able to work around it using iframes.

java, by the way, has nothing to do with it. i was talking about javascript - which is totally different to java.

you might want to do some research on how many people have javascript turned off before spending hours designing a solution that caters for less than 0.5% of your visitors.
 
It seems like you have made a mistake in the concept of the page. If you want to update only a part of the page, then you could use frames (although with available server-side scripting (which eliminates the need to repeat page elements) and AJAX (which can help you with quick updates of only a portion of a page), you might even skip the frames altogether.

However, since you decided to use frames, you should play by the rules of the frames. And that is that every command updates a single frame. If you want to update two frames at one time, rethink your strategy -- probably it is better to have on frame instead of two.

I have to admit that I do not see the need to use frames anymore. If they had certain advantages when the first appeared, these advantages have now been accomplished better through other means.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
or you could split the page up using <div> and use CSS to place your elements.
I think these days if Javascript is disabled you just take it on the chin and not do business with that person. Although some people dont like it you need it for some client side priocessing most importanlty Ajax
 
Thanks both, I think I will take a look at Ajax as well as how I can get things down to single form/pages, may follow advice away from frames.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top