473,791 Members | 3,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Browser Bug: 'Object does not support property' error when setting form action (IE6)

acoder
16,027 Recognized Expert Moderator MVP
Problem
When setting the FORM object's action property an "Object does not support this property or method" error occurs

Browser
Internet Explorer 6-

Example
The Javascript code:
Expand|Select|Wrap|Line Numbers
  1. var theForm = document.getElementById("formID");
  2. theForm.action = "actionpage.php";
  3. theForm.submit();
Some relevant HTML:[HTML]<input name="action" type="submit" ...>[/HTML]
Solution
This is caused by using the name "action" for the submit button which causes IE to be confused between the submit button object and the form's action property. The solution is to rename the submit button (or whatever button or element you have named with a form property).

It's a bad habit to use reserved words for naming objects anyway.

More Bugs, Quirks and Inconsistencies
Aug 18 '07 #1
0 8253

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1584
by: What-a-Tool | last post by:
Have a school project in which I have to use an ASP page to process data from a form submitted by a user. Have to do this 3 ways - Using a Function, a Sub Procedure, and a Class. Simple enough. I decided to see if I could get them all to work from 1 submittal page using an option group of radio buttons, and JavaScripting to send me to the correct page (just as a personal learning experience). Got this working also - but only in IE. ...
2
2138
by: TC | last post by:
Hey Folks, While coding in VBA, I had been receiving script errors when attempting to utilize the online help from within the VBA IDE. After fiddling with security settings and much searching for KB Articles as well as Googling newsgroups archives all to no avail, I finally discovered the resolution to this issue. From within Internet Explorer, under "Tools" and "Internet Options" and "General", run the "Delete Files" under the...
0
1253
by: Eric B | last post by:
Hi. I'm trying to set the background of a form from a file with this code : Stream imgStream= File.Open("images\\popupbackground.jpg",FileMode.Open, FileAccess.Read, FileShare.Read); this.BackgroundImage =Image.FromStream(imgStream); imgStream.Close(); and when I'm executing a "Form.show()" command, I got an OutOfMemoryException and nothing is displayed in my form (all controls look like red squares with red crosses in it !). The jpg...
0
1995
by: Jeremy Chapman | last post by:
In an asp.net page, I'm creating an exchange account. I've created the account, and tied it to a primary NT account. Now I'm trying to assign permissions to it but I get an error of "The directory property cannot be found in the cache" when calling SetSecurityDescriptor. Any suggestions? ADSSECURITYLib.ADsSecurity pSEC = new ADsSecurity(); ActiveDs.IADsSecurityDescriptor pSD = (ActiveDs.IADsSecurityDescriptor...
1
1868
by: effendi | last post by:
Hi I downloaded MSDE2005 and I tried to set up an ODBC connection to a database I created. I can see the database using client but I got this error through the ODBC manager An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
0
976
by: SteMc | last post by:
I have one browser named "Main_Browser" and a second named "Secondary_Browser". I can set the height and width of the first wonderfully. I have a menu item that when pressed attempts to set the width and height of the secondary browser but when I do I get an error message explaining a catastrophic error has occured. :( Does anyone else get this when they do it? Or is it just me? :(
1
2152
by: monudjn | last post by:
Hi I am implementing ajax in portal. Using ajax i am able to updating the content of portlets asynchronously. However i am facing a problem The Problem: While submitting the form i am getting javascript error " Object expected". These errors i am getting after implementing ajax. Also this error is shown only the first time i trying to submit. Next time this error won't come. This may be because the ajax update the content dynamically and if...
2
5593
DonRayner
by: DonRayner | last post by:
This one has me stumped. I'm getting a "Type Mismatch" error on one of my forms when it's being opened. It's hapening before the forms "On Open" event, I stuck a msgbox in there to check and I'm getting the error before it opens. The line of code that calls the form from another form is. DoCmd.OpenForm "NonConformanceAdd",,,,acFormAdd,acDialog I get the error, click ok, then the form opens and works exactly how it's supposed to. I even...
3
4796
by: aleseus | last post by:
New to the forum, so thanks for having me. I'm submitting a form, and attempting to save it to a local copy of an ACCESS 2007 database. When I am submitting the form, I get the following error: ADODB.Recordset (0x800A0CB3) Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. /JustBorn/form_submit.asp, line 414 Line 414 is: rs.Open...
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.