"document.formname.submit()" doesn't work with Netscape

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

    "document.formname.submit()" doesn't work with Netscape

    I can successfully force submission of a <form> using "document.formn ame.submit()". But, the
    submission doesn't appear to occur when used with Netscape. Anybody know why this is happening, and
    what I can do to get around this?

    Thanks,
    Don


    -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
    http://www.newsfeed.com The #1 Newsgroup Service in the World!
    -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
  • Martin Honnen

    #2
    Re: &quot;document. formname.submit ()&quot; doesn't work with Netscape



    Don wrote:
    [color=blue]
    > I can successfully force submission of a <form> using "document.formn ame.submit()". But, the
    > submission doesn't appear to occur when used with Netscape. Anybody know why this is happening, and
    > what I can do to get around this?[/color]

    If you have
    <form name="formname" action="whateve r.php">
    then using
    document.forms. formname.submit ()
    should do in browsers, whether it is Netscape or IE.
    If you still have problems then provide more details, check the Netscape
    JavaScript console first to check for error messages and provide them
    including the relevant lines of script and HTML.

    --

    Martin Honnen

    Comment

    • Don

      #3
      Re: &quot;document. formname.submit ()&quot; doesn't work with Netscape

      On Wed, 22 Dec 2004 17:59:24 +0100, Martin Honnen <mahotrash@yaho o.de> wrote:
      [color=blue]
      >
      >
      >Don wrote:
      >[color=green]
      >> I can successfully force submission of a <form> using "document.formn ame.submit()". But, the
      >> submission doesn't appear to occur when used with Netscape. Anybody know why this is happening, and
      >> what I can do to get around this?[/color]
      >
      >If you have
      > <form name="formname" action="whateve r.php">
      >then using
      > document.forms. formname.submit ()
      >should do in browsers, whether it is Netscape or IE.
      >If you still have problems then provide more details, check the Netscape
      >JavaScript console first to check for error messages and provide them
      >including the relevant lines of script and HTML.[/color]
      Martin,

      Thanks for your reply. Well, I've gotta hang my head down low...turns out I left out a </body> tag.
      Goes to show you how sloppy IE is, as it didn't insist on correct format. I used to use Netscape in
      my career and just loved it. But, now that I'm doing web site development, and over 80% of clients
      are using IE, I feel obligated to make IE my primary browser, especially, in cases where I don't
      have time to deal with compatibility of all browsers. Microsoft creates the buggiest software in
      the world, and gets away with it. If I had my way, Gates would be behind bars. Oh well...such a
      world.

      Thanks again Martin for taking the time to reply, and have a very Happy Holiday Season.
      Don


      -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
      http://www.newsfeed.com The #1 Newsgroup Service in the World!
      -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

      Comment

      • Grant Wagner

        #4
        Re: &quot;document. formname.submit ()&quot; doesn't work with Netscape

        "Don" <no@adr.com> wrote in message
        news:boajs05dqn 9sgufl420rirkd0 ppai8pe3i@4ax.c om...[color=blue]
        > On Wed, 22 Dec 2004 17:59:24 +0100, Martin Honnen <mahotrash@yaho o.de>[/color]
        wrote:[color=blue]
        >[color=green]
        > >
        > >
        > >Don wrote:
        > >[color=darkred]
        > >> I can successfully force submission of a <form> using[/color][/color][/color]
        "document.formn ame.submit()". But, the[color=blue][color=green][color=darkred]
        > >> submission doesn't appear to occur when used with Netscape.[/color][/color][/color]
        Anybody know why this is happening, and[color=blue][color=green][color=darkred]
        > >> what I can do to get around this?[/color]
        > >
        > >If you have
        > > <form name="formname" action="whateve r.php">
        > >then using
        > > document.forms. formname.submit ()
        > >should do in browsers, whether it is Netscape or IE.
        > >If you still have problems then provide more details, check the[/color][/color]
        Netscape[color=blue][color=green]
        > >JavaScript console first to check for error messages and provide them
        > >including the relevant lines of script and HTML.[/color]
        > Martin,
        >
        > Thanks for your reply. Well, I've gotta hang my head down low...turns[/color]
        out I left out a </body> tag.[color=blue]
        > Goes to show you how sloppy IE is, as it didn't insist on correct[/color]
        format. I used to use Netscape in[color=blue]
        > my career and just loved it. But, now that I'm doing web site[/color]
        development, and over 80% of clients[color=blue]
        > are using IE, I feel obligated to make IE my primary browser,[/color]
        especially, in cases where I don't[color=blue]
        > have time to deal with compatibility of all browsers. Microsoft[/color]
        creates the buggiest software in[color=blue]
        > the world, and gets away with it. If I had my way, Gates would be[/color]
        behind bars. Oh well...such a[color=blue]
        > world.[/color]

        So it's perfectly acceptable for you to leave out a closing </body> tag
        in your HTML document, but Bill Gates should be behind bars because
        "Microsoft creates the buggiest software in the world"?

        How much time should you spend in jail for leaving out the closing
        </body> tag?

        You blame IE for being "sloppy" but you can't be bothered to validate
        your HTML before blaming the browser for a mistake YOU made.

        Pot, meet kettle.

        --
        Grant Wagner <gwagner@agrico reunited.com>
        comp.lang.javas cript FAQ - http://jibbering.com/faq


        Comment

        Working...