Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Call to JavaScript functions in events in IE


  • Please log in to reply

#1
comp error

comp error

    Member

  • Member
  • PipPip
  • 15 posts
This is a KNOWN issue, but i can't get a workaround...

This is a VERY simple issue i am having here.
What i am talking about is this:

<input ...{attributes here}... onevent="javascript function name here" />
it never works in internet explorer, but it does in other browsers. Example:
<input type="text" onclick="recalc()" />
doesn't work in IE.
HOWEVER, this DOES work in IE and in other browsers:
<input type="text" onclick="alert('test');" />

I can't make function calls work in IE!

Attached is an example...
And a link to an OLD microsoft knowledgebase issue:
Article ID: 887741 - Last Review: November 12, 2004 - Revision: 2.0
Internet Explorer does not execute code when an event handler is set to directly reference a DOM function ... ...


Thanks in advance,
David D.

Attached File  example.htm.txt   259bytes   125 downloads

Edited by comp error, 12 January 2010 - 01:10 PM.

  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP