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

Form action help needed...

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
"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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.