How to avoid refresh page ?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngclient' list.


li
-- Moved from [aspngfreeforall] to [aspngclient] by Tim <Click here to reveal e-mail address> --

I use the text box to make user enter the value
<input type=text onchange="ChangedValue();">
After I enter value, I press enter. But the page is refresh . What reason ?
I don't want to page refresh .

Thanks

Reply to this message...
 
    
Tim
Hello,

Make sure the focus is not on the submit button. If you press the enter =
key, the form will submit...

----- Original Message -----
From: "li" <Click here to reveal e-mail address>
To: Click here to reveal e-mail address
Sent: Fri, 26 Jul 2002 06:58:08 -0600
Subject: How to avoid refresh page ?
[Original message clipped]

Reply to this message...
 
    
Domina Tang
Even the focus is on Textbox, when press enter, form is submitted.
If enable multi-line attribute of textbox, when press enter, cursor is set
to new line of textbox.
But I don't know handle it if just want one line Textbox.

-----Original Message-----
From: Tim [mailto:Click here to reveal e-mail address]
Sent: Friday, July 26, 2002 10:20 AM
To: aspngclient
Subject: [aspngclient] Re: How to avoid refresh page ?

Hello,

Make sure the focus is not on the submit button. If you press the enter
key, the form will submit...

----- Original Message -----
From: "li" <Click here to reveal e-mail address>
To: Click here to reveal e-mail address
Sent: Fri, 26 Jul 2002 06:58:08 -0600
Subject: How to avoid refresh page ?
[Original message clipped]

| [aspngclient] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT

Reply to this message...
 
    
Jose Fuentes
Use client side vbs or js to use the onkeypress event or onkeyup event of
the page and/or control. Once done you can avoid having it submit.
You can then trap the enter button which is code 13 and do something else
with it.
Hope that helps.

ClassicFS
Joe Fuentes
Systems Analyst

-----Original Message-----
From: Domina Tang [mailto:Click here to reveal e-mail address]
Sent: Friday, July 26, 2002 10:24 AM
To: aspngclient
Subject: [aspngclient] Re: How to avoid refresh page ?

Even the focus is on Textbox, when press enter, form is submitted.
If enable multi-line attribute of textbox, when press enter, cursor is set
to new line of textbox.
But I don't know handle it if just want one line Textbox.

-----Original Message-----
From: Tim [mailto:Click here to reveal e-mail address]
Sent: Friday, July 26, 2002 10:20 AM
To: aspngclient
Subject: [aspngclient] Re: How to avoid refresh page ?

Hello,

Make sure the focus is not on the submit button. If you press the enter
key, the form will submit...

----- Original Message -----
From: "li" <Click here to reveal e-mail address>
To: Click here to reveal e-mail address
Sent: Fri, 26 Jul 2002 06:58:08 -0600
Subject: How to avoid refresh page ?
[Original message clipped]

| [aspngclient] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT

| [aspngclient] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT

Reply to this message...
 
    
li
Now I add button .After user enter the value, they click button then I can
do ..

I still wonder why we can't use the onchange
to call javascript after user press enter key
without submit the form ?
I want to do in the client-side function without submit to server

----- Original Message -----
From: "Tim" <Click here to reveal e-mail address>
To: "aspngclient" <Click here to reveal e-mail address>
Sent: Friday, July 26, 2002 8:20 AM
Subject: [aspngclient] Re: How to avoid refresh page ?

Hello,

Make sure the focus is not on the submit button. If you press the enter
key, the form will submit...

----- Original Message -----
From: "li" <Click here to reveal e-mail address>
To: Click here to reveal e-mail address
Sent: Fri, 26 Jul 2002 06:58:08 -0600
Subject: How to avoid refresh page ?
[Original message clipped]

| [aspngclient] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT

-------------------------------------------
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

Reply to this message...
 
    
li
Hello Jose:

What means "trap the enter button which is code 13"

Also I didn't find the onkeyPress event for text box

----- Original Message -----
From: "Jose Fuentes" <Click here to reveal e-mail address>
To: "aspngclient" <Click here to reveal e-mail address>
Sent: Friday, July 26, 2002 9:52 AM
Subject: [aspngclient] Re: How to avoid refresh page ?

[Original message clipped]

-------------------------------------------
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com