4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 sending variables to different targets
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
thess
Junior WebHelper
Junior WebHelper


Joined: 02 Feb 2002
Posts: 2

PostPosted: Wed Feb 20, 2002 7:50 am (15 years, 8 months ago) Reply with QuoteBack to Top

My web site has frames, and i have put a form on it, i need that when the user press he submit button, the variables on it were sent to two different pages, one in mainFrame and the other one in leftFrame (for example). Is any way of doing it?
OfflineView User's ProfileFind all posts by thessSend Personal Message
death2all
Junior WebHelper
Junior WebHelper


Joined: 12 Feb 2002
Posts: 8
Location: Ninth Hell

PostPosted: Tue Feb 26, 2002 2:31 pm (15 years, 8 months ago) Reply with QuoteBack to Top

Try assigning a javascript function call to the onclick event of the submit button and then in the javascript function mess around with the variables and elements to do whatever you want
Javascript Example:
Code:

function button_click()
{
  document.mainFrame.location = 'http://somewhere/phpscript1.php?var='+document.text1.value;
  document.leftFrame.location = 'http://somewhere/phpscript2.php?var='+document.text2.value;
}

I have not tested the code so I don't know it's effects. Mess with it and tell me.

________________________________
Image
OfflineView User's ProfileFind all posts by death2allSend Personal MessageSend emailVisit Poster's WebsiteAOL Instant MessengerYahoo MessengerMSN MessengerICQ Number
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.071563 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme