Results 1 to 3 of 3

Thread: how can i do this using java script

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    how can i do this using java script

    hi ,
    i have four textboxes, and a hyperlink. 4 textboxes contain some text.when user changes the text, i have track it(this i ahve done using onChange event).But how can i store the value of the textboxes in a variable on clicking the link using javascript?

    Thanks and Regards
    Vivek.s

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602

    Re: how can i do this using java script

    <html>
    <head>
    <title></title>

    <script>
    function ProcessClick(){
    var sOne;
    sOne = frmOne.txtOne.value;
    alert(sOne);
    }
    </script>

    </head>
    <body>

    <form name = "frmOne">
    <input type = "text" name = "txtOne">
    </form>

    <br>

    <a href = "#" OnClick = "ProcessClick();return false;">Process Link</a>

    </body>
    </html>
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: how can i do this using java script

    hi,
    Thanks a lot!

    i am using cold fusion, i ahve got the javascript value, so how can i check it in coldfusion and process further?

    this is my code as of now

    function setFlag(target)
    {

    <cfif target.name neq "sadasd">
    alert("hello");
    </cfif>

    }

    but this throws a error in coldfusion since it is not its variable, so how can i check?



    also i have got some form varaibles from previous page, how can i set them the new values using javascript?

    thanks and regards
    vivek.s
    Last edited by vivek.shankar; Feb 16th, 2005 at 11:45 AM.

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