i've been working on this project for like 2 years now, it's grown so
huge and i've learned so much in the process, that i could probably
just start it all over again, so much of this code is outdated. Thanks
for the pointer :)

On Tue, Dec 23, 2008 at 8:04 AM, Kelvin Luck <[email protected]> wrote:
>
>>>
>>> function switchStylesheet(styleName)
>>> {
>>>    // STYLESHEET SWITCHER
>>>    $('link[rel*=styl...@title]').each(function(i)
>>>    {
>>>        this.disabled = true;
>>>        if (this.getAttribute('title') == styleName)
>>>        {
>>>            this.disabled = false;
>>>        }
>>>    });
>>> }
>>>
>>> the error message (coming from firefox error console, firebug does not
>>> catch this one):
>>>
>>> Erreur : [Exception... "'Syntax error, unrecognized expression:
>>> [...@title]' when calling method: [nsIDOMEventListener::handleEvent]"
>>> nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location:
>>> "<unknown>"  data: no]
>>
>> This is due to the fact that you're using [...@title] attribute selector.
>> This was deprecated back in jQuery 1.2 (released Sept 2007). You
>> should use [title] instead.
>>
>
> Hi,
>
> It looks like Alexandre is using my ancient (May 2006!) stylesheet
> switcher:
>
> http://www.kelvinluck.com/2006/05/switch-stylesheets-with-jquery/
>
> I've just updated the example to link to jQuery 1.2.6 and the code to use
> [title] rather than [...@title],
>
> Thanks,
>
> Kelvin :)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to