0

On our Fogbugz server Jquery elements are not working. I know the scripts work because I was able to run them on the Fogbugz ondemand version. I tried to follow these steps

http://fogbugz.stackexchange.com/questions/6651/jquery-version-1-4-4-needed-for-livechange-on-an-input-element-since-jquery-1

But haven't had any luck. Where should I add the statement

 <script src="path/to/jquery_1.4.4"></script> 
flag

1 Answer

1

You shouldn't need to include your own copy of jQuery as FogBugz already includes a copy of jQuery on every page. The version of jQuery shipped with FogBugz varies from version to version, but you can always check what version has been included by opening the JavaScript console of your browser, navigating to a FogBugz page, and evaluating jQuery.fn.jquery.

If you need a newer/different version of jQuery than the one shipped with FogBugz, check out this question which explains how to load an additional version of jQuery into FogBugz.

link|flag
It looks like we are using 1.6.2. The on method isn't introduced to 1.7 so that is the problem. What I don't understand is where am I supposed to add the html. I tried adding it to default.asp and the bugmonkey script but that didn't work. – aStokes Aug 14 at 14:03
BugMonkey scripts can only contain JavaScript and CSS. To inject a script tag using a BugMonkey script you would need to do something like this: stackoverflow.com/questions/610995/… – db Aug 14 at 20:53
Modifying default.asp will not result in any changes to what is sent to your browser. This is because FogBugz is an ASP.NET application. I'll update this answer with a BugMonkey script that shows how to inject jQuery 1.7. Out of curiosity, what 1.7 method are you looking to use? – db Aug 14 at 20:55
This thread also helps fogbugz.stackexchange.com/questions/10707/… – aStokes Sep 4 at 12:02

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.