Weird refresh problem with buttons in Firefox and Opera, but works correctly in IE

Last post 02-03-2007 5:15 PM by Ian Foutz. 2 replies.

Sort Posts:

  • Weird refresh problem with buttons in Firefox and Opera, but works correctly in IE

    02-02-2007, 8:22 PM
    • Loading...
    • Ian Foutz
    • Joined on 07-31-2006, 4:05 PM
    • Posts 11
    I have a page with several buttons that call javascript functions that call a web service through the AJAX controls.  In IE, it works perfectly.  In Firefox or Opera however, the call happens and works, but a second later, the whole screen refeshes, and all the data that was on the page is gone.  Any ideas?
    Filed under: , , , ,
  • Re: Weird refresh problem with buttons in Firefox and Opera, but works correctly in IE

    02-03-2007, 2:11 PM
    Answer
    • Loading...
    • paul.vencill
    • Joined on 02-01-2006, 12:57 PM
    • Gaithersburg, MD
    • Posts 683
    Show some code, please.  My first guess (sans code) is that you're using <button> tags without the type="button" attribute.  If that's true then add that attribute.  FF and Opera default unmarked <button>'s as type="submit" which forces a postback.
  • Re: Weird refresh problem with buttons in Firefox and Opera, but works correctly in IE

    02-03-2007, 5:15 PM
    • Loading...
    • Ian Foutz
    • Joined on 07-31-2006, 4:05 PM
    • Posts 11
    That was it!  I knew you had to set type on input fields, I didn't realize the button had a type as well...  Thanks!
Page 1 of 1 (3 items)
Microsoft Communities
Page view counter