By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,395 Members | 2,537 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,395 IT Pros & Developers. It's quick & easy.

Help: IE Object doesn't support this action error

P: n/a
I have a hyperlink that activiates a javascript function:

<a href="#" onClick="selection('edit', 2)">Edit</a>

It runs perfectly well in Firefox (of course) but with Internet Explorer I get the following error:
"Object doesn't support this action"
The line number points to the link, but could it be a problem with the function? Is this some IE protection?

Thanks for any help,
Chris
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-

Aug 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Cweed" wrote
I have a hyperlink that activiates a javascript function:

<a href="#" onClick="selection('edit', 2)">Edit</a>

It runs perfectly well in Firefox (of course) but with Internet Explorer I get the following error: "Object doesn't support this action"
The line number points to the link, but could it be a problem with the

function?

Or its name. "selection" is already a property of the document in IE, and a
very powerful one. It 's best to avoid existing property names when naming
your own variables. Name your function doselection or myselection or
whatever and see if that makes a difference.

hth
ivo
Aug 18 '05 #2

P: n/a
On Thu, 18 Aug 2005 03:46:55 GMT, "Cweed" <sp**@cjweed.com> wrote:
I have a hyperlink that activiates a javascript function:

<a href="#" onClick="selection('edit', 2)">Edit</a>

It runs perfectly well in Firefox (of course) but with Internet Explorer I get the following error:
"Object doesn't support this action"
The line number points to the link, but could it be a problem with the function? Is this some IE protection?

Thanks for any help,
Chris


In Internet Explorer, -selection- is an object representing any
highlighted block of text or other elements:

<url:
http://msdn.microsoft.com/workshop/a..._selection.asp
/>

Use another identifier for your function name.
Grant Wagner <sq*******@yahoo.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Aug 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.