What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » javascript POST?

javascript POST?
Author: Message:
fluffy_lobster
Veteran Member
*****

Avatar
Posts: -2

Posts: 1391
Reputation: 23
36 / Male / Flag
Joined: Nov 2002
RE: javascript POST?
You can also do it without changing the main page's navigation by using an iframe.  I'll do a quick dummy example:

First you make a page with your form on it, say it was called hiddenform.htm:
code:
<form name="hiddenForm" method="POST" target="myurlwhichtakespostdata.php"><input type="hidden" id="variableToSend" value=""></form>
Once you've done that, you can stick it on the following page with all the relevant javascript:
code:
<script language="Javascript"><!-- function sendData(theData){
document.all.myiFrame.getElementById('variableToSend').value = theData ;
document.all.myiFrame.forms['hiddenForm'].submit() ;
}
-->
</script>


<!-- All your page scripting here, run the javascript function sendData('whatever') when you wanna send the data -->

<iframe src="hiddenform.htm" frameborder="0" scrolling="NO" width="1" height="1"></iframe>
And you're done :P (Y)
02-20-2004 09:31 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
javascript POST? - by bach_m on 02-20-2004 at 03:02 AM
RE: javascript POST? - by WDZ on 02-20-2004 at 04:32 AM
RE: javascript POST? - by fluffy_lobster on 02-20-2004 at 09:31 AM
RE: javascript POST? - by CookieRevised on 02-20-2004 at 10:55 AM
RE: javascript POST? - by KeyStorm on 02-20-2004 at 11:57 AM
RE: javascript POST? - by bach_m on 02-20-2004 at 12:04 PM
RE: javascript POST? - by CookieRevised on 02-20-2004 at 01:41 PM
RE: javascript POST? - by KeyStorm on 02-20-2004 at 02:45 PM
RE: javascript POST? - by WDZ on 02-20-2004 at 03:39 PM
RE: javascript POST? - by KeyStorm on 02-20-2004 at 04:19 PM
RE: javascript POST? - by WDZ on 02-20-2004 at 05:10 PM
RE: javascript POST? - by KeyStorm on 02-20-2004 at 05:13 PM
RE: javascript POST? - by bach_m on 02-20-2004 at 08:21 PM
RE: javascript POST? - by CookieRevised on 02-20-2004 at 09:25 PM
RE: javascript POST? - by bach_m on 02-20-2004 at 11:20 PM
RE: javascript POST? - by CookieRevised on 02-21-2004 at 08:12 AM
RE: javascript POST? - by KeyStorm on 02-21-2004 at 12:33 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On