Form action help needed...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Xavier Bourguignon

    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.formNa me.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
  • Michael Winter

    #2
    Re: Form action help needed...

    "Xavier Bourguignon" wrote on 13/11/2003:
    [color=blue]
    > 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[/color]
    default[color=blue]
    > action, so I do this: document.formNa me.action = "newURL";
    >
    > This works fine under Mozilla, but does not work under IE5, 5.5 or[/color]
    6,[color=blue]
    > it says: Object doesn't support this property or method.
    >
    > Does anyone know what could be wrong?[/color]

    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.u k (remove [no-spam] to reply)


    Comment

    • Xavier Bourguignon

      #3
      Re: Form action help needed...

      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.u k> wrote:
      [color=blue]
      >"Xavier Bourguignon" wrote on 13/11/2003:
      >[color=green]
      >> 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[/color]
      >default[color=green]
      >> action, so I do this: document.formNa me.action = "newURL";
      >>
      >> This works fine under Mozilla, but does not work under IE5, 5.5 or[/color]
      >6,[color=green]
      >> it says: Object doesn't support this property or method.
      >>
      >> Does anyone know what could be wrong?[/color]
      >
      >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[/color]

      Comment

      Working...