|
-
Mar 16th, 2002, 05:32 PM
#1
Thread Starter
Lively Member
JavaScript
When I am using VBscript in HTML-code I can recieve text from e.g. a textbox with this code:
<%var1=request.form("theText")%>
or
<%var1=request.querystring("theText")%>
Can this be done in JavaScript, or must I use Perl or cgi or something else if I want it to work on Netscape ??
-
Mar 16th, 2002, 05:44 PM
#2
Junior Member
Hi,
Im a bit rusty on Javascript but if I remember correctly you want the following code:
string = document.form.text
Where form is the name of the form and
text is the name of the textbox
And obviously string is the name of the variable you wana set.
Hope this helps,
ISDP
Last edited by ISDP; Mar 16th, 2002 at 06:02 PM.
-
Mar 16th, 2002, 06:01 PM
#3
Junior Member
Hmm, no wait, thats not right, told you I was rusty, the right code is:
string = document.form.text.value
Value always remains as "value", unlike form and text it is not substituted for anything. Ive been having a few problems getting this working, so if you have any too, just say. I hope this is right now!
ISDP
-
Mar 17th, 2002, 05:31 PM
#4
Thread Starter
Lively Member
No that's not what I wanted.
I wanted to know what the person filled in in the previous page.
-
Mar 17th, 2002, 07:33 PM
#5
The picture isn't missing
thats not javascript you want.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|