[jQuery] Re: IE problem

2010-01-16 Thread Valerij
Why do you think that? Because only the first tab stops working, the
other 2 tabs keep working, css wise they are not different at all..

On Jan 16, 3:02 am, Nivanka  wrote:
> This is CSS more than javascript I think. Try to absolute position the
> popups / and position them with bottom:0px; and then margins.
>
> On Jan 15, 11:47 pm, Valerij  wrote:
>
>
>
> > Hi guys, I have this annoying problem with IE that makes no sense, I
> > have these pop ups which works perfectly in all browsers but IE, in IE
> > it works great the first time - I can open all of the tabs once, but
> > after I close them all, I cant open the first one, but others works
> > fine! Then if I refresh, I can open all tabs, but once I close them
> > and try reopening the first tab - doesn't work!
>
> > Page at where this script is 
> > implemented;http://ferok.com/labs/test.htmlThebottom bar is the one that 
> > throws
> > the pop upshttp://ferok.com/labs/global.jsThisis the JS


[jQuery] Re: IE problem with each function

2009-04-15 Thread Karl Swedberg


On Apr 14, 2009, at 10:47 PM, Zhx wrote:



here is my code, it works fine in FF, but in IE, the "index" message
did not popup. Anyone could give me a suggestion to figure out this?
  jQuery("#demoform dt").each(function(index,domEle){
   if (jQuery(domEle).text() == "ISSN:")
 {
 alert(index);
 exit;
 }
   })


you're probably getting a javascript error in IE that is terminating  
the script. Try replacing exit; with return false;



--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com



[jQuery] Re: IE Problem Animating opacity on a Alpha PNG

2009-03-29 Thread Corgalore

I'm having the same problem. I noticed it while using FaceBox. During
the fadeout the borders fade to black before fading out. The same
thing happens when I swap the border pngs for my own.

Does anyone know a workaround for this?

On Feb 27, 5:13 am, Liam Potter  wrote:
> I've come across a problem animating the opacity of a png (background or
> image) which has alpha transparency.
> This seems to be a browser bug, but someone may know a hack.
>
> This affects all versions of IE, right up until the latest version of IE8.
>
> Has anybody experienced this, and knows a way around it?


[jQuery] Re: IE Problem Animating opacity on a Alpha PNG

2009-03-04 Thread nicholas

Hi! I also have the same problem on IE7 when the page loads it seems
that everything is alright but when the .animate() runs it keeps the
100% transparency and loses the rest of alpha 0-99% transparency.. It
is very strange.. I don't know if its only IE bug or also
jQuery's .animate() implementation.. So did you or anybody else find a
solution?


On Feb 27, 12:13 pm, Liam Potter  wrote:
> I've come across a problem animating the opacity of a png (background or
> image) which has alpha transparency.
> This seems to be a browser bug, but someone may know a hack.
>
> This affects all versions of IE, right up until the latest version of IE8.
>
> Has anybody experienced this, and knows a way around it?


[jQuery] Re: IE Problem with (function($)

2009-01-15 Thread Ricardo Tomasi

Not really - after all I was wrong too :D

I didn't notice the other closing braces under "quoted text" in the
OP.

cheers,
- ricardo

On Jan 14, 2:56 am, Karl Swedberg  wrote:
> good eye, Ricardo! thanks for the back up. :-)
>
> --Karl
>
> 
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote:
>
>
>
> > You're missing a parenthesis when closing the anonymous function:
>
> > }(); should be })();
>
> > And I'm guessing '$' is there for jQuery, so that should actually be
>
> > })(jQuery);
>
> > - ricardo
>
> > On Jan 13, 3:56 pm, "Sagar Arya"  wrote:
> >> may be i should check with the other files and let you know...  
> >> thanks for
> >> the information..
> >> Cheers !
> >> Aryan
>
> >> On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg  
> >> wrote:
>
> >>> I'm not seeing anything obvious. Taking a stab in the dark  
> >>> here ... I've
> >>> received a similar error in the past when a reference to one of my
> >>> JavaScript files was resulting in a 404. The browser would try to  
> >>> parse the
> >>> file as JavaScript, but of course it would be met with a syntax  
> >>> error on
> >>> line 1.  Is it possible that the problem is not with this file,  
> >>> but with
> >>> another one that you're trying to include? Just a guess.
>
> >>> --Karl
>
> >>> 
> >>> Karl Swedberg
> >>>www.englishrules.com
> >>>www.learningjquery.com
>
> >>> On Jan 13, 2009, at 5:35 AM, Aryan wrote:
>
> >>> I have a problem with Internet Explorer ( all versions ) . The
> >>> following is my JQuery Code , which executes perfectly in mozilla  
> >>> and
> >>> chrome.. But it doesn't work in Internet Explorer.
> >>> It says : Syntax error ( line 1 )... Can anyone help me out here..
> >>> Thanks for your time in reading this.
>
> >>> (function($){
> >>> var EYE = window.EYE = function() {
> >>>  var _registered = {
> >>>  init: []
> >>>  };
> >>>  return {
> >>>  init: function() {
> >>>   $.each(_registered.init, function(nr, fn){
> >>>   fn.call();
> >>>   });
> >>>  },
> >>>  extend: function(prop) {
> >>>   for (var i in prop) {
> >>>   if (prop[i] != undefined) {
> >>>    this[i] = prop[i];
> >>>   }
> >>>   }
> >>>  },
> >>>  register: function(fn, type) {
> >>>   if (!_registered[type]) {
> >>>   _registered[type] = [];
> >>>   }
> >>>   _registered[type].push(fn);
> >>>  }
> >>>  };
> >>> }();
> >>> $(EYE.init);
> >>> })(jQuery);


[jQuery] Re: IE Problem with (function($)

2009-01-15 Thread Sagar Arya
Geees..  

Cheers !
Aryan



On Thu, Jan 15, 2009 at 5:19 PM, Liam Potter wrote:

>
> I see it now, and I also noticed you put it in style tags, you should use
> script tags
>
> 
>
> That's how you would include a script.
>
> Sagar Arya wrote:
>
>> Oops.. tat was a mistake.. "double quotes" i must notice that...
>> :)
>>
>> Those 3 examples are exactly the same? : Nope... notice that there's a
>> small space after the ending double quote.. ( got it ? ) :) tat's where IE
>> sucks !
>>
>> Cheers !
>> Aryan
>>
>> On Thu, Jan 15, 2009 at 5:05 PM, Liam Potter > radioactiv...@gmail.com>> wrote:
>>
>>
>>Those 3 examples are exactly the same?
>>Also, they are double quotes, not doube codes.
>>
>>Sagar Arya wrote:
>>
>>Hello,
>> This completely works fine.. How ever it was a v v v
>>v vv simple mistake
>>when i include the .js files... there shouldn't be any spaces
>>between the double(") codes..
>>
>>Eg:   = Illegal In IE. ( Really
>>Sucks ! )
>>  = Legal in FF ( Smooth !)
>>
>>  = Legal In both IE and FF
>>
>>Please make sure that there is no single damn space between
>>double codes.. because the IE sucks more when it sees that..
>>
>>Thanks a lot for everyone, who helped me realize this... Hof
>>
>>Cheers !
>>Aryan
>>On Thu, Jan 15, 2009 at 3:44 PM, Sagar Arya > @gmail.com
>> > wrote:
>>
>>   Hello,
>>   I am very sorry.. I am not supposed to publish the
>>code..
>>
>>   Cheers !
>>   Sagar
>>
>>
>>   On Thu, Jan 15, 2009 at 3:28 PM, jQuery Lover
>>   mailto:ilovejqu...@gmail.com>
>>>>
>>wrote:
>>
>>
>>   Is it possible to have your page published somewhere?
>>
>>   
>>   Read jQuery HowTo Resource  -
>> http://jquery-howto.blogspot.com
>>
>>
>>
>>   On Thu, Jan 15, 2009 at 2:44 PM, Sagar Arya
>>http://sagararya.mv>
>>   @gmail.com 
>>> wrote:
>>   > Hello,
>>   >  Yes I included the jQuery file before the
>>   colorpicker.js file. And
>>   > it works fine in Mozilla and chrome.. but it doesn't
>>turn up
>>   in IE.
>>   > Cheers !
>>   > Sagar
>>   >
>>   > On Thu, Jan 15, 2009 at 3:03 PM, jQuery Lover
>>   mailto:ilovejqu...@gmail.com>
>>>>
>>wrote:
>>   >>
>>   >> Well, it says jQuery is undefined. Have you put your
>>   jquery.js file
>>   >> before colorpicker.js ?
>>   >>
>>   >> 
>>   >> Read jQuery HowTo Resource  -
>> http://jquery-howto.blogspot.com
>>   >>
>>   >>
>>   >>
>>   >> On Thu, Jan 15, 2009 at 2:27 PM, Sagar Arya
>>http://sagararya.mv>
>>   @gmail.com 
>>>
>>
>>   >> wrote:
>>   >> > Hello,
>>   >> >It doesn't seem to work even after
>>adding the
>>   braces. It
>>   >> > works
>>   >> > fine in mozzila but the same syntax error in IE. ( IE
>>   suck more ! )... I
>>   >> > have attached the screen shots..
>>   >> > Cheers !
>>   >> > Aryan
>>   >> >
>>   >> > On Thu, Jan 15, 2009 at 10:44 AM, James Van Dyke
>>   mailto:jame...@gmail.com>
>>>>
>>
>>
>>   >> > wrote:
>>   >> >>
>>   >> >> The initial (function($) { was never closed.
>>   >> >>
>>   >> >> Here's how I formatted it so everything lines up:
>>   >> >>
>>   >> >> (function($){
>>   >> >>var EYE = window.EYE = (function() {
>>   >> >>var _registered = {
>>   >> >>init: []
>>   >> >>};
>>   >> >>return {
>>   >> >>init: function() {
>>   >> >>
>> $.each(_registered.init,
>>   function(nr,
>>   >> >> fn) {
>>   >> >>fn.call();
>>   >> >>});
>>   >> >>},
>>   >> >>extend: functio

[jQuery] Re: IE Problem with (function($)

2009-01-15 Thread Liam Potter


I see it now, and I also noticed you put it in style tags, you should 
use script tags




That's how you would include a script.

Sagar Arya wrote:

Oops.. tat was a mistake.. "double quotes" i must notice that...
:)

Those 3 examples are exactly the same? : Nope... notice that there's a 
small space after the ending double quote.. ( got it ? ) :) tat's 
where IE sucks !


Cheers !
Aryan

On Thu, Jan 15, 2009 at 5:05 PM, Liam Potter > wrote:



Those 3 examples are exactly the same?
Also, they are double quotes, not doube codes.

Sagar Arya wrote:

Hello,
 This completely works fine.. How ever it was a v v v
v vv simple mistake
when i include the .js files... there shouldn't be any spaces
between the double(") codes..

Eg:   = Illegal In IE. ( Really
Sucks ! )
  = Legal in FF ( Smooth !)

  = Legal In both IE and FF

Please make sure that there is no single damn space between
double codes.. because the IE sucks more when it sees that..

Thanks a lot for everyone, who helped me realize this... Hof

Cheers !
Aryan
 
On Thu, Jan 15, 2009 at 3:44 PM, Sagar Arya 
 @gmail.com
 > wrote:

   Hello,
   I am very sorry.. I am not supposed to publish the
code..

   Cheers !
   Sagar


   On Thu, Jan 15, 2009 at 3:28 PM, jQuery Lover
   mailto:ilovejqu...@gmail.com>
>>
wrote:


   Is it possible to have your page published somewhere?

   
   Read jQuery HowTo Resource  -
 http://jquery-howto.blogspot.com



   On Thu, Jan 15, 2009 at 2:44 PM, Sagar Arya
http://sagararya.mv>
   @gmail.com 
> wrote:
   > Hello,
   >  Yes I included the jQuery file before the
   colorpicker.js file. And
   > it works fine in Mozilla and chrome.. but it doesn't
turn up
   in IE.
   > Cheers !
   > Sagar
   >
   > On Thu, Jan 15, 2009 at 3:03 PM, jQuery Lover
   mailto:ilovejqu...@gmail.com>
>>
wrote:
   >>
   >> Well, it says jQuery is undefined. Have you put your
   jquery.js file
   >> before colorpicker.js ?
   >>
   >> 
   >> Read jQuery HowTo Resource  -
 http://jquery-howto.blogspot.com
   >>
   >>
   >>
   >> On Thu, Jan 15, 2009 at 2:27 PM, Sagar Arya
http://sagararya.mv>
   @gmail.com 
>

   >> wrote:
   >> > Hello,
   >> >It doesn't seem to work even after
adding the
   braces. It
   >> > works
   >> > fine in mozzila but the same syntax error in IE. ( IE
   suck more ! )... I
   >> > have attached the screen shots..
   >> > Cheers !
   >> > Aryan
   >> >
   >> > On Thu, Jan 15, 2009 at 10:44 AM, James Van Dyke
   mailto:jame...@gmail.com>
>>

   >> > wrote:
   >> >>
   >> >> The initial (function($) { was never closed.
   >> >>
   >> >> Here's how I formatted it so everything lines up:
   >> >>
   >> >> (function($){
   >> >>var EYE = window.EYE = (function() {
   >> >>var _registered = {
   >> >>init: []
   >> >>};
   >> >>return {
   >> >>init: function() {
   >> >>  
 $.each(_registered.init,

   function(nr,
   >> >> fn) {
   >> >>fn.call();
   >> >>});
   >> >>},
   >> >>extend: function(prop) {
   >> >>for (var i in prop) {
   >> >>if (prop[i] !=
   undefined) {
   >> >>  
 this[i] =

   prop[i];
   >> >>

[jQuery] Re: IE Problem with (function($)

2009-01-15 Thread Sagar Arya
Oops.. tat was a mistake.. "double quotes" i must notice that...
:)

Those 3 examples are exactly the same? : Nope... notice that there's a small
space after the ending double quote.. ( got it ? ) :) tat's where IE sucks !

Cheers !
Aryan

On Thu, Jan 15, 2009 at 5:05 PM, Liam Potter wrote:

>
> Those 3 examples are exactly the same?
> Also, they are double quotes, not doube codes.
>
> Sagar Arya wrote:
>
>> Hello,
>>  This completely works fine.. How ever it was a v v v v vv simple
>> mistake
>> when i include the .js files... there shouldn't be any spaces between the
>> double(") codes..
>>
>> Eg:   = Illegal In IE. ( Really Sucks ! )
>>   = Legal in FF ( Smooth !)
>>
>>   = Legal In both IE and FF
>>
>> Please make sure that there is no single damn space between double codes..
>> because the IE sucks more when it sees that..
>>
>> Thanks a lot for everyone, who helped me realize this... Hof
>>
>> Cheers !
>> Aryan
>>
>> On Thu, Jan 15, 2009 at 3:44 PM, Sagar Arya > http://sagararya.mv>@gmail.com > wrote:
>>
>>Hello,
>>I am very sorry.. I am not supposed to publish the code..
>>
>>Cheers !
>>Sagar
>>
>>
>>On Thu, Jan 15, 2009 at 3:28 PM, jQuery Lover
>>mailto:ilovejqu...@gmail.com>> wrote:
>>
>>
>>Is it possible to have your page published somewhere?
>>
>>
>>Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>>
>>
>>
>>On Thu, Jan 15, 2009 at 2:44 PM, Sagar Arya >@gmail.com > wrote:
>>> Hello,
>>>  Yes I included the jQuery file before the
>>colorpicker.js file. And
>>> it works fine in Mozilla and chrome.. but it doesn't turn up
>>in IE.
>>> Cheers !
>>> Sagar
>>>
>>> On Thu, Jan 15, 2009 at 3:03 PM, jQuery Lover
>>mailto:ilovejqu...@gmail.com>> wrote:
>>>>
>>>> Well, it says jQuery is undefined. Have you put your
>>jquery.js file
>>>> before colorpicker.js ?
>>>>
>>>> 
>>>> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>>>>
>>>>
>>>>
>>>> On Thu, Jan 15, 2009 at 2:27 PM, Sagar Arya >@gmail.com >
>>>> wrote:
>>>> > Hello,
>>>> >It doesn't seem to work even after adding the
>>braces. It
>>>> > works
>>>> > fine in mozzila but the same syntax error in IE. ( IE
>>suck more ! )... I
>>>> > have attached the screen shots..
>>>> > Cheers !
>>>> > Aryan
>>>> >
>>>> > On Thu, Jan 15, 2009 at 10:44 AM, James Van Dyke
>>mailto:jame...@gmail.com>>
>>
>>>> > wrote:
>>>> >>
>>>> >> The initial (function($) { was never closed.
>>>> >>
>>>> >> Here's how I formatted it so everything lines up:
>>>> >>
>>>> >> (function($){
>>>> >>var EYE = window.EYE = (function() {
>>>> >>var _registered = {
>>>> >>init: []
>>>> >>};
>>>> >>return {
>>>> >>init: function() {
>>>> >>$.each(_registered.init,
>>function(nr,
>>>> >> fn) {
>>>> >>fn.call();
>>>> >>});
>>>> >>},
>>>> >>extend: function(prop) {
>>>> >>for (var i in prop) {
>>>> >>if (prop[i] !=
>>undefined) {
>>>> >>this[i] =
>>prop[i];
>>>> >>}
>>>> >>}
>>>> >>},
>>>> >>register: function(fn, type) {
>>>> >>if (!_registered[type]) {
>>>> >>_registered[type]
>>= [];
>>>> >>}
>>>> >>_registered[type].push(fn);
>>>> >>}
>>>> >>};
>>>> >>})();
>>>> >>
>>>> >>$(EYE.init);
>>>> >> })(jQuery);
>>>> >>
>>>> >>
>>>> >> I think that's about the most obfuscated thing I've seen
>>this week.  I
>>>> >> hope you're doing something cool.
>>>> >>
>>>> >> Let us know if that helps.
>>>> >>
>>>> >>
>>>> >>
>>>> >> On Jan 14, 11:57 pm, "Sagar Arya"
>>mailto:sagararya...@gmail.com>> wro

[jQuery] Re: IE Problem with (function($)

2009-01-15 Thread Liam Potter


Those 3 examples are exactly the same?
Also, they are double quotes, not doube codes.

Sagar Arya wrote:

Hello,
  This completely works fine.. How ever it was a v v v v vv 
simple mistake
when i include the .js files... there shouldn't be any spaces between 
the double(") codes..


Eg:   = Illegal In IE. ( Really Sucks ! )
   = Legal in FF ( Smooth !)

   = Legal In both IE and FF

Please make sure that there is no single damn space between double 
codes.. because the IE sucks more when it sees that..


Thanks a lot for everyone, who helped me realize this... Hof

Cheers !
Aryan
   

On Thu, Jan 15, 2009 at 3:44 PM, Sagar Arya @gmail.com > wrote:


Hello,
I am very sorry.. I am not supposed to publish the code..

Cheers !
Sagar


On Thu, Jan 15, 2009 at 3:28 PM, jQuery Lover
mailto:ilovejqu...@gmail.com>> wrote:


Is it possible to have your page published somewhere?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Jan 15, 2009 at 2:44 PM, Sagar Arya http://sagararya.mv>@gmail.com > wrote:
> Hello,
>  Yes I included the jQuery file before the
colorpicker.js file. And
> it works fine in Mozilla and chrome.. but it doesn't turn up
in IE.
> Cheers !
> Sagar
>
> On Thu, Jan 15, 2009 at 3:03 PM, jQuery Lover
mailto:ilovejqu...@gmail.com>> wrote:
>>
>> Well, it says jQuery is undefined. Have you put your
jquery.js file
>> before colorpicker.js ?
>>
>> 
>> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>>
>>
>>
>> On Thu, Jan 15, 2009 at 2:27 PM, Sagar Arya http://sagararya.mv>@gmail.com >
>> wrote:
>> > Hello,
>> >It doesn't seem to work even after adding the
braces. It
>> > works
>> > fine in mozzila but the same syntax error in IE. ( IE
suck more ! )... I
>> > have attached the screen shots..
>> > Cheers !
>> > Aryan
>> >
>> > On Thu, Jan 15, 2009 at 10:44 AM, James Van Dyke
mailto:jame...@gmail.com>>
>> > wrote:
>> >>
>> >> The initial (function($) { was never closed.
>> >>
>> >> Here's how I formatted it so everything lines up:
>> >>
>> >> (function($){
>> >>var EYE = window.EYE = (function() {
>> >>var _registered = {
>> >>init: []
>> >>};
>> >>return {
>> >>init: function() {
>> >>$.each(_registered.init,
function(nr,
>> >> fn) {
>> >>fn.call();
>> >>});
>> >>},
>> >>extend: function(prop) {
>> >>for (var i in prop) {
>> >>if (prop[i] !=
undefined) {
>> >>this[i] =
prop[i];
>> >>}
>> >>}
>> >>},
>> >>register: function(fn, type) {
>> >>if (!_registered[type]) {
>> >>_registered[type]
= [];
>> >>}
>> >>_registered[type].push(fn);
>> >>}
>> >>};
>> >>})();
>> >>
>> >>$(EYE.init);
>> >> })(jQuery);
>> >>
>> >>
>> >> I think that's about the most obfuscated thing I've seen
this week.  I
>> >> hope you're doing something cool.
>> >>
>> >> Let us know if that helps.
>> >>
>> >>
>> >>
>> >> On Jan 14, 11:57 pm, "Sagar Arya"
mailto:sagararya...@gmail.com>> wrote:
>> >> > Hello,  I tried changing the braces.. It seems
they were
>> >> > proper...
>> >> > Here i am attaching all the files... Can anyone help
me out pls...
>> >> > its
>> >> > perfectly running in mozilla, chrome.. but not in IE.. :(
>> >> >
>> >> > Cheers !
>> >> > Sagar
>> >> >
>> >> > On Wed, Jan 14, 2009 at 12:08 PM, Sagar Arya
mailto:sagararya...@gmail.com>>
>> >> > wrote:
>> >> > > hey thanks so much.. :-)
>> >> >
>> >

[jQuery] Re: IE Problem with (function($)

2009-01-15 Thread Sagar Arya
Hello,
  This completely works fine.. How ever it was a v v v v vv simple
mistake
when i include the .js files... there shouldn't be any spaces between the
double(") codes..

Eg:   = Illegal In IE. ( Really Sucks ! )
   = Legal in FF ( Smooth !)

   = Legal In both IE and FF

Please make sure that there is no single damn space between double codes..
because the IE sucks more when it sees that..

Thanks a lot for everyone, who helped me realize this... Hof

Cheers !
Aryan


On Thu, Jan 15, 2009 at 3:44 PM, Sagar Arya  wrote:

> Hello,I am very sorry.. I am not supposed to publish the code..
>
> Cheers !
> Sagar
>
>
> On Thu, Jan 15, 2009 at 3:28 PM, jQuery Lover wrote:
>
>>
>> Is it possible to have your page published somewhere?
>>
>> 
>> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>>
>>
>>
>> On Thu, Jan 15, 2009 at 2:44 PM, Sagar Arya 
>> wrote:
>> > Hello,
>> >  Yes I included the jQuery file before the colorpicker.js file.
>> And
>> > it works fine in Mozilla and chrome.. but it doesn't turn up in IE.
>> > Cheers !
>> > Sagar
>> >
>> > On Thu, Jan 15, 2009 at 3:03 PM, jQuery Lover 
>> wrote:
>> >>
>> >> Well, it says jQuery is undefined. Have you put your jquery.js file
>> >> before colorpicker.js ?
>> >>
>> >> 
>> >> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>> >>
>> >>
>> >>
>> >> On Thu, Jan 15, 2009 at 2:27 PM, Sagar Arya 
>> >> wrote:
>> >> > Hello,
>> >> >It doesn't seem to work even after adding the braces. It
>> >> > works
>> >> > fine in mozzila but the same syntax error in IE. ( IE suck more !
>> )... I
>> >> > have attached the screen shots..
>> >> > Cheers !
>> >> > Aryan
>> >> >
>> >> > On Thu, Jan 15, 2009 at 10:44 AM, James Van Dyke 
>> >> > wrote:
>> >> >>
>> >> >> The initial (function($) { was never closed.
>> >> >>
>> >> >> Here's how I formatted it so everything lines up:
>> >> >>
>> >> >> (function($){
>> >> >>var EYE = window.EYE = (function() {
>> >> >>var _registered = {
>> >> >>init: []
>> >> >>};
>> >> >>return {
>> >> >>init: function() {
>> >> >>$.each(_registered.init, function(nr,
>> >> >> fn) {
>> >> >>fn.call();
>> >> >>});
>> >> >>},
>> >> >>extend: function(prop) {
>> >> >>for (var i in prop) {
>> >> >>if (prop[i] != undefined) {
>> >> >>this[i] = prop[i];
>> >> >>}
>> >> >>}
>> >> >>},
>> >> >>register: function(fn, type) {
>> >> >>if (!_registered[type]) {
>> >> >>_registered[type] = [];
>> >> >>}
>> >> >>_registered[type].push(fn);
>> >> >>}
>> >> >>};
>> >> >>})();
>> >> >>
>> >> >>$(EYE.init);
>> >> >> })(jQuery);
>> >> >>
>> >> >>
>> >> >> I think that's about the most obfuscated thing I've seen this week.
>>  I
>> >> >> hope you're doing something cool.
>> >> >>
>> >> >> Let us know if that helps.
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Jan 14, 11:57 pm, "Sagar Arya"  wrote:
>> >> >> > Hello,  I tried changing the braces.. It seems they were
>> >> >> > proper...
>> >> >> > Here i am attaching all the files... Can anyone help me out pls...
>> >> >> > its
>> >> >> > perfectly running in mozilla, chrome.. but not in IE.. :(
>> >> >> >
>> >> >> > Cheers !
>> >> >> > Sagar
>> >> >> >
>> >> >> > On Wed, Jan 14, 2009 at 12:08 PM, Sagar Arya <
>> sagararya...@gmail.com>
>> >> >> > wrote:
>> >> >> > > hey thanks so much.. :-)
>> >> >> >
>> >> >> > > Cheers !
>> >> >> > > Aryan
>> >> >> >
>> >> >> > > On Wed, Jan 14, 2009 at 10:26 AM, Karl Swedberg
>> >> >> > > wrote:
>> >> >> >
>> >> >> > >> good eye, Ricardo! thanks for the back up. :-)
>> >> >> >
>> >> >> > >> --Karl
>> >> >> >
>> >> >> > >> 
>> >> >> > >> Karl Swedberg
>> >> >> > >>www.englishrules.com
>> >> >> > >>www.learningjquery.com
>> >> >> >
>> >> >> > >>   On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote:
>> >> >> >
>> >> >> > >> You're missing a parenthesis when closing the anonymous
>> function:
>> >> >> >
>> >> >> > >> }(); should be })();
>> >> >> >
>> >> >> > >> And I'm guessing '$' is there for jQuery, so that should
>> actually
>> >> >> > >> be
>> >> >> >
>> >> >> > >> })(jQuery);
>> >> >> >
>> >> >> > >> - ricardo
>> >> >> >
>> >> >> > >> On Jan 13, 3:56 pm, "Sagar Arya" 
>> wrote:
>> >> >> >
>> >> >> > >> may be i should check with the other files and let you know...
>> >> >> > >> thanks
>> >> >> > >> f

[jQuery] Re: IE Problem with (function($)

2009-01-15 Thread Sagar Arya
Hello,I am very sorry.. I am not supposed to publish the code..

Cheers !
Sagar

On Thu, Jan 15, 2009 at 3:28 PM, jQuery Lover  wrote:

>
> Is it possible to have your page published somewhere?
>
> 
> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>
>
>
> On Thu, Jan 15, 2009 at 2:44 PM, Sagar Arya 
> wrote:
> > Hello,
> >  Yes I included the jQuery file before the colorpicker.js file.
> And
> > it works fine in Mozilla and chrome.. but it doesn't turn up in IE.
> > Cheers !
> > Sagar
> >
> > On Thu, Jan 15, 2009 at 3:03 PM, jQuery Lover 
> wrote:
> >>
> >> Well, it says jQuery is undefined. Have you put your jquery.js file
> >> before colorpicker.js ?
> >>
> >> 
> >> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
> >>
> >>
> >>
> >> On Thu, Jan 15, 2009 at 2:27 PM, Sagar Arya 
> >> wrote:
> >> > Hello,
> >> >It doesn't seem to work even after adding the braces. It
> >> > works
> >> > fine in mozzila but the same syntax error in IE. ( IE suck more ! )...
> I
> >> > have attached the screen shots..
> >> > Cheers !
> >> > Aryan
> >> >
> >> > On Thu, Jan 15, 2009 at 10:44 AM, James Van Dyke 
> >> > wrote:
> >> >>
> >> >> The initial (function($) { was never closed.
> >> >>
> >> >> Here's how I formatted it so everything lines up:
> >> >>
> >> >> (function($){
> >> >>var EYE = window.EYE = (function() {
> >> >>var _registered = {
> >> >>init: []
> >> >>};
> >> >>return {
> >> >>init: function() {
> >> >>$.each(_registered.init, function(nr,
> >> >> fn) {
> >> >>fn.call();
> >> >>});
> >> >>},
> >> >>extend: function(prop) {
> >> >>for (var i in prop) {
> >> >>if (prop[i] != undefined) {
> >> >>this[i] = prop[i];
> >> >>}
> >> >>}
> >> >>},
> >> >>register: function(fn, type) {
> >> >>if (!_registered[type]) {
> >> >>_registered[type] = [];
> >> >>}
> >> >>_registered[type].push(fn);
> >> >>}
> >> >>};
> >> >>})();
> >> >>
> >> >>$(EYE.init);
> >> >> })(jQuery);
> >> >>
> >> >>
> >> >> I think that's about the most obfuscated thing I've seen this week.
>  I
> >> >> hope you're doing something cool.
> >> >>
> >> >> Let us know if that helps.
> >> >>
> >> >>
> >> >>
> >> >> On Jan 14, 11:57 pm, "Sagar Arya"  wrote:
> >> >> > Hello,  I tried changing the braces.. It seems they were
> >> >> > proper...
> >> >> > Here i am attaching all the files... Can anyone help me out pls...
> >> >> > its
> >> >> > perfectly running in mozilla, chrome.. but not in IE.. :(
> >> >> >
> >> >> > Cheers !
> >> >> > Sagar
> >> >> >
> >> >> > On Wed, Jan 14, 2009 at 12:08 PM, Sagar Arya <
> sagararya...@gmail.com>
> >> >> > wrote:
> >> >> > > hey thanks so much.. :-)
> >> >> >
> >> >> > > Cheers !
> >> >> > > Aryan
> >> >> >
> >> >> > > On Wed, Jan 14, 2009 at 10:26 AM, Karl Swedberg
> >> >> > > wrote:
> >> >> >
> >> >> > >> good eye, Ricardo! thanks for the back up. :-)
> >> >> >
> >> >> > >> --Karl
> >> >> >
> >> >> > >> 
> >> >> > >> Karl Swedberg
> >> >> > >>www.englishrules.com
> >> >> > >>www.learningjquery.com
> >> >> >
> >> >> > >>   On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote:
> >> >> >
> >> >> > >> You're missing a parenthesis when closing the anonymous
> function:
> >> >> >
> >> >> > >> }(); should be })();
> >> >> >
> >> >> > >> And I'm guessing '$' is there for jQuery, so that should
> actually
> >> >> > >> be
> >> >> >
> >> >> > >> })(jQuery);
> >> >> >
> >> >> > >> - ricardo
> >> >> >
> >> >> > >> On Jan 13, 3:56 pm, "Sagar Arya" 
> wrote:
> >> >> >
> >> >> > >> may be i should check with the other files and let you know...
> >> >> > >> thanks
> >> >> > >> for
> >> >> >
> >> >> > >> the information..
> >> >> >
> >> >> > >> Cheers !
> >> >> >
> >> >> > >> Aryan
> >> >> >
> >> >> > >> On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg
> >> >> > >>  >> >> > >> >wrote:
> >> >> >
> >> >> > >>  I'm not seeing anything obvious. Taking a stab in the dark here
> >> >> > >> ...
> >> >> > >> I've
> >> >> >
> >> >> > >>  received a similar error in the past when a reference to one of
> >> >> > >> my
> >> >> >
> >> >> > >>  JavaScript files was resulting in a 404. The browser would try
> to
> >> >> > >> parse
> >> >> > >> the
> >> >> >
> >> >> > >>  file as JavaScript, but of course it would be met with a syntax
> >> >> > >> error on
> >> >> >
> >> >> > >>  line 1.  Is

[jQuery] Re: IE Problem with (function($)

2009-01-15 Thread jQuery Lover

Is it possible to have your page published somewhere?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Jan 15, 2009 at 2:44 PM, Sagar Arya  wrote:
> Hello,
>  Yes I included the jQuery file before the colorpicker.js file. And
> it works fine in Mozilla and chrome.. but it doesn't turn up in IE.
> Cheers !
> Sagar
>
> On Thu, Jan 15, 2009 at 3:03 PM, jQuery Lover  wrote:
>>
>> Well, it says jQuery is undefined. Have you put your jquery.js file
>> before colorpicker.js ?
>>
>> 
>> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>>
>>
>>
>> On Thu, Jan 15, 2009 at 2:27 PM, Sagar Arya 
>> wrote:
>> > Hello,
>> >It doesn't seem to work even after adding the braces. It
>> > works
>> > fine in mozzila but the same syntax error in IE. ( IE suck more ! )... I
>> > have attached the screen shots..
>> > Cheers !
>> > Aryan
>> >
>> > On Thu, Jan 15, 2009 at 10:44 AM, James Van Dyke 
>> > wrote:
>> >>
>> >> The initial (function($) { was never closed.
>> >>
>> >> Here's how I formatted it so everything lines up:
>> >>
>> >> (function($){
>> >>var EYE = window.EYE = (function() {
>> >>var _registered = {
>> >>init: []
>> >>};
>> >>return {
>> >>init: function() {
>> >>$.each(_registered.init, function(nr,
>> >> fn) {
>> >>fn.call();
>> >>});
>> >>},
>> >>extend: function(prop) {
>> >>for (var i in prop) {
>> >>if (prop[i] != undefined) {
>> >>this[i] = prop[i];
>> >>}
>> >>}
>> >>},
>> >>register: function(fn, type) {
>> >>if (!_registered[type]) {
>> >>_registered[type] = [];
>> >>}
>> >>_registered[type].push(fn);
>> >>}
>> >>};
>> >>})();
>> >>
>> >>$(EYE.init);
>> >> })(jQuery);
>> >>
>> >>
>> >> I think that's about the most obfuscated thing I've seen this week.  I
>> >> hope you're doing something cool.
>> >>
>> >> Let us know if that helps.
>> >>
>> >>
>> >>
>> >> On Jan 14, 11:57 pm, "Sagar Arya"  wrote:
>> >> > Hello,  I tried changing the braces.. It seems they were
>> >> > proper...
>> >> > Here i am attaching all the files... Can anyone help me out pls...
>> >> > its
>> >> > perfectly running in mozilla, chrome.. but not in IE.. :(
>> >> >
>> >> > Cheers !
>> >> > Sagar
>> >> >
>> >> > On Wed, Jan 14, 2009 at 12:08 PM, Sagar Arya 
>> >> > wrote:
>> >> > > hey thanks so much.. :-)
>> >> >
>> >> > > Cheers !
>> >> > > Aryan
>> >> >
>> >> > > On Wed, Jan 14, 2009 at 10:26 AM, Karl Swedberg
>> >> > > wrote:
>> >> >
>> >> > >> good eye, Ricardo! thanks for the back up. :-)
>> >> >
>> >> > >> --Karl
>> >> >
>> >> > >> 
>> >> > >> Karl Swedberg
>> >> > >>www.englishrules.com
>> >> > >>www.learningjquery.com
>> >> >
>> >> > >>   On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote:
>> >> >
>> >> > >> You're missing a parenthesis when closing the anonymous function:
>> >> >
>> >> > >> }(); should be })();
>> >> >
>> >> > >> And I'm guessing '$' is there for jQuery, so that should actually
>> >> > >> be
>> >> >
>> >> > >> })(jQuery);
>> >> >
>> >> > >> - ricardo
>> >> >
>> >> > >> On Jan 13, 3:56 pm, "Sagar Arya"  wrote:
>> >> >
>> >> > >> may be i should check with the other files and let you know...
>> >> > >> thanks
>> >> > >> for
>> >> >
>> >> > >> the information..
>> >> >
>> >> > >> Cheers !
>> >> >
>> >> > >> Aryan
>> >> >
>> >> > >> On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg
>> >> > >> > >> > >> >wrote:
>> >> >
>> >> > >>  I'm not seeing anything obvious. Taking a stab in the dark here
>> >> > >> ...
>> >> > >> I've
>> >> >
>> >> > >>  received a similar error in the past when a reference to one of
>> >> > >> my
>> >> >
>> >> > >>  JavaScript files was resulting in a 404. The browser would try to
>> >> > >> parse
>> >> > >> the
>> >> >
>> >> > >>  file as JavaScript, but of course it would be met with a syntax
>> >> > >> error on
>> >> >
>> >> > >>  line 1.  Is it possible that the problem is not with this file,
>> >> > >> but
>> >> > >> with
>> >> >
>> >> > >>  another one that you're trying to include? Just a guess.
>> >> >
>> >> > >>  --Karl
>> >> >
>> >> > >>  
>> >> >
>> >> > >>  Karl Swedberg
>> >> >
>> >> > >>  www.englishrules.com
>> >> >
>> >> > >>  www.learningjquery.com
>> >> >
>> >> > >>  On Jan 13, 2009, at 5:35 AM, Aryan wrote:
>> >> >
>> >> > >>  I have a problem with Internet Explorer ( all versions ) . The
>> >> >

[jQuery] Re: IE Problem with (function($)

2009-01-15 Thread Sagar Arya
Hello, Yes I included the jQuery file before the colorpicker.js
file. And it works fine in Mozilla and chrome.. but it doesn't turn up in
IE.

Cheers !
Sagar

On Thu, Jan 15, 2009 at 3:03 PM, jQuery Lover  wrote:

>
> Well, it says jQuery is undefined. Have you put your jquery.js file
> before colorpicker.js ?
>
> 
> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>
>
>
> On Thu, Jan 15, 2009 at 2:27 PM, Sagar Arya 
> wrote:
> > Hello,
> >It doesn't seem to work even after adding the braces. It works
> > fine in mozzila but the same syntax error in IE. ( IE suck more ! )... I
> > have attached the screen shots..
> > Cheers !
> > Aryan
> >
> > On Thu, Jan 15, 2009 at 10:44 AM, James Van Dyke 
> wrote:
> >>
> >> The initial (function($) { was never closed.
> >>
> >> Here's how I formatted it so everything lines up:
> >>
> >> (function($){
> >>var EYE = window.EYE = (function() {
> >>var _registered = {
> >>init: []
> >>};
> >>return {
> >>init: function() {
> >>$.each(_registered.init, function(nr, fn)
> {
> >>fn.call();
> >>});
> >>},
> >>extend: function(prop) {
> >>for (var i in prop) {
> >>if (prop[i] != undefined) {
> >>this[i] = prop[i];
> >>}
> >>}
> >>},
> >>register: function(fn, type) {
> >>if (!_registered[type]) {
> >>_registered[type] = [];
> >>}
> >>_registered[type].push(fn);
> >>}
> >>};
> >>})();
> >>
> >>$(EYE.init);
> >> })(jQuery);
> >>
> >>
> >> I think that's about the most obfuscated thing I've seen this week.  I
> >> hope you're doing something cool.
> >>
> >> Let us know if that helps.
> >>
> >>
> >>
> >> On Jan 14, 11:57 pm, "Sagar Arya"  wrote:
> >> > Hello,  I tried changing the braces.. It seems they were
> >> > proper...
> >> > Here i am attaching all the files... Can anyone help me out pls... its
> >> > perfectly running in mozilla, chrome.. but not in IE.. :(
> >> >
> >> > Cheers !
> >> > Sagar
> >> >
> >> > On Wed, Jan 14, 2009 at 12:08 PM, Sagar Arya 
> >> > wrote:
> >> > > hey thanks so much.. :-)
> >> >
> >> > > Cheers !
> >> > > Aryan
> >> >
> >> > > On Wed, Jan 14, 2009 at 10:26 AM, Karl Swedberg
> >> > > wrote:
> >> >
> >> > >> good eye, Ricardo! thanks for the back up. :-)
> >> >
> >> > >> --Karl
> >> >
> >> > >> 
> >> > >> Karl Swedberg
> >> > >>www.englishrules.com
> >> > >>www.learningjquery.com
> >> >
> >> > >>   On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote:
> >> >
> >> > >> You're missing a parenthesis when closing the anonymous function:
> >> >
> >> > >> }(); should be })();
> >> >
> >> > >> And I'm guessing '$' is there for jQuery, so that should actually
> be
> >> >
> >> > >> })(jQuery);
> >> >
> >> > >> - ricardo
> >> >
> >> > >> On Jan 13, 3:56 pm, "Sagar Arya"  wrote:
> >> >
> >> > >> may be i should check with the other files and let you know...
> thanks
> >> > >> for
> >> >
> >> > >> the information..
> >> >
> >> > >> Cheers !
> >> >
> >> > >> Aryan
> >> >
> >> > >> On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg <
> k...@englishrules.com
> >> > >> >wrote:
> >> >
> >> > >>  I'm not seeing anything obvious. Taking a stab in the dark here
> ...
> >> > >> I've
> >> >
> >> > >>  received a similar error in the past when a reference to one of my
> >> >
> >> > >>  JavaScript files was resulting in a 404. The browser would try to
> >> > >> parse
> >> > >> the
> >> >
> >> > >>  file as JavaScript, but of course it would be met with a syntax
> >> > >> error on
> >> >
> >> > >>  line 1.  Is it possible that the problem is not with this file,
> but
> >> > >> with
> >> >
> >> > >>  another one that you're trying to include? Just a guess.
> >> >
> >> > >>  --Karl
> >> >
> >> > >>  
> >> >
> >> > >>  Karl Swedberg
> >> >
> >> > >>  www.englishrules.com
> >> >
> >> > >>  www.learningjquery.com
> >> >
> >> > >>  On Jan 13, 2009, at 5:35 AM, Aryan wrote:
> >> >
> >> > >>  I have a problem with Internet Explorer ( all versions ) . The
> >> >
> >> > >>  following is my JQuery Code , which executes perfectly in mozilla
> >> > >> and
> >> >
> >> > >>  chrome.. But it doesn't work in Internet Explorer.
> >> >
> >> > >>  It says : Syntax error ( line 1 )... Can anyone help me out here..
> >> >
> >> > >>  Thanks for your time in reading this.
> >> >
> >> > >>  (function($){
> >> >
> >> > >>  var EYE = window.EYE = function() {
> >

[jQuery] Re: IE Problem with (function($)

2009-01-15 Thread jQuery Lover

Well, it says jQuery is undefined. Have you put your jquery.js file
before colorpicker.js ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Jan 15, 2009 at 2:27 PM, Sagar Arya  wrote:
> Hello,
>It doesn't seem to work even after adding the braces. It works
> fine in mozzila but the same syntax error in IE. ( IE suck more ! )... I
> have attached the screen shots..
> Cheers !
> Aryan
>
> On Thu, Jan 15, 2009 at 10:44 AM, James Van Dyke  wrote:
>>
>> The initial (function($) { was never closed.
>>
>> Here's how I formatted it so everything lines up:
>>
>> (function($){
>>var EYE = window.EYE = (function() {
>>var _registered = {
>>init: []
>>};
>>return {
>>init: function() {
>>$.each(_registered.init, function(nr, fn) {
>>fn.call();
>>});
>>},
>>extend: function(prop) {
>>for (var i in prop) {
>>if (prop[i] != undefined) {
>>this[i] = prop[i];
>>}
>>}
>>},
>>register: function(fn, type) {
>>if (!_registered[type]) {
>>_registered[type] = [];
>>}
>>_registered[type].push(fn);
>>}
>>};
>>})();
>>
>>$(EYE.init);
>> })(jQuery);
>>
>>
>> I think that's about the most obfuscated thing I've seen this week.  I
>> hope you're doing something cool.
>>
>> Let us know if that helps.
>>
>>
>>
>> On Jan 14, 11:57 pm, "Sagar Arya"  wrote:
>> > Hello,  I tried changing the braces.. It seems they were
>> > proper...
>> > Here i am attaching all the files... Can anyone help me out pls... its
>> > perfectly running in mozilla, chrome.. but not in IE.. :(
>> >
>> > Cheers !
>> > Sagar
>> >
>> > On Wed, Jan 14, 2009 at 12:08 PM, Sagar Arya 
>> > wrote:
>> > > hey thanks so much.. :-)
>> >
>> > > Cheers !
>> > > Aryan
>> >
>> > > On Wed, Jan 14, 2009 at 10:26 AM, Karl Swedberg
>> > > wrote:
>> >
>> > >> good eye, Ricardo! thanks for the back up. :-)
>> >
>> > >> --Karl
>> >
>> > >> 
>> > >> Karl Swedberg
>> > >>www.englishrules.com
>> > >>www.learningjquery.com
>> >
>> > >>   On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote:
>> >
>> > >> You're missing a parenthesis when closing the anonymous function:
>> >
>> > >> }(); should be })();
>> >
>> > >> And I'm guessing '$' is there for jQuery, so that should actually be
>> >
>> > >> })(jQuery);
>> >
>> > >> - ricardo
>> >
>> > >> On Jan 13, 3:56 pm, "Sagar Arya"  wrote:
>> >
>> > >> may be i should check with the other files and let you know... thanks
>> > >> for
>> >
>> > >> the information..
>> >
>> > >> Cheers !
>> >
>> > >> Aryan
>> >
>> > >> On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg > > >> >wrote:
>> >
>> > >>  I'm not seeing anything obvious. Taking a stab in the dark here ...
>> > >> I've
>> >
>> > >>  received a similar error in the past when a reference to one of my
>> >
>> > >>  JavaScript files was resulting in a 404. The browser would try to
>> > >> parse
>> > >> the
>> >
>> > >>  file as JavaScript, but of course it would be met with a syntax
>> > >> error on
>> >
>> > >>  line 1.  Is it possible that the problem is not with this file, but
>> > >> with
>> >
>> > >>  another one that you're trying to include? Just a guess.
>> >
>> > >>  --Karl
>> >
>> > >>  
>> >
>> > >>  Karl Swedberg
>> >
>> > >>  www.englishrules.com
>> >
>> > >>  www.learningjquery.com
>> >
>> > >>  On Jan 13, 2009, at 5:35 AM, Aryan wrote:
>> >
>> > >>  I have a problem with Internet Explorer ( all versions ) . The
>> >
>> > >>  following is my JQuery Code , which executes perfectly in mozilla
>> > >> and
>> >
>> > >>  chrome.. But it doesn't work in Internet Explorer.
>> >
>> > >>  It says : Syntax error ( line 1 )... Can anyone help me out here..
>> >
>> > >>  Thanks for your time in reading this.
>> >
>> > >>  (function($){
>> >
>> > >>  var EYE = window.EYE = function() {
>> >
>> > >>   var _registered = {
>> >
>> > >>   init: []
>> >
>> > >>   };
>> >
>> > >>   return {
>> >
>> > >>   init: function() {
>> >
>> > >>$.each(_registered.init, function(nr, fn){
>> >
>> > >>fn.call();
>> >
>> > >>});
>> >
>> > >>   },
>> >
>> > >>   extend: function(prop) {
>> >
>> > >>for (var i in prop) {
>> >
>> > >>if (prop[i] != undefined) {
>> >
>> > >> this[i] = prop[i];
>> >
>> > >>}
>> >
>> > >>}
>> >
>> > >>   },
>> >
>> > >>   register: function(fn, type) {
>> >
>> > >>if (!_registered[type]) {
>> >
>> > >>_r

[jQuery] Re: IE Problem with (function($)

2009-01-14 Thread James Van Dyke

The initial (function($) { was never closed.

Here's how I formatted it so everything lines up:

(function($){
var EYE = window.EYE = (function() {
var _registered = {
init: []
};
return {
init: function() {
$.each(_registered.init, function(nr, fn) {
fn.call();
});
},
extend: function(prop) {
for (var i in prop) {
if (prop[i] != undefined) {
this[i] = prop[i];
}
}
},
register: function(fn, type) {
if (!_registered[type]) {
_registered[type] = [];
}
_registered[type].push(fn);
}
};
})();

$(EYE.init);
})(jQuery);


I think that's about the most obfuscated thing I've seen this week.  I
hope you're doing something cool.

Let us know if that helps.



On Jan 14, 11:57 pm, "Sagar Arya"  wrote:
> Hello,          I tried changing the braces.. It seems they were proper...
> Here i am attaching all the files... Can anyone help me out pls... its
> perfectly running in mozilla, chrome.. but not in IE.. :(
>
> Cheers !
> Sagar
>
> On Wed, Jan 14, 2009 at 12:08 PM, Sagar Arya  wrote:
> > hey thanks so much.. :-)
>
> > Cheers !
> > Aryan
>
> > On Wed, Jan 14, 2009 at 10:26 AM, Karl Swedberg 
> > wrote:
>
> >> good eye, Ricardo! thanks for the back up. :-)
>
> >> --Karl
>
> >> 
> >> Karl Swedberg
> >>www.englishrules.com
> >>www.learningjquery.com
>
> >>   On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote:
>
> >> You're missing a parenthesis when closing the anonymous function:
>
> >> }(); should be })();
>
> >> And I'm guessing '$' is there for jQuery, so that should actually be
>
> >> })(jQuery);
>
> >> - ricardo
>
> >> On Jan 13, 3:56 pm, "Sagar Arya"  wrote:
>
> >> may be i should check with the other files and let you know... thanks for
>
> >> the information..
>
> >> Cheers !
>
> >> Aryan
>
> >> On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg  >> >wrote:
>
> >>  I'm not seeing anything obvious. Taking a stab in the dark here ... I've
>
> >>  received a similar error in the past when a reference to one of my
>
> >>  JavaScript files was resulting in a 404. The browser would try to parse
> >> the
>
> >>  file as JavaScript, but of course it would be met with a syntax error on
>
> >>  line 1.  Is it possible that the problem is not with this file, but with
>
> >>  another one that you're trying to include? Just a guess.
>
> >>  --Karl
>
> >>  
>
> >>  Karl Swedberg
>
> >>  www.englishrules.com
>
> >>  www.learningjquery.com
>
> >>  On Jan 13, 2009, at 5:35 AM, Aryan wrote:
>
> >>  I have a problem with Internet Explorer ( all versions ) . The
>
> >>  following is my JQuery Code , which executes perfectly in mozilla and
>
> >>  chrome.. But it doesn't work in Internet Explorer.
>
> >>  It says : Syntax error ( line 1 )... Can anyone help me out here..
>
> >>  Thanks for your time in reading this.
>
> >>  (function($){
>
> >>  var EYE = window.EYE = function() {
>
> >>   var _registered = {
>
> >>   init: []
>
> >>   };
>
> >>   return {
>
> >>   init: function() {
>
> >>    $.each(_registered.init, function(nr, fn){
>
> >>    fn.call();
>
> >>    });
>
> >>   },
>
> >>   extend: function(prop) {
>
> >>    for (var i in prop) {
>
> >>    if (prop[i] != undefined) {
>
> >>     this[i] = prop[i];
>
> >>    }
>
> >>    }
>
> >>   },
>
> >>   register: function(fn, type) {
>
> >>    if (!_registered[type]) {
>
> >>    _registered[type] = [];
>
> >>    }
>
> >>    _registered[type].push(fn);
>
> >>   }
>
> >>   };
>
> >>  }();
>
> >>  $(EYE.init);
>
> >>  })(jQuery);
>
>
>
>  colorpicker.js
> 22KViewDownload
>
>  eye.js
> < 1KViewDownload
>
>  jquery.js
> 136KViewDownload
>
>  layout.js
> 2KViewDownload
>
>  utils.js
> 9KViewDownload


[jQuery] Re: IE Problem with (function($)

2009-01-13 Thread Sagar Arya
hey thanks so much.. :-)

Cheers !
Aryan

On Wed, Jan 14, 2009 at 10:26 AM, Karl Swedberg wrote:

> good eye, Ricardo! thanks for the back up. :-)
>
> --Karl
>
> 
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
>
>   On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote:
>
>
> You're missing a parenthesis when closing the anonymous function:
>
> }(); should be })();
>
> And I'm guessing '$' is there for jQuery, so that should actually be
>
> })(jQuery);
>
> - ricardo
>
> On Jan 13, 3:56 pm, "Sagar Arya"  wrote:
>
> may be i should check with the other files and let you know... thanks for
>
> the information..
>
> Cheers !
>
> Aryan
>
>
> On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg  >wrote:
>
>
>  I'm not seeing anything obvious. Taking a stab in the dark here ... I've
>
>  received a similar error in the past when a reference to one of my
>
>  JavaScript files was resulting in a 404. The browser would try to parse
> the
>
>  file as JavaScript, but of course it would be met with a syntax error on
>
>  line 1.  Is it possible that the problem is not with this file, but with
>
>  another one that you're trying to include? Just a guess.
>
>
>  --Karl
>
>
>  
>
>  Karl Swedberg
>
>  www.englishrules.com
>
>  www.learningjquery.com
>
>
>  On Jan 13, 2009, at 5:35 AM, Aryan wrote:
>
>
>  I have a problem with Internet Explorer ( all versions ) . The
>
>  following is my JQuery Code , which executes perfectly in mozilla and
>
>  chrome.. But it doesn't work in Internet Explorer.
>
>  It says : Syntax error ( line 1 )... Can anyone help me out here..
>
>  Thanks for your time in reading this.
>
>
>  (function($){
>
>  var EYE = window.EYE = function() {
>
>   var _registered = {
>
>   init: []
>
>   };
>
>   return {
>
>   init: function() {
>
>$.each(_registered.init, function(nr, fn){
>
>fn.call();
>
>});
>
>   },
>
>   extend: function(prop) {
>
>for (var i in prop) {
>
>if (prop[i] != undefined) {
>
> this[i] = prop[i];
>
>}
>
>}
>
>   },
>
>   register: function(fn, type) {
>
>if (!_registered[type]) {
>
>_registered[type] = [];
>
>}
>
>_registered[type].push(fn);
>
>   }
>
>   };
>
>  }();
>
>  $(EYE.init);
>
>  })(jQuery);
>
>
>


[jQuery] Re: IE Problem with (function($)

2009-01-13 Thread Karl Swedberg

good eye, Ricardo! thanks for the back up. :-)

--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote:



You're missing a parenthesis when closing the anonymous function:

}(); should be })();

And I'm guessing '$' is there for jQuery, so that should actually be

})(jQuery);

- ricardo

On Jan 13, 3:56 pm, "Sagar Arya"  wrote:
may be i should check with the other files and let you know...  
thanks for

the information..
Cheers !
Aryan

On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg  
wrote:


I'm not seeing anything obvious. Taking a stab in the dark  
here ... I've

received a similar error in the past when a reference to one of my
JavaScript files was resulting in a 404. The browser would try to  
parse the
file as JavaScript, but of course it would be met with a syntax  
error on
line 1.  Is it possible that the problem is not with this file,  
but with

another one that you're trying to include? Just a guess.



--Karl




Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jan 13, 2009, at 5:35 AM, Aryan wrote:



I have a problem with Internet Explorer ( all versions ) . The
following is my JQuery Code , which executes perfectly in mozilla  
and

chrome.. But it doesn't work in Internet Explorer.
It says : Syntax error ( line 1 )... Can anyone help me out here..
Thanks for your time in reading this.



(function($){
var EYE = window.EYE = function() {
 var _registered = {
 init: []
 };
 return {
 init: function() {
  $.each(_registered.init, function(nr, fn){
  fn.call();
  });
 },
 extend: function(prop) {
  for (var i in prop) {
  if (prop[i] != undefined) {
   this[i] = prop[i];
  }
  }
 },
 register: function(fn, type) {
  if (!_registered[type]) {
  _registered[type] = [];
  }
  _registered[type].push(fn);
 }
 };
}();
$(EYE.init);
})(jQuery);




[jQuery] Re: IE Problem with (function($)

2009-01-13 Thread Ricardo Tomasi

You're missing a parenthesis when closing the anonymous function:

}(); should be })();

And I'm guessing '$' is there for jQuery, so that should actually be

})(jQuery);

- ricardo

On Jan 13, 3:56 pm, "Sagar Arya"  wrote:
> may be i should check with the other files and let you know... thanks for
> the information..
> Cheers !
> Aryan
>
> On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg wrote:
>
> > I'm not seeing anything obvious. Taking a stab in the dark here ... I've
> > received a similar error in the past when a reference to one of my
> > JavaScript files was resulting in a 404. The browser would try to parse the
> > file as JavaScript, but of course it would be met with a syntax error on
> > line 1.  Is it possible that the problem is not with this file, but with
> > another one that you're trying to include? Just a guess.
>
> > --Karl
>
> > 
> > Karl Swedberg
> >www.englishrules.com
> >www.learningjquery.com
>
> > On Jan 13, 2009, at 5:35 AM, Aryan wrote:
>
> > I have a problem with Internet Explorer ( all versions ) . The
> > following is my JQuery Code , which executes perfectly in mozilla and
> > chrome.. But it doesn't work in Internet Explorer.
> > It says : Syntax error ( line 1 )... Can anyone help me out here..
> > Thanks for your time in reading this.
>
> > (function($){
> > var EYE = window.EYE = function() {
> >  var _registered = {
> >  init: []
> >  };
> >  return {
> >  init: function() {
> >   $.each(_registered.init, function(nr, fn){
> >   fn.call();
> >   });
> >  },
> >  extend: function(prop) {
> >   for (var i in prop) {
> >   if (prop[i] != undefined) {
> >    this[i] = prop[i];
> >   }
> >   }
> >  },
> >  register: function(fn, type) {
> >   if (!_registered[type]) {
> >   _registered[type] = [];
> >   }
> >   _registered[type].push(fn);
> >  }
> >  };
> > }();
> > $(EYE.init);
> > })(jQuery);


[jQuery] Re: IE Problem with (function($)

2009-01-13 Thread Sagar Arya
may be i should check with the other files and let you know... thanks for
the information..
Cheers !
Aryan

On Tue, Jan 13, 2009 at 7:06 PM, Karl Swedberg wrote:

> I'm not seeing anything obvious. Taking a stab in the dark here ... I've
> received a similar error in the past when a reference to one of my
> JavaScript files was resulting in a 404. The browser would try to parse the
> file as JavaScript, but of course it would be met with a syntax error on
> line 1.  Is it possible that the problem is not with this file, but with
> another one that you're trying to include? Just a guess.
>
> --Karl
>
> 
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
>
> On Jan 13, 2009, at 5:35 AM, Aryan wrote:
>
>
> I have a problem with Internet Explorer ( all versions ) . The
> following is my JQuery Code , which executes perfectly in mozilla and
> chrome.. But it doesn't work in Internet Explorer.
> It says : Syntax error ( line 1 )... Can anyone help me out here..
> Thanks for your time in reading this.
>
>
> (function($){
> var EYE = window.EYE = function() {
>  var _registered = {
>  init: []
>  };
>  return {
>  init: function() {
>   $.each(_registered.init, function(nr, fn){
>   fn.call();
>   });
>  },
>  extend: function(prop) {
>   for (var i in prop) {
>   if (prop[i] != undefined) {
>this[i] = prop[i];
>   }
>   }
>  },
>  register: function(fn, type) {
>   if (!_registered[type]) {
>   _registered[type] = [];
>   }
>   _registered[type].push(fn);
>  }
>  };
> }();
> $(EYE.init);
> })(jQuery);
>
>
>


[jQuery] Re: IE Problem with (function($)

2009-01-13 Thread Karl Swedberg

I'm not seeing anything obvious.
Taking a stab in the dark here ... I've received a similar error in  
the past when a reference to one of my JavaScript files was resulting  
in a 404. The browser would try to parse the file as JavaScript, but  
of course it would be met with a syntax error on line 1.  Is it  
possible that the problem is not with this file, but with another one  
that you're trying to include? Just a guess.


--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Jan 13, 2009, at 5:35 AM, Aryan wrote:



I have a problem with Internet Explorer ( all versions ) . The
following is my JQuery Code , which executes perfectly in mozilla and
chrome.. But it doesn't work in Internet Explorer.
It says : Syntax error ( line 1 )... Can anyone help me out here..
Thanks for your time in reading this.


(function($){
var EYE = window.EYE = function() {
var _registered = {
init: []
};
return {
init: function() {
$.each(_registered.init, function(nr, fn){
fn.call();
});
},
extend: function(prop) {
for (var i in prop) {
if (prop[i] != undefined) {
this[i] = prop[i];
}
}
},
register: function(fn, type) {
if (!_registered[type]) {
_registered[type] = [];
}
_registered[type].push(fn);
}
};
}();
$(EYE.init);
})(jQuery);




[jQuery] Re: IE Problem

2009-01-07 Thread jhm

> Are you sure you understand what Fiddler does?

Yea, I saw what it does and I really appreciate the tip. It's really
useful and I could see the actual GET was working returning the data.
The problem was with the json data in the file I was opening (a
fundamental mistake on my part).

Just in case anyone is interested, here's the problem with IE:

var myjson = {
  'tag1': 'entry1",
  'tag2": 'entry2',// <-- that comma will cause an error in IE,
but not FF or Opera
};

Our data is actually automatically formatted, but we mistakenly
thought the comma was allowed on the last entry. Apparently it's
dependent on browser implementation.

But thanks very much for your help!


[jQuery] Re: IE Problem

2009-01-07 Thread MorningZ

"Unfortunately, it doesn't help my
problem"

Are you sure you understand what Fiddler does?

With the program running to the side of IE, you can see:
1) that the getJSON request is actually made  (which btw, it'll be
good to get in the habit of proper capitalization in JavaScript)
2) if it was, then what is the browser seeing returned






On Jan 6, 3:24 pm, jhm  wrote:
> > I'd suggest downloading and installing "Fiddler" 
> > (http://www.fiddlertool.com)
>
> That's a great tool, thanks! Unfortunately, it doesn't help my
> problem. I figure I must be doing something fundamentally wrong, since
> jquery is widely thought of as browser agnostic.
>
> So, I put together a small sample file that has everything in it (and
> still exhibits the problem). If anyone can see something I'm doing
> wrong, please point it out. Here's the html file:
>
> ===
> 
>   
>
>   jquery problem
>
>   
>
>   
>   
>   
>
> 
>
> 
>   
>     
>       row one
>       row two
>       row three
>     
>   
>
> 
> ===


[jQuery] Re: IE Problem

2009-01-07 Thread Thomas

It would be interesting to see './files/v-winter.txt' as well,
specifically how it's being served.

Total shot in the dark, but I remember having had a similar problem
(IE-only) when I started playing with XML files many moons ago.

Maybe it would help if you served that file with an 'content-type:
application/json' header? That was the problem I had with the XML
file.


On Jan 6, 9:24�pm, jhm  wrote:
> > I'd suggest downloading and installing "Fiddler" 
> > (http://www.fiddlertool.com)
>
> That's a great tool, thanks! Unfortunately, it doesn't help my
> problem. I figure I must be doing something fundamentally wrong, since
> jquery is widely thought of as browser agnostic.
>
> So, I put together a small sample file that has everything in it (and
> still exhibits the problem). If anyone can see something I'm doing
> wrong, please point it out. Here's the html file:
>
> ===
> 
> � 
>
> � jquery problem
>
> � 
>
> � 
> � 
> � 
>
> 
>
> 
> � 
> � � 
> � � � row one
> � � � row two
> � � � row three
> � � 
> � 
>
> 
> ===


[jQuery] Re: IE Problem

2009-01-06 Thread jhm

> I'd suggest downloading and installing "Fiddler" (http://www.fiddlertool.com)

That's a great tool, thanks! Unfortunately, it doesn't help my
problem. I figure I must be doing something fundamentally wrong, since
jquery is widely thought of as browser agnostic.

So, I put together a small sample file that has everything in it (and
still exhibits the problem). If anyone can see something I'm doing
wrong, please point it out. Here's the html file:

===

  

  jquery problem

  

  
  
  




  

  row one
  row two
  row three

  


===


[jQuery] Re: IE Problem

2009-01-06 Thread jhm

Fiddler is a great tool, thanks for that tip!

Unfortunately, it doesn't help my problem. I figure I must be doing
something fundamentally wrong, since jquery is widely thought of as
browser agnostic.

So, I put together a small sample file that has everything in it (and
still exhibits the problem). If anyone can see something I'm doing
wrong, please point it out. Here's the html file:

===
http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd";>

http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">


  
  

  jquery problem

  

  
  
  




  

  row one
  row two
  row three

  




===




[jQuery] Re: IE Problem

2009-01-05 Thread MorningZ

I'd suggest downloading and installing "Fiddler" (http://
www.fiddlertool.com) and seeing what the client side request looks
like



On Jan 5, 7:22 pm, jhm  wrote:
> The following code works in Firefox and Opera, but does nothing in IE.
> The problem is the loading of the json file. Am I missing something?
>
> $(document).ready(function() {
>     alert('two');
>     $.getJSON('./files/v-winter.json', function(data){
>         alert('three');
>         $('tbody.schedule').empty();
>     });
>
> });


[jQuery] Re: IE problem

2008-12-05 Thread Michael Geary

I see one problem right away: You're getting a "guid is null or not an
object" error in your initialization code. Walking up the call stack, it
turns out that this comes from the .hover() call at the end of your
JavaScript code. The .hover() method takes two function arguments, and it's
not being called with these arguments.

Once you get past that error, I notice that clicking the Next button seems
to work OK, but it only highlights the selected item number on every other
click. This is happening because your $('#promotion_holder >
#promotion_navigation > ul > li a') selector (with the :eq(n) part removed)
is selecting 18 elements, not the 9 elements that you expect.

Looking at the page with the IE Developer Toolbar, it does indeed show that
each of your LI elements contains not only the expected A element, but a
second A element as well.

I didn't investigate why that is happening.

Do you have any debugging tools for IE? Here's what you need to do the
investigation I just did. First, do this Google search:

ie developer toolbar

and install the developer toolbar. This includes a page inspector similar to
the one in Firebug.

Then, use this Google search:

visual web developer express debug javascript

The first result should be a page on berniecode.com that explains how to set
up Microsoft's free Visual Web Developer 2008 Express Edition to debug
JavaScript in IE. There's one item the page omits: I found that you need to
make IE the default browser before starting debugging.

This is actually an outstanding JavaScript debugger, much better than the
one in Firebug or any other.

-Mike

> From: luke adamis
> 
> test page:
> http://kitchenshop.ebeacon.net/catalog/
> thanks,
> luke

> On Dec 4, 2008, at 6:29 PM, Michael Geary wrote:
> 
> >
> > It doesn't seem to work for me in Firefox either.
> >
> > For some reason, $('.promotion_content').length evaluates to 0.
> >
> > Oh! I get it. I'm missing the HTML code!
> >
> > Sorry, just kidding around with you. :-)
> >
> > But seriously, it's pretty hard to guess what might be 
> wrong without a 
> > test page to look at.
> >
> > The one thing I can suggest from looking at the JS code 
> alone is that 
> > there's a big chunk of duplicate code that could be removed. That's 
> > unlikely to be related to the IE problem, though. So put up a test 
> > page and someone can probably give you some ideas.
> >
> > -Mike
> >
> >> From: luke adamis
> >>
> >> Why isn't tis working in IE?
> >>
> >> $(document).ready(function(){  
> >>
> >>//tabber
> >>
> >>var e = $('.promotion_content').length;
> >>
> >>var n = Math.floor(Math.random()*e);
> >>
> >>$('#promotion_holder > .promotion_content').hide();
> >>
> >>$('#promotion_holder > .promotion_content:eq('+n+')').show();
> >>$('#promotion_holder > #promotion_navigation > ul > li
> >>> a:eq('+n
> >> +')').addClass('selected');
> >>
> >>$('#promotion_holder > #promotion_navigation > #next > 
> a').click 
> >> (function () {
> >>if (n == e-1) { n = 0; } else { n = n+1; }
> >>$('#promotion_holder > .promotion_content').hide();
> >>$('#promotion_holder > #promotion_navigation > 
> ul > li > 
> >> a').removeClass('selected');
> >>$('#promotion_holder >
> >> .promotion_content:eq('+n+')').fadeIn('slow');
> >>$('#promotion_holder > #promotion_navigation > 
> ul > li > a:eq('+n
> >> +')').addClass('selected');
> >>return false;
> >>});
> >>
> >>$('#promotion_holder > #promotion_navigation > 
> #previous > a').click 
> >> (function () {
> >>if (n == 0) { n = e-1; } else { n = n-1; }
> >>$('#promotion_holder > .promotion_content').hide();
> >>$('#promotion_holder > #promotion_navigation > 
> ul > li > 
> >> a').removeClass('selected');
> >>$('#promotion_holder >
> >> .promotion_content:eq('+n+')').fadeIn('slow');
> >>$('#promotion_holder > #promotion_navigation > 
> ul > li > a:eq('+n
> >> +')').addClass('selected');
> >>return false;
> >>});
> >>
> >>var tab_content = $('#promotion_holder > .promotion_content');
> >>
> >>$('#promotion_holder > #promotion_navigation > ul > li
> >>> a').click (function () {
> >>tab_content.hide().filter(this.hash).fadeIn('slow');
> >>
> >>$('#promotion_holder > #promotion_navigation > 
> ul > li > 
> >> a').removeClass('selected');
> >>$(this).addClass('selected');
> >>n = $(this).attr('name') - 1;
> >>
> >>return false;
> >>
> >>}).filter(':first').hover();
> >>
> >> });
> >>
> >> 
> >>
> >> both the random selection and the clicking on the next previous 
> >> buttons are messed up in IE6, IE7. if I set var e = $ 
> >> ('.promotion_content').length; to a fixed number, the script works.
> >> but I need to count the elements someh

[jQuery] Re: IE problem

2008-12-05 Thread luke adamis


OK I figured it out.

There is nothing wrong with my script.

This website is developed in ShopSite. http://shopsite.com/
ShopSite uses templates to build static pages. In order to cross link  
and to be able to search ShopSite places anchors all over the HTML.
For some reason for these anchors it duplicates the ids and classes I  
put into the template. since JQuery relies on classes and ids of DOM  
elements we get a conflict there.
Safari, Firefox are smart enough to deal with the conflict. IE6 and  
IE7 mess up.


L.




On Dec 5, 2008, at 10:12 AM, luke adamis wrote:



test page:
http://kitchenshop.ebeacon.net/catalog/
thanks,
luke

On Dec 4, 2008, at 6:29 PM, Michael Geary wrote:



It doesn't seem to work for me in Firefox either.

For some reason, $('.promotion_content').length evaluates to 0.

Oh! I get it. I'm missing the HTML code!

Sorry, just kidding around with you. :-)

But seriously, it's pretty hard to guess what might be wrong  
without a test

page to look at.

The one thing I can suggest from looking at the JS code alone is that
there's a big chunk of duplicate code that could be removed.  
That's unlikely
to be related to the IE problem, though. So put up a test page and  
someone

can probably give you some ideas.

-Mike


From: luke adamis

Why isn't tis working in IE?

$(document).ready(function(){   

//tabber

var e = $('.promotion_content').length;

var n = Math.floor(Math.random()*e);

$('#promotion_holder > .promotion_content').hide();

$('#promotion_holder > .promotion_content:eq('+n+')').show();
$('#promotion_holder > #promotion_navigation > ul > li

a:eq('+n

+')').addClass('selected');

$('#promotion_holder > #promotion_navigation > #next >
a').click (function () {
if (n == e-1) { n = 0; } else { n = n+1; }
$('#promotion_holder > .promotion_content').hide();
$('#promotion_holder > #promotion_navigation >
ul > li > a').removeClass('selected');
$('#promotion_holder >
.promotion_content:eq('+n+')').fadeIn('slow');
$('#promotion_holder > #promotion_navigation >
ul > li > a:eq('+n
+')').addClass('selected');
return false;
});

$('#promotion_holder > #promotion_navigation >
#previous > a').click (function () {
if (n == 0) { n = e-1; } else { n = n-1; }
$('#promotion_holder > .promotion_content').hide();
$('#promotion_holder > #promotion_navigation >
ul > li > a').removeClass('selected');
$('#promotion_holder >
.promotion_content:eq('+n+')').fadeIn('slow');
$('#promotion_holder > #promotion_navigation >
ul > li > a:eq('+n
+')').addClass('selected');
return false;
});

var tab_content = $('#promotion_holder > .promotion_content');

$('#promotion_holder > #promotion_navigation > ul > li

a').click (function () {

tab_content.hide().filter(this.hash).fadeIn('slow');

$('#promotion_holder > #promotion_navigation >
ul > li > a').removeClass('selected');
$(this).addClass('selected');
n = $(this).attr('name') - 1;

return false;

}).filter(':first').hover();

});



both the random selection and the clicking on the next
previous buttons are messed up in IE6, IE7. if I set var e =
$ ('.promotion_content').length; to a fixed number, the
script works.
but I need to count the elements somehow first.

thanks,
luke













[jQuery] Re: IE problem

2008-12-05 Thread luke adamis


test page:
http://kitchenshop.ebeacon.net/catalog/
thanks,
luke

On Dec 4, 2008, at 6:29 PM, Michael Geary wrote:



It doesn't seem to work for me in Firefox either.

For some reason, $('.promotion_content').length evaluates to 0.

Oh! I get it. I'm missing the HTML code!

Sorry, just kidding around with you. :-)

But seriously, it's pretty hard to guess what might be wrong  
without a test

page to look at.

The one thing I can suggest from looking at the JS code alone is that
there's a big chunk of duplicate code that could be removed. That's  
unlikely
to be related to the IE problem, though. So put up a test page and  
someone

can probably give you some ideas.

-Mike


From: luke adamis

Why isn't tis working in IE?

$(document).ready(function(){   

//tabber

var e = $('.promotion_content').length;

var n = Math.floor(Math.random()*e);

$('#promotion_holder > .promotion_content').hide();

$('#promotion_holder > .promotion_content:eq('+n+')').show();
$('#promotion_holder > #promotion_navigation > ul > li

a:eq('+n

+')').addClass('selected');

$('#promotion_holder > #promotion_navigation > #next >
a').click (function () {
if (n == e-1) { n = 0; } else { n = n+1; }
$('#promotion_holder > .promotion_content').hide();
$('#promotion_holder > #promotion_navigation >
ul > li > a').removeClass('selected');
$('#promotion_holder >
.promotion_content:eq('+n+')').fadeIn('slow');
$('#promotion_holder > #promotion_navigation >
ul > li > a:eq('+n
+')').addClass('selected');
return false;
});

$('#promotion_holder > #promotion_navigation >
#previous > a').click (function () {
if (n == 0) { n = e-1; } else { n = n-1; }
$('#promotion_holder > .promotion_content').hide();
$('#promotion_holder > #promotion_navigation >
ul > li > a').removeClass('selected');
$('#promotion_holder >
.promotion_content:eq('+n+')').fadeIn('slow');
$('#promotion_holder > #promotion_navigation >
ul > li > a:eq('+n
+')').addClass('selected');
return false;
});

var tab_content = $('#promotion_holder > .promotion_content');

$('#promotion_holder > #promotion_navigation > ul > li

a').click (function () {

tab_content.hide().filter(this.hash).fadeIn('slow');

$('#promotion_holder > #promotion_navigation >
ul > li > a').removeClass('selected');
$(this).addClass('selected');
n = $(this).attr('name') - 1;

return false;

}).filter(':first').hover();

});



both the random selection and the clicking on the next
previous buttons are messed up in IE6, IE7. if I set var e =
$ ('.promotion_content').length; to a fixed number, the
script works.
but I need to count the elements somehow first.

thanks,
luke









[jQuery] Re: IE problem

2008-12-04 Thread Michael Geary

It doesn't seem to work for me in Firefox either.

For some reason, $('.promotion_content').length evaluates to 0.

Oh! I get it. I'm missing the HTML code!

Sorry, just kidding around with you. :-)

But seriously, it's pretty hard to guess what might be wrong without a test
page to look at.

The one thing I can suggest from looking at the JS code alone is that
there's a big chunk of duplicate code that could be removed. That's unlikely
to be related to the IE problem, though. So put up a test page and someone
can probably give you some ideas.

-Mike

> From: luke adamis
> 
> Why isn't tis working in IE?
> 
> $(document).ready(function(){ 
> 
>   //tabber
> 
>   var e = $('.promotion_content').length;
>   
>   var n = Math.floor(Math.random()*e);
>   
>   $('#promotion_holder > .promotion_content').hide();
>   
>   $('#promotion_holder > .promotion_content:eq('+n+')').show();
>   $('#promotion_holder > #promotion_navigation > ul > li 
> > a:eq('+n 
> +')').addClass('selected');
>   
>   $('#promotion_holder > #promotion_navigation > #next > 
> a').click (function () {
>   if (n == e-1) { n = 0; } else { n = n+1; }
>   $('#promotion_holder > .promotion_content').hide();
>   $('#promotion_holder > #promotion_navigation > 
> ul > li > a').removeClass('selected');
>   $('#promotion_holder > 
> .promotion_content:eq('+n+')').fadeIn('slow');
>   $('#promotion_holder > #promotion_navigation > 
> ul > li > a:eq('+n 
> +')').addClass('selected');
>   return false;
>   });
>   
>   $('#promotion_holder > #promotion_navigation > 
> #previous > a').click (function () {
>   if (n == 0) { n = e-1; } else { n = n-1; }
>   $('#promotion_holder > .promotion_content').hide();
>   $('#promotion_holder > #promotion_navigation > 
> ul > li > a').removeClass('selected');
>   $('#promotion_holder > 
> .promotion_content:eq('+n+')').fadeIn('slow');
>   $('#promotion_holder > #promotion_navigation > 
> ul > li > a:eq('+n 
> +')').addClass('selected');
>   return false;
>   });
>   
>   var tab_content = $('#promotion_holder > .promotion_content');
>   
>   $('#promotion_holder > #promotion_navigation > ul > li 
> > a').click (function () {
>   tab_content.hide().filter(this.hash).fadeIn('slow');
>   
>   $('#promotion_holder > #promotion_navigation > 
> ul > li > a').removeClass('selected');
>   $(this).addClass('selected');
>   n = $(this).attr('name') - 1;
>   
>   return false;
>   
>   }).filter(':first').hover();
> 
> });
> 
> 
> 
> both the random selection and the clicking on the next 
> previous buttons are messed up in IE6, IE7. if I set var e = 
> $ ('.promotion_content').length; to a fixed number, the 
> script works.  
> but I need to count the elements somehow first.
> 
> thanks,
> luke
> 



[jQuery] Re: IE Problem with jquery in dynamically loaded iframe.

2008-08-31 Thread Brad

I can't tell from your example, but in my experience "works in other
browsers but not IE6" can usually be traced to invalid HTML markup.
Also if your actual code has any more object literals than shown make
sure they don't contain a trailing comma, e.g.,

{
name: 'foo',
status: 'bar',
}

On Aug 31, 5:10 pm, ScottyUCSD <[EMAIL PROTECTED]> wrote:
> This is a simplified example of an app that I'm working on. Can anyone
> figure out why this isn't working in IE6?


[jQuery] Re: IE problem

2007-09-20 Thread Karl Swedberg

Hi Jonathon,

I noticed two problems when I copied your code below and pasted it  
into a new page:


1. 

I changed it to this: