Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Java Script Problem

Reply
Thread Tools

Java Script Problem

 
 
Go Live
Guest
Posts: n/a
 
      12-17-2007
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.
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      12-17-2007
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)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute a script from another script and other script does notdo busy wait. Rajat Python 3 01-08-2010 02:05 PM
RE: How to execute a script from another script and other script doesnotdo busy wait. VYAS ASHISH M-NTB837 Python 2 01-07-2010 08:18 PM
Execute Ruby script over HTTP protocol as Java Script Speed Knownas Ruby 12 06-25-2009 03:10 PM
How to do many java script and other script on loading in sam layout Peter.Smith1981@gmail.com Javascript 3 10-07-2005 01:40 PM
Problem in executing a script on the server side ! Script found but nothing executed ! Cédric Rossé ASP .Net 1 11-09-2004 09:43 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57