Results 1 to 5 of 5

Thread: JavaScript

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    84

    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 ??

  2. #2
    Junior Member ISDP's Avatar
    Join Date
    Mar 2002
    Posts
    28
    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.

  3. #3
    Junior Member ISDP's Avatar
    Join Date
    Mar 2002
    Posts
    28

    Angry

    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

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    84
    No that's not what I wanted.
    I wanted to know what the person filled in in the previous page.

  5. #5
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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
  •  



Click Here to Expand Forum to Full Width