I have used $AJAX_URL in a component. The $AJAX url is then used in a javascript funcion to make an ajax call using $.ajax to capture the xml returned by an external. Both the $AJAX_URL and the ajax function are authored in the Appearance XSL within script tag. Since i am using Jquery here, i have included the jquery js file in the Appearance xsl as;
<script type="text/javascript" src="
http://code.jquery.com/jquery-1.4.2.min.js"></script>The issue i am facing is as follows:
-> If my script tag remains within the Appearance XSL, then my component is behaving properly and the external is getting called properly, response xmls are getting captured properly.
->However, if i include the javascript code as js files at Site level (include them at the preview site, default.site), my component is not able to call the external. The Js files are getting loaded properly as checked using firebug.
Kindly suggest any possible options that i can try.