SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2006
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    firefox - onload doesn't work

    Hi,
    I have an onload event which works fine when the page is displayed in IE but does not work when using firefox.

    The call is simply:

    onload='order.submit()'

    Is there an alternative that will work in both firefox and IE ?

    Many thanks.

  2. #2
    SitePoint Guru
    Join Date
    Sep 2006
    Posts
    731
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by varihost View Post
    Hi,
    I have an onload event which works fine when the page is displayed in IE but does not work when using firefox.

    The call is simply:

    onload='order.submit()'

    Is there an alternative that will work in both firefox and IE ?

    Many thanks.
    I suspect that the 'alternative' involves addressing a form correctly. Need to see more code.
    Tab-indentation is a crime against humanity.

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    3 Thread(s)
    Try using document.forms['order'].submit() instead.

  4. #4
    SitePoint Zealot
    Join Date
    Feb 2007
    Location
    Leeds, U.K.
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ceck the error console in ff (tools -> error console)

    see what pops up, that will help more.

  5. #5
    SitePoint Enthusiast
    Join Date
    May 2006
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pmw57 View Post
    Try using document.forms['order'].submit() instead.
    Hi pmw,
    That worked perfectly. Runs correctly in both IE and FF. Many thanks.

    Thanks also to others who posted advice.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •