Form action help needed...

X

Xavier Bourguignon

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
 
M

Michael Winter

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
 
X

Xavier Bourguignon

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top