[geeklog-devel] jQuery

Wayne Patterson suprsidr at flashyourweb.com
Fri Mar 26 10:11:53 EDT 2010


I thought jQuery was already decided on?
But I would like to suggest some compatibility methods:

Always use jQuery in noConflict:
if(jQueryNoConflict == undefined){
    jQuery.noConflict();
    var jQueryNoConflict = true;
}

And make sure other plugins can tell that you've already included jQuery in
the header so they don't overwrite your functions:
if(!defined('JQUERY')){
   $headerText .= '<script type="text/javascript" src="
http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
"></script>'."\n";
   define('JQUERY', 'true');
}

maybe we could report our version there instead?

But geeklog core should simply include it first before any plugins and
define it then.

-Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20100326/97c55b01/attachment.html>


More information about the geeklog-devel mailing list