T
Tim Slattery
We have a page that uses the onkeyup action to check what's put into a
form field as it's being typed. The handler for this action uses the
event action. To handle IE and Netscape/Firefox, it uses this code to
get the event object:
if (document.all)
{
eventObject="window.event";
}
else
{
eventObject="event"
}
The string is later used as an argument to eval (I know there are
better ways).
The function doesn't work in Safari. Does the event object in Safari
live somewhere other than where this code looks for it?
We're handicapped here because we're an IE shop. We're allowed
(barely) to install Netscape, which gives us access to the Gecko
engine, but no Mac, no Safari.
form field as it's being typed. The handler for this action uses the
event action. To handle IE and Netscape/Firefox, it uses this code to
get the event object:
if (document.all)
{
eventObject="window.event";
}
else
{
eventObject="event"
}
The string is later used as an argument to eval (I know there are
better ways).
The function doesn't work in Safari. Does the event object in Safari
live somewhere other than where this code looks for it?
We're handicapped here because we're an IE shop. We're allowed
(barely) to install Netscape, which gives us access to the Gecko
engine, but no Mac, no Safari.