SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jQuery problem in IE8?

    Hi, I'm having a wierd problem in IE 8. I'm trying to submit a form, loadet by AJAX, via AJAX, but all i get is an error message (Code: 0, No such interface supported).

    The code that produces the error looks like this:

    Code:
     $.listen("submit", ".ajax_form", function(){
    		
    		$.post('ajax.php'+$(this).attr("action")+'',$(".ajax_form").serialize(),function(data,status){
    		   
    		   $("#wrap").html(data);
    		});
    
    		
    		return false;
    	});
    - The above works in all other browsers.

  2. #2
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm.. now i dug a little further down and it seems lige it never even get in to the function.. Like et just doen't exists!?

    Any ideas?

  3. #3
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I seem to have solved the problem now.. Apperantly IE8 doesn't buble events on "submit", so instead i do like this:

    Code:
    $.listen("click", ".ajax_form_submit", function(){
    		//alert('test');
    		
    		$.post('ajax.php'+$(this).parent().attr("action")+'',$(".ajax_form").serialize(),function(data,status){
    		   
    		   $("#wrap").html(data);
    		});
    
    		
    		return false;
    	});


Tags for this Thread

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
  •