SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    fulham
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question jQuery aJax.load ie issue

    I'm reading jQuery Novice to Ninja

    and I want to use the JQuery aJax Load function to load a php file to check a MySQL database the result is true or false

    I have been playing with the Image Gallery Script

    Code:
    var GALLERY = {
      url: 'getStatus.php?ID=test',
      
      load: function() {
        var _gallery = this;
        $.ajax({ 
          type:"get", 
          url: this.url,
          success: function(data){
    	if(data=='false'){
    		$('#gallery').text("ID FALSE");
    	} else {
    		$('#gallery').text("ID TRUE");
    	}
          },
          error: function(){
    	alert('ERROR');
          }
        });
      }
    }
    
    $(document).ready(function(){
      GALLERY.load();
    });
    But it wont work in IE,
    FF is fine

    I desperatly need to perform the task above
    any fixes / alternative advise

    please help me!!!!!
    Cheers

    Coup

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2009
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You say it doesnt work in IE.

    That's not alot of information to even try to help you. Try giving us the version of IE you are referring too and tell us what happens in IE when you run the script.

    Does it throw a js error? (look in lower left corner)
    What is the js error?
    Are you using IE8? Use the Web Developer tools in IE8 to assist you.
    MYCFMX (Under Construction)
    http://www.mycfmx.com/

    More from me - coming soon


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
  •