Search:
Namespaces
Discussions
.NET v1.1
Feedback
onblur() or tab away
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngclient' list
.
Greg Bernhardt
-- Moved from [aspngfreeforall] to [aspngclient] by Tim Musschoot <
Click here to reveal e-mail address
> --
I have a textbox. I want a user to type in whatever. Then whenever the user
clicks out of the box or tabs out of the box I want an event to occur. Is
this possible?
thanks,
Greg
Reply to this message...
James Avery
Yeah, you named it in your subject. Onblur="dothis()"
Here is a link to a great javascript reference that I have always found
useful.
http://www.devguru.com/Technologies/ecmascript/quickref/javascript
_intro
.html
-----Original Message-----
From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, July 25, 2002 10:16 AM
To: aspngclient
Subject: [aspngclient] onblur() or tab away
-- Moved from [aspngfreeforall] to [aspngclient] by Tim Musschoot
<
Click here to reveal e-mail address
> --
I have a textbox. I want a user to type in whatever. Then whenever the
user clicks out of the box or tabs out of the box I want an event to
occur. Is this possible?
thanks,
Greg
| [aspngclient] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngclient.asp
= JOIN/QUIT
Reply to this message...
Greg Bernhardt
Is there a server-side equiv?
thanks,
Greg
-----Original Message-----
From: James Avery [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, July 25, 2002 12:21 PM
To: aspngclient
Subject: [aspngclient] RE: onblur() or tab away
Yeah, you named it in your subject. Onblur="dothis()"
Here is a link to a great javascript reference that I have always found
useful.
http://www.devguru.com/Technologies/ecmascript/quickref/javascript
_intro
.html
-----Original Message-----
From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, July 25, 2002 10:16 AM
To: aspngclient
Subject: [aspngclient] onblur() or tab away
-- Moved from [aspngfreeforall] to [aspngclient] by Tim Musschoot
<
Click here to reveal e-mail address
> --
I have a textbox. I want a user to type in whatever. Then whenever the
user clicks out of the box or tabs out of the box I want an event to
occur. Is this possible?
thanks,
Greg
| [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...
Peter Brunone
It's a client-side activity; you can't do that on the server.
----- Original Message -----
From: "Greg Bernhardt" <
Click here to reveal e-mail address
>
[Original message clipped]
Reply to this message...
Greg Bernhardt
Ok, so I can't perform an event after someone types something in a textbox?
thanks,
Greg
-----Original Message-----
From: Peter Brunone [mailto:
Click here to reveal e-mail address
]
Sent: Friday, July 26, 2002 1:08 AM
To: aspngclient
Subject: [aspngclient] RE: onblur() or tab away
It's a client-side activity; you can't do that on the server.
----- Original Message -----
From: "Greg Bernhardt" <
Click here to reveal e-mail address
>
[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...
li
Use the onchange()
----- Original Message -----
From: "Greg Bernhardt" <
Click here to reveal e-mail address
>
To: "aspngclient" <
Click here to reveal e-mail address
>
Sent: Thursday, July 25, 2002 8:15 AM
Subject: [aspngclient] onblur() or tab away
> -- Moved from [aspngfreeforall] to [aspngclient] by Tim Musschoot
<
Click here to reveal e-mail address
> --
[Original message clipped]
-------------------------------------------
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com
Reply to this message...
li
I also use the
<input type=text onchange="javascript:Valuechanged();">
why the page always refresh when I press enter after I enter the value ?
How I can avoid the page refresh after I click enter?
----- Original Message -----
From: "James Avery" <
Click here to reveal e-mail address
>
To: "aspngclient" <
Click here to reveal e-mail address
>
Sent: Thursday, July 25, 2002 11:20 AM
Subject: [aspngclient] RE: onblur() or tab away
[Original message clipped]
-------------------------------------------
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com
Reply to this message...
Peter Brunone
Of course you can; you just can't do it server-side because there is no
server interaction after the page loads (unless you use Remote Scripting or
Web Service Behaviors, which are probably beyond the scope of what you're
doing).
Are we just misunderstanding your question? From your original post, it
looks like you want to do something totally client-related... let us know if
that's not it though and we'll hit it from another angle.
Cheers,
Peter
|-----Original Message-----
|From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
|
|Ok, so I can't perform an event after someone types something in a textbox?
|
|thanks,
|Greg
|
|-----Original Message-----
|From: Peter Brunone [mailto:
Click here to reveal e-mail address
]
|
| It's a client-side activity; you can't do that on the server.
|
|----- Original Message -----
|From: "Greg Bernhardt" <
Click here to reveal e-mail address
>
|
|> Is there a server-side equiv?
|>
|> thanks,
|> Greg
|>
|> -----Original Message-----
|> From: James Avery [mailto:
Click here to reveal e-mail address
]
|>
|> Yeah, you named it in your subject. Onblur="dothis()"
|>
|> Here is a link to a great javascript reference that I have always found
|> useful.
|>
|>
http://www.devguru.com/Technologies/ecmascript/quickref/javascript
_intro
|> .html
|>
|> -----Original Message-----
|> From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
|>
|> I have a textbox. I want a user to type in whatever. Then whenever the
|> user clicks out of the box or tabs out of the box I want an event to
|> occur. Is this possible?
|>
|> thanks,
|> Greg
|
Reply to this message...
Cooke, Derek
Greg
You could add a function to postback into the eventhandler/function from the
onblur. To set this up your page/control would need to implement
IPostBackEventHandler
. Then you can use
Page
.GetPostBackEventReference() to
generate client side script that will postback eg
myText.attributes.add("onblur",
Page
.GetPostBackEventReference(Me,
"myTextOnBlur")
and the following function serverside to catch the event
Private Sub RaisePostBackEvent(ByVal eventArgument As String) Implements
System.Web.UI.
IPostBackEventHandler
.RaisePostBackEvent
if eventArgument = "myTextOnBlur" then
'server side work
end if
End Sub
hth
Derek
-----Original Message-----
From: Peter Brunone [mailto:
Click here to reveal e-mail address
]
Sent: 26 July 2002 04:12
To: aspngclient
Subject: [aspngclient] RE: onblur() or tab away
Of course you can; you just can't do it server-side because there is
no
server interaction after the page loads (unless you use Remote Scripting or
Web Service Behaviors, which are probably beyond the scope of what you're
doing).
Are we just misunderstanding your question? From your original
post, it
looks like you want to do something totally client-related... let us know if
that's not it though and we'll hit it from another angle.
Cheers,
Peter
|-----Original Message-----
|From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
|
|Ok, so I can't perform an event after someone types something in a textbox?
|
|thanks,
|Greg
|
|-----Original Message-----
|From: Peter Brunone [mailto:
Click here to reveal e-mail address
]
|
| It's a client-side activity; you can't do that on the server.
|
|----- Original Message -----
|From: "Greg Bernhardt" <
Click here to reveal e-mail address
>
|
|> Is there a server-side equiv?
|>
|> thanks,
|> Greg
|>
|> -----Original Message-----
|> From: James Avery [mailto:
Click here to reveal e-mail address
]
|>
|> Yeah, you named it in your subject. Onblur="dothis()"
|>
|> Here is a link to a great javascript reference that I have always found
|> useful.
|>
|>
http://www.devguru.com/Technologies/ecmascript/quickref/javascript
_intro
|> .html
|>
|> -----Original Message-----
|> From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
|>
|> I have a textbox. I want a user to type in whatever. Then whenever the
|> user clicks out of the box or tabs out of the box I want an event to
|> occur. Is this possible?
|>
|> thanks,
|> Greg
|
| [aspngclient] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngclient.asp
= JOIN/QUIT
=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission. There is no intention to
create any legally binding contract or other commitment through the use
of this email.
Experian Limited (registration number 653331).
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
Reply to this message...
Greg Bernhardt
So there is no event for a textbox after a user clicks off a textbox? I
want this server side to perform a function.
thanks,
Greg
-----Original Message-----
From: Peter Brunone [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, July 25, 2002 10:12 PM
To: aspngclient
Subject: [aspngclient] RE: onblur() or tab away
Of course you can; you just can't do it server-side because there is
no
server interaction after the page loads (unless you use Remote Scripting or
Web Service Behaviors, which are probably beyond the scope of what you're
doing).
Are we just misunderstanding your question? From your original
post, it
looks like you want to do something totally client-related... let us know if
that's not it though and we'll hit it from another angle.
Cheers,
Peter
|-----Original Message-----
|From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
|
|Ok, so I can't perform an event after someone types something in a textbox?
|
|thanks,
|Greg
|
|-----Original Message-----
|From: Peter Brunone [mailto:
Click here to reveal e-mail address
]
|
| It's a client-side activity; you can't do that on the server.
|
|----- Original Message -----
|From: "Greg Bernhardt" <
Click here to reveal e-mail address
>
|
|> Is there a server-side equiv?
|>
|> thanks,
|> Greg
|>
|> -----Original Message-----
|> From: James Avery [mailto:
Click here to reveal e-mail address
]
|>
|> Yeah, you named it in your subject. Onblur="dothis()"
|>
|> Here is a link to a great javascript reference that I have always found
|> useful.
|>
|>
http://www.devguru.com/Technologies/ecmascript/quickref/javascript
_intro
|> .html
|>
|> -----Original Message-----
|> From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
|>
|> I have a textbox. I want a user to type in whatever. Then whenever the
|> user clicks out of the box or tabs out of the box I want an event to
|> occur. Is this possible?
|>
|> thanks,
|> Greg
|
| [aspngclient] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngclient.asp
= JOIN/QUIT
Reply to this message...
Peter Brunone
Greg,
Once a page is loaded into the browser, the server does not know it exists.
That means that it can't tell when you focus on a textbox or check a
checkbox or change the option on a select list.
These are client-side events. Why do you want the server to do this?
-Peter
|-----Original Message-----
|From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
|
|So there is no event for a textbox after a user clicks off a textbox? I
|want this server side to perform a function.
|
|thanks,
|Greg
|
|-----Original Message-----
|From: Peter Brunone [mailto:
Click here to reveal e-mail address
]
|
| Of course you can; you just can't do it server-side because there is
|no
|server interaction after the page loads (unless you use Remote Scripting or
|Web Service Behaviors, which are probably beyond the scope of what you're
|doing).
| Are we just misunderstanding your question? From your original
|post, it
|looks like you want to do something totally client-related... let
|us know if
|that's not it though and we'll hit it from another angle.
|
|Cheers,
|
|Peter
|
||-----Original Message-----
||From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
||
||Ok, so I can't perform an event after someone types something in
|a textbox?
||
||thanks,
||Greg
||
||-----Original Message-----
||From: Peter Brunone [mailto:
Click here to reveal e-mail address
]
||
|| It's a client-side activity; you can't do that on the server.
||
||----- Original Message -----
||From: "Greg Bernhardt" <
Click here to reveal e-mail address
>
||
||> Is there a server-side equiv?
||>
||> thanks,
||> Greg
||>
||> -----Original Message-----
||> From: James Avery [mailto:
Click here to reveal e-mail address
]
||>
||> Yeah, you named it in your subject. Onblur="dothis()"
||>
||> Here is a link to a great javascript reference that I have always found
||> useful.
||>
||>
http://www.devguru.com/Technologies/ecmascript/quickref/javascript
_intro
||> .html
||>
||> -----Original Message-----
||> From: Greg Bernhardt [mailto:
Click here to reveal e-mail address
]
||>
||> I have a textbox. I want a user to type in whatever. Then whenever the
||> user clicks out of the box or tabs out of the box I want an event to
||> occur. Is this possible?
||>
||> thanks,
||> Greg
||
|
|
|| [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...
Nash Mash
I think what you are trying to do is
Sub RunDataCheck(ByVal sender As Object, ByVal e As EventArgs)
--Do your query from the database or anything here
End Sub
<asp:textbox ID="DataCheck" runat="server" TextMode="SingleLine"
OnTextChanged="RunDataCheck" AutoPostBack="true"/>
Nash
[Original message clipped]
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Reply to this message...
System.EventArgs
System.Web.UI.IPostBackEventHandler
System.Web.UI.Page
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