Results 1 to 6 of 6

Thread: handling textbox click event...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    india
    Posts
    71

    Question handling textbox click event...

    hi all...

    my problem may be very simple but still i cant do that! please help me.

    i am having a textbox in a form i want to call some function in asp on click event of the textbox. the function contains code about database connectivity and retriveing values for the textbox value. i dont know how to do this. i cant use script tag or even if i try through asp,it's giving me error like function not defined.

    anyone having idea about this please help

    thanks in advance

    ilikevb

  2. #2
    Addicted Member
    Join Date
    Jul 2002
    Location
    Brussels, Belgium
    Posts
    139
    Put your aSP function in a new ASP file.
    In the onclick event of your textbox, put some javascript to open the ASP in a new file (window.open)

    You can close the new window with the asp page by putting "window.close" in the the "onload" event

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    india
    Posts
    71
    hi...

    ok. but now i want to pass the value of textbox to the function or that new file. bcoz that value is to be used to get some values from database. how to do that?

    thanks
    ilikevb

  4. #4
    Addicted Member
    Join Date
    Jul 2002
    Location
    Brussels, Belgium
    Posts
    139
    use a querystring variable

    e.g. mypage.asp?text1=blablabla

    you can retrieve this value in your asp page:

    request.Querystring("text1")

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    india
    Posts
    71

    Thumbs up thanks

    hi...

    thanks a lot!! It solved my problem

    ilikevb

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    india
    Posts
    71
    by the way, what do i have to do if i want to open the asp page in the same window?

    ilikevb

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