SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Zealot rhlowe's Avatar
    Join Date
    Sep 2006
    Location
    San Diego
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My jQuery Code not working in IE

    I am new to jQuery and I think I have a decent grasp on jQuery, however it isn't working in IE, following is the code I wrote, hopefully someone more knowledgeable than I can show me where I went wrong.

    Code:
    $(document).ready(function() {
    	
    	$("a#inpagepoplink").click(function(){
    		$("div#inpagepop").fadeIn("fast");
    		$("div#inpagepop2").fadeIn("fast");
    		return false;
    	});
    	
    	$("a#inpagepoplinkc").click(function(){
    		$("div#inpagepop").fadeOut("fast");
    		$("div#inpagepop2").fadeOut("fast");
    		return false;
    	});
    	
    });
    Thanks in advance!
    San Diego Freelance Web Development Contractor
    Great Taste, no Filler. Now with no Trans Fat!

  2. #2
    SitePoint Addict jtrelfa's Avatar
    Join Date
    Oct 2004
    Location
    Troy, Mi
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a URL we can see to determine the nature of the problem?
    var me = null;

  3. #3
    SitePoint Zealot rhlowe's Avatar
    Join Date
    Sep 2006
    Location
    San Diego
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why yes, yes there is, http://www.roberthenrylowe.com/jQuery/inpagepop.html

    Thanks for your time
    San Diego Freelance Web Development Contractor
    Great Taste, no Filler. Now with no Trans Fat!

  4. #4
    SitePoint Addict jtrelfa's Avatar
    Join Date
    Oct 2004
    Location
    Troy, Mi
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <script type="application/javascript" src="jquery.js"></script>
    <script type="application/javascript">
    IE cares about the "type" - which needs to be "text/javascript" for it to work. Other browsers will work fine with it changed to text/javascript, too. (I tested FF, Opera, IE, and Safari 3 for Windows)

    HTH,

    Jon
    var me = null;

  5. #5
    SitePoint Zealot rhlowe's Avatar
    Join Date
    Sep 2006
    Location
    San Diego
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    jtrelfa, you are a god among men, thank you!
    San Diego Freelance Web Development Contractor
    Great Taste, no Filler. Now with no Trans Fat!


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
  •