473,396 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help: IE Object doesn't support this action error

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
2 9589
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: KathyB | last post by:
I have the following script in an html page: function goToPosition() { varGoTo = document.write(document.cookie("Position")); document.scrollTo(0, varGoTo); } </head> <body...
3
by: news.onetel.net.uk | last post by:
I and my friend Karl have spent literally all day trying to find out what is causing my error but we are zapped of any further functionality :) I have a form that adds news records. You select...
2
by: SmittyBroham | last post by:
Hello, I have a function that loops through 2 select lists and records the values of any hi-lighted options a user would have selected. It then sets 2 corresponding "hidden" form elements to the...
3
by: Chris | last post by:
I'm having some problems calling a JS function with a form button. My function looks like this: function selection(modify, id) { document.frmNews.hideID.value = id;...
3
by: Darren | last post by:
Hi i have this code var newsTab=document.getElementById("newsTab"); newsTab.href="latestTabClosed.gif"; where "newstab" is an Image placeholder <img name="newsTab" id="newsTab" src=""...
4
by: Otis Hunter | last post by:
I have been fighting with this for days and your expert help is needed! Below is the code I am executing which results with "Object doesn't support this property or method". The error is occuring...
5
by: John Olbert | last post by:
Subject: Error is Object doesn't support this property or method I am trying to pass a C# string under Vs2005 (Net2) to an Vb6 ActiveX Control. I get the following runtime error-- "Object...
7
dmjpro
by: dmjpro | last post by:
guyess .... here is my code .... document.body.offsetWidth = document.getElementById('photo_upload_table').offsetWidth + 10; document.body.offsetHeight = ...
0
by: chighley | last post by:
I'm using CR 11.5 R2 for VS.NET 2005. I have a CrystalReportViewer on an aspx page. When my report is run, the report comes up in the viewer but if either the export or print button is clicked a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.