Re: [jQuery] Re: Problem with plugins

2009-12-02 Thread Michael Geary
Glad to help. It's nothing specific to jQuery, of course. Here's a simplified test case: var Test = function() {}; Test.prototype.foo = function() { alert('bar'); }; var test = new Test; test.foo(); // alerts 'bar' var Test = function() {}; var test = new Test; tes

Re: [jQuery] Re: Problem with plugins

2009-12-01 Thread Michael Geary
Don't feel bad. You made it easy for me. Since you'd already done some investigating and ruled out a number of possibilities, all I had to do was look at the one or two things you might have missed! :-) On a more serious note, this thread is a great example of why we keep asking people to post a l

Re: [jQuery] Re: Problem with plugins

2009-12-01 Thread Michael Geary
Paulo, you're loading jQuery twice. First you load jQuery, then you load your plugins, then you load jQuery again. That second load of jQuery wipes out the original jQuery and all its plugins. Do a View Source on your page with the sort photos link, and search for:

Re: [jQuery] Re: Problem with plugins

2009-11-30 Thread Michael Geary
Could it be that you are also loading prototype.js or some other library that redefines the $() function? Does it find plugin methods if you use jQuery(...)... instead of $(...)...? Do the built-in jQuery methods show up? What does it display if you enter each of these lines into the Firebug con

Re: [jQuery] Re: Problem with plugins

2009-11-27 Thread Brett Ritter
On Mon, Nov 23, 2009 at 5:55 AM, Paulodemoc wrote: > Its the javasscript on the php page, and the only php there is to > output the urls, and these urls are being printed correctly > The url doesn't affect the understanding of the rest of the code... If your plugins aren't loading, those URLs

Re: [jQuery] Re: Problem with plugins

2009-11-23 Thread Michel Belleville
First of all, if this is a .js script, why is there html in the first few lines ? Michel Belleville 2009/11/23 Paulodemoc > Its the javasscript on the php page, and the only php there is to > output the urls, and these urls are being printed correctly > The url doesn't affect the understand