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 <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 <sagararya...@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 <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" <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 <sagararya...@gmail.com>
> >> > wrote:
> >> > > hey thanks so much.. :-)
> >> >
> >> > > Cheers !
> >> > > Aryan
> >> >
> >> > > On Wed, Jan 14, 2009 at 10:26 AM, Karl Swedberg
> >> > > <k...@englishrules.com>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" <sagararya...@gmail.com> 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() {
> >> >
> >> > >>   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
> >
>

Reply via email to