PDA

View Full Version : Onblur event



Bob Worsley
27-May-2007, 01:53 PM
In a vdfGrid,

[snip]
function doCheckCore() {
alert("Here I am");
}
[snip]

<td><input type="text" size="8" title="Part core/dud value"
name="partordr__core" onblur="doCheckCore" value="0" /></td>


doesn't seem to work. I thought onblur would work with any input control,
and it does in all other than the grid.

Bob

Edwin van der Velden
29-May-2007, 02:31 AM
I think changing doCheckCore to doCheckCore() should make it work, I added:

<input onblur="doCheckCore()" type="text" size="10" title="Inventory Item
Id - user defined identification" name="invt__item_id" value="" />

Which worked fine for me in both FF and IE7, while it would do simply
nothing when it was called as "doCheckCore"

-Edwin


"Bob Worsley" <bworsley@comcast.net> wrote in message
news:hl%23NYAJoHHA.580@dacmail.dataaccess.com...
> In a vdfGrid,
>
> [snip]
> function doCheckCore() {
> alert("Here I am");
> }
> [snip]
>
> <td><input type="text" size="8" title="Part core/dud value"
> name="partordr__core" onblur="doCheckCore" value="0" /></td>
>
>
> doesn't seem to work. I thought onblur would work with any input control,
> and it does in all other than the grid.
>
> Bob
>
>
>

Bob Worsley
29-May-2007, 06:15 PM
Sorry about that, still getting used to javascript...
Bob

"Edwin van der Velden" <edwin.van.der.velden@dataaccess.nl> wrote in message
news:L6iLvNcoHHA.312@dacmail.dataaccess.com...
> I think changing doCheckCore to doCheckCore() should make it work, I
added:
>
> <input onblur="doCheckCore()" type="text" size="10" title="Inventory Item
> Id - user defined identification" name="invt__item_id" value="" />
>
> Which worked fine for me in both FF and IE7, while it would do simply
> nothing when it was called as "doCheckCore"
>
> -Edwin
>
>
> "Bob Worsley" <bworsley@comcast.net> wrote in message
> news:hl%23NYAJoHHA.580@dacmail.dataaccess.com...
> > In a vdfGrid,
> >
> > [snip]
> > function doCheckCore() {
> > alert("Here I am");
> > }
> > [snip]
> >
> > <td><input type="text" size="8" title="Part core/dud value"
> > name="partordr__core" onblur="doCheckCore" value="0" /></td>
> >
> >
> > doesn't seem to work. I thought onblur would work with any input
control,
> > and it does in all other than the grid.
> >
> > Bob
> >
> >
> >
>
>
>