mickbw wrote:
> I am working on a page that works correctly when I call it directly in
> any browser.
> 
> If I include the page in my RIA app and run the script in firebug, the
> jquery script works correctly.
> 
>  If I  include it in my RIA app with the script part of an
> external .js script, the script functions do not work AND do not cause
> an error.  Other jQuery scripts in the app work without problem.
> 
> My assumption is that the script must be conflicting with other
> frameworks that use the $() keyword and I know that $() is just a
> shortcut for jquery().  Do I have to replace the $ code in both the
> external script AND the jquery.js file?
> 
> BTW, the offending page is at http://67.199.57.74/jobsearchlog/faq.cfm.
> Clicking a question will toggle the display of the answer.
> 
> To access the page through the App, go to http://67.199.57.74/jobsearchlog/
> and click FAQ from the top menu.
> 
> Any assistance would be greatly appreciated.

This page shows you how to use $ in your .js files when using it with 
other frameworks that also hijack the $()

http://docs.jquery.com/Plugins/Authoring

See the Custom Alias section.


Make sure you activate the noconflict mode in jQuery. I generally do:

1. Include Prototype et al.
2. Include jquery
3. Immediately active jQuery.noConflict();

Whenever I use *any* jQuery code, I typically hide it via the technique 
in the above link.

Col

Reply via email to