473,394 Members | 1,813 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,394 software developers and data experts.

Form action help needed...

Hi

I have a form with a name, and action, a post method.

In rare occasion I want the form action to be different to the default
action, so I do this: document.formName.action = "newURL";

This works fine under Mozilla, but does not work under IE5, 5.5 or 6,
it says: Object doesn't support this property or method.

Does anyone know what could be wrong?
cheers
Jul 20 '05 #1
2 6655
"Xavier Bourguignon" wrote on 13/11/2003:
Hi

I have a form with a name, and action, a post method.

In rare occasion I want the form action to be different to the default action, so I do this: document.formName.action = "newURL";

This works fine under Mozilla, but does not work under IE5, 5.5 or 6, it says: Object doesn't support this property or method.

Does anyone know what could be wrong?


I was going to suggest that IE doesn't support it, but I tried it with
IE 6 and it works. Perhaps you could post the relevant parts of the
script that attempt to change the action property, and when and how
it's called. It might be a simple syntax error.

Mike

--
Michael Winter
M.Winter@[no-spam]blueyonder.co.uk (remove [no-spam] to reply)
Jul 20 '05 #2
Thanks for the reply, I have found out what the problem was, I had a
hidden input with the name set as "action", obviously this confused
IE.

cheers

On Thu, 13 Nov 2003 16:30:20 GMT, "Michael Winter"
<M.Winter@[no-spam]blueyonder.co.uk> wrote:
"Xavier Bourguignon" wrote on 13/11/2003:
Hi

I have a form with a name, and action, a post method.

In rare occasion I want the form action to be different to the

default
action, so I do this: document.formName.action = "newURL";

This works fine under Mozilla, but does not work under IE5, 5.5 or

6,
it says: Object doesn't support this property or method.

Does anyone know what could be wrong?


I was going to suggest that IE doesn't support it, but I tried it with
IE 6 and it works. Perhaps you could post the relevant parts of the
script that attempt to change the action property, and when and how
it's called. It might be a simple syntax error.

Mike


Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bruce Duncan | last post by:
I'm new to PHP...and my previous post was a bit premature. I've narrowed my problem down to this: I have this very simple form in test1.php <form name='formx6' action="testz.php?varxy=1">...
0
by: Willoughby Bridge | last post by:
Hi - Having trouble getting a multipart series of forms to move to the next form. The problem line is: <form method="post" enctype="multipart/form-data" action="Data_Form1.php"> If the...
4
by: Sarah | last post by:
Hi all. I have a form, and several text and image links on it that should submit the form with different actions. I prepared a simple page with just the code that's not working. PROBLEM:...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
3
by: Harvey | last post by:
Hi, I try to write an asp query form that lets client search any text-string and display all pages in my web server that contain the text. I have IIS 6.0 on a server 2003. The MSDN site says...
2
by: Rainman | last post by:
In my <form> tag, I leave off the action='...' specification because I supply this later inside an onclick event handler, depending on which button was pushed. Inside the handler, I have... ...
20
by: Daniel Kaplan | last post by:
Hey All, In some of my pages I use a quick form to give navigational button choices, rather than links. One of them is this: <FORM name="nulltry" enctype="multipart/form-data"...
0
by: Nathan Sokalski | last post by:
I need to programmatically set the action attribute of the form tag. First of all, the ASP.NET form control does not have an action property (it shows the Action attribute in source view, but not...
12
by: Daniel Klein | last post by:
I'm pretty new at php and web stuff so please be gentle with me. I'm trying to get a form to submit when the user presses the Enter key. I do not want to use javascript. I've googled this to...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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
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...

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.