I read on jQuery.com (should'a looked there first. doh!), and it said that all plug-ins just needed to be included after the jQuery core. Nothin' fancy. :o) Well, duh... that's what pasting it in the main core file does. I re-downloaded the json.js package (hacked by Mark Gibson for jQuery), it it worked. The problem was in the source, and not in the way I was including it. :o/

So what are people's opinions on putting plug-ins in the same file as the core source? I'm just trying to minimize the number of files I include, but is that the right thing to do?

Chris

Rey Bango wrote:
So what was the solution?

Rey

Christopher Jordan wrote:
  
Okay, nix that... I just found the information I needed. Sorry to spam 
the list. :o(

Chris

Christopher Jordan wrote:

    
Hi folks,

So far in my little jQuery existence, I've not really needed any 
plug-ins. I grabbed a version of jQuery (roughly 6K lines long) and 
never looked back. I did go grab Sam Collett's sortOptions code... 
which is guess is a plug-in. I just pasted it right after the last 
line of the main jQuery code and it worked straight away.

Well, now I need to json encode an object from the client's side, and 
it turns out that $.toJSON() isn't in the core. Fine. I found json.js 
by Mark Gibson, and tried the same thing I did with the sortOptions code.

But it didn't work.

I'm sure I'm missing something. Can someone tell me the "proper" way 
to add plug-ins to jQuery?

Thanks,
Chris
      
------------------------------------------------------------------------

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
    

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/


  
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to