Our application loads jQuery 1.10.2 and then loads https://appcenter.intuit.com/Content/IA/intuit.ipp.anywhere.js
from Intuit. The anywhere script is adding <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
to the head and reloading jQuery.
This is wiping the namespace and wrecking much of our code. Shouldn't the script see that jQuery is already loaded? How do we prevent jquery from being reloaded?
Thanks, Forrest
EDIT:
The problem seems to be that
window.jQuery.fn.jquery < "1.4.2"
returns false as'1.10.2' < '1.4.2'
will also return false. It is because javascript will see it as1.1.2 < 1.4.2
. Another option is to remove the|| window.jQuery.fn.jquery < "1.4.2"
If you are sure that you are including jQuery just change the part of the code where it appends the script tag.
At the bottom of the script. Change
To
The solution given by Spokey is partially correct.
In order to serve the Anywhere script locally, you also need to make some modifications to the code for allowing the domain to point to the Intuit site. This way, the CSS and the Application links on the Blue Dot Menu are redirected correctly to Intuit's domain.
(Note: Updating the
intuit.ipp.ourDomain
variable won't work as stated above.)Here is what I modified:
Lines 20-40 contains:
I replaced with these: