SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AJAX problems with IE/Safari

    The project I've been working on has heavy AJAX in it. (But it also works fine without javascript) Although I use firefox, others have told me it works fine in IE. Then suddenly they said it doesn't work. I don't remember changing anything... so I checked in IE. It didn't work. I checked in Safari. It didn't work. The only browser it works in is firefox.

    For some reason however, the field observer works fine in IE/Safari, but the form submit doesn't work! Whats wrong? (I use form_remote_tag)

    Thank you!
    Happy switcher to OS X running on a MacBook Pro.

    Zend Certified Engineer

  2. #2
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I figured it out. I did this to the submit button:
    Code:
    :onclick=>"this.disabled=1"
    Apparently when I add an onClick event, IE/Safari and everyone else except for Firefox decide not to submit the form! So I had to add the disable code to the "form_remote_tag" by adding a ":before" option to it.

    Meh.
    Happy switcher to OS X running on a MacBook Pro.

    Zend Certified Engineer

  3. #3
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Normally you set the onsubmit of the <form>. The form will only be submitted if the callback returns true.

  4. #4
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fenrir2 View Post
    Normally you set the onsubmit of the <form>. The form will only be submitted if the callback returns true.
    I did set the javascript to the onsubmit of the form. But I see about the callbacks, because the onsubmit must return false or else it is submitted normally and that wouldn't be good :P
    Happy switcher to OS X running on a MacBook Pro.

    Zend Certified Engineer


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
  •