Java Script Problem

Discussion in 'ASP General' started by Go Live, Dec 17, 2007.

  1. Go Live

    Go Live Guest

    Hi,

    I have one problem in javascript embedded in ASP.
    I have one search text box and one image file button. So that when
    user enter some text in the text box and click button it displays the
    result in other page. i have coded javascript in "On Click " event in
    the button.

    Now the search result is displayed only when i click the button
    through the mouse. But when i enter text in the textbox and press
    enter it shows the content of parent webpage in child page.

    Do i need to do anything in the form tag so that it works in both
    ways.

    Thank you very much.
     
    Go Live, Dec 17, 2007
    #1
    1. Advertising

  2. Go Live

    Evertjan. Guest

    Go Live wrote on 17 dec 2007 in microsoft.public.inetserver.asp.general:

    > Hi,
    >
    > I have one problem in javascript embedded in ASP.


    "embedded"?

    > I have one search text box and one image file button. So that when
    > user enter some text in the text box and click button it displays the
    > result in other page. i have coded javascript in "On Click " event in
    > the button.
    >
    > Now the search result is displayed only when i click the button
    > through the mouse. But when i enter text in the textbox and press
    > enter it shows the content of parent webpage in child page.
    >
    > Do i need to do anything in the form tag so that it works in both
    > ways.


    That is a clientside javascript problem.

    This NG is for ASP an only serverside executed javascript is on topic
    here.

    For clientside javascript try:

    comp.lang.javascript

    and add the nost simple part of the offending code.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Dec 17, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Cédric Rossé
    Replies:
    1
    Views:
    542
    Cédric Rossé
    Nov 9, 2004
  2. Rajat
    Replies:
    3
    Views:
    730
    Jorgen Grahn
    Jan 8, 2010
  3. VYAS ASHISH M-NTB837
    Replies:
    2
    Views:
    588
    Jan Kaliszewski
    Jan 7, 2010
  4. Speed Knownas
    Replies:
    12
    Views:
    324
    Mike Stephens
    Jun 25, 2009
  5. Replies:
    3
    Views:
    139
Loading...

Share This Page