[jQuery] Re: IE shows nothing o.0

2007-09-20 Thread Anders Mattson

That's a bug in IE that happens when the document is in strict mode (I
think?) and you close the script tag the short way. Try using the end
tag instead:

script type=text/javascript src=inc/js/jquery-1.2.1.js/script

That should do the trick.

/Anders

On 20 Sep, 06:28, John Resig [EMAIL PROTECTED] wrote:
 Do you have a full page online that we can look at? That line, alone,
 shouldn't cause any problems.

 --John

 On 9/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:





  Hi there,

  im new at jQuery and totaly new with JavaScript.
  But there is a huge Problem with jQuery an IE.

  To include jQuery i use that Line:
  script type=text/javascript src=inc/js/jquery-1.2.1.js /

  And since i have put this line to my Code IE shows only a blank white
  page.
  But it works fine with Opera and Firefox. Same thin with the
  StarterKit, it wont show up in the IE.

  How can i fix that Problem?- Dölj citerad text -

 - Visa citerad text -



[jQuery] Re: FadeIn problems

2007-08-26 Thread Anders Mattson

Could you post the html as well?
It's much easier to understand what you're trying to do if we can see
the html you're working on.

/Anders

On 25 Aug, 03:54, Neal [EMAIL PROTECTED] wrote:
 I have a page with several DIVs, and inside each DIV are paragraphs
 and headings. On the side I have a list of named anchors.

 My script adds an onclick event to the anchors that hides all of the
 DIVs, then fades the selected DIV. It looks fantastic in FireFox, but
 there's no fade in IE6 or IE7.

 And the kicker is Safari fades the DIV in, but when 100% opacity is
 reached, all of the paragraphs float to the top of the containing DIV,
 as if their positioning property was switched to absolute.

 Here's my code:
 $(#side a).each(function(){
 $(this).click(function(){
 $(#primary div).hide();
 $(#primary div:first).before( $(this.hash)[0] );
 $(this.hash).fadeIn(1700); // fails in Safari
 return false;
 });
 });

 }),

 Any ideas?