I think I have worked it out

<cfif ListFirst(cgi.PATH_INFO, '/') NEQ "webtop">
<!--- only for web site --->
<skin:registerJS id="jquery"
baseHREF="/skin/jquery-ui-1.8.15"
lFiles="jquery-1.6.2.js"><!--- jquery-1.5.1.js --->

<cfoutput>
var $j = jQuery.noConflict();
var $  = jQuery.noConflict();
</cfoutput>
</skin:registerJS>
<cfelse>
<!--- /core/packages/lib/registerLibraries.cfc --->
<skin:registerJS id="jquery"
baseHREF="#application.url.webtop#/thirdparty/jquery/js"
lFiles="jquery-1.4.3.min.js">
 <cfoutput>
var $j = jQuery.noConflict();
var $ = jQuery.noConflict();
</cfoutput>
</skin:registerJS>
</cfif>


On 17 August 2011 10:52, AJ Mercer <[email protected]> wrote:

> Does any one know how I can have a different (newer) version of jQuery for
> the web site from the Farcry Webtop using skin:registerJS?
>
> I have tried giving ms site a differed ID (jquery-project) but Farcry still
> loads it's version so there are two loaded and stuff breaks.
>
> In _serverSpecificrequestScope I have put in the following
>
> <cfif cgi.PATH_INFO NEQ "/webtop/index.cfm ">
> <!--- only for web site --->
>  <skin:registerJS id="jquery"
> baseHREF="/skin/jquery-ui-1.8.15"
>  lFiles="jquery-1.6.2.js"><!--- jquery-1.5.1.js --->
>
> <cfoutput>
>  var $j = jQuery.noConflict();
> var $  = jQuery.noConflict();
>  </cfoutput>
> </skin:registerJS>
> </cfif>
>
> But the first one loaded gets cached and the other gets it.
>
>
> I have jQuery plugins that use jQuery 1.6.2
> and that version has changed the way attr() works and added prop() to
> replace it - for some situations (Attributes verses Properties)
> --
>
> *AJ Mercer*
> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org
> community="Open" /> <http://webonix.org>
> http://twitter.com/webonix
> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>
>


-- 

*AJ Mercer*
<webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org
community="Open" /> <http://webonix.org>
http://twitter.com/webonix
Railo Community Manager <http://www.getrailo.org/index.cfm/community/team/>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to