Need JS to disable/override document.getElementById("id").innerHTML = "yada";

I have document.getElementById(“loading”).innerHTML = “Loading…”; in my combined.js on each page. However the one line prevents my gallery.js from working. And I just so hapen to not need it on this page. Is there any way to disable, or override, mask, no conflict, anything, that one liner for this single page in question? Thanks!

What other code do you have in the page? Without seeing that there is nothing to go on to tell you what to modify.

You can add some class to body tag and then call your function depending on that, for example. Or use window.location.pathname to check that specific page is loaded.

I guess I started a new thread to soon. Looks like I got my answer here http://www.sitepoint.com/forums/showthread.php?913779-Any-idea-why-small-gallery-js-not-compatible-with-jQuery-1-8-2-Must-use-version-1-4-4