I'm running a self-hosted WordPress 4.1 (not multi-site) installation using BuddyPress 1.5 with the WPMU DEV "Studio" theme.
I'm using a static page for my front page, and on the top of it I have a graphic embedded in a DIV tag.
I'm calling a script from the jquery library on the microsoft site to handle a click event to detect when I am touching that particular DIV. Here's the script I'm calling, followed by the function I'm invoking it with:
This is an example of the DIV object I would embed in the page to test it with:
<div id="DESKTOP"> <P>I can click anywhere</P> <P>within this DIV and</P> <P>the click will be recognized</P> </div>
This works fine on it's own on a vanilla WP page. The problem that I run into is that it interferes with processes on my front page. (It may be knocking heads with the ContentViews Pro plugin I use from another developer, which invokes a lightbox through the native jquery libraries on my web site.
I know it's not a good idea to call jquery from an external domain (as I do from Microsoft in the example above) since the libraries are already included in the base WordPress install, and that it's especially problematic if it's calling a different version. The problem I'm running into is that this particular jquery script does not appear to be part of my WP install, and I don't have enough expertise to recognize the part of it that my code is drawing on to know if I can invoke it through one of the jquery scripts that is already bundled with WP.
Can anyone tell me if there is a way to do what I am trying to do without going outside of the base WP installation? I've been scratching my head on this for days, going through lines of library code until my eyes are crossed.
Thanks a bunch for any wisdom someone might be able to share!