This topic is locked

jquery problem with ASPRunner

1/19/2011 9:27:54 PM
ASPRunnerPro General questions
T
tone21705 author

Hi,
Made a project in 6.1 and in the header.asp put my JS/jquery code including:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>;

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>;

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"; rel="stylesheet" type="text/css"/>


The code worked etc.
Now it is using 6.2 (upgraded in Sept 2010) and I cant remember testing this jquery code to see if it works. But now is the first time people are using it since Sept and it doesnt work. Stepping through with Firebug I see that after this line of code

$('#dialog').dialog('open');



it goes into jquery.min.js and attempts to open the dialog box.
What happens is that it eventually goes into ui.js which is an ASPRunner js file and it breaks with the error

Break on Error

$[namespace][plugin] is undefined


When I try the code in a normal page outside of ASPRunner it works fine. For some reason its going into the ui.js when it shouldnt be.
Was the jquery/js libs changed from 6.1 to 6.2. What could I do to make sure my code uses my supplied jquery libs?
Thanks for the awesome support and product.

T
tone21705 author 2/3/2011

Any ideas about this?
Thanks,



Hi,
Made a project in 6.1 and in the header.asp put my JS/jquery code including:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>;

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>;

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"; rel="stylesheet" type="text/css"/>


The code worked etc.
Now it is using 6.2 (upgraded in Sept 2010) and I cant remember testing this jquery code to see if it works. But now is the first time people are using it since Sept and it doesnt work. Stepping through with Firebug I see that after this line of code

$('#dialog').dialog('open');



it goes into jquery.min.js and attempts to open the dialog box.
What happens is that it eventually goes into ui.js which is an ASPRunner js file and it breaks with the error

Break on Error

$[namespace][plugin] is undefined


When I try the code in a normal page outside of ASPRunner it works fine. For some reason its going into the ui.js when it shouldnt be.
Was the jquery/js libs changed from 6.1 to 6.2. What could I do to make sure my code uses my supplied jquery libs?
Thanks for the awesome support and product.

Sergey Kornilov admin 2/4/2011

ASPRunnerPro uses jQuery already. There might be a conflict between different jQuery versions.
You may want to try to remove jQuery include to see if this makes the difference.

T
tone21705 author 2/9/2011



ASPRunnerPro uses jQuery already. There might be a conflict between different jQuery versions.
You may want to try to remove jQuery include to see if this makes the difference.


Hi Sergey,
Thanks for your response. I removed your jquery files and it began working again but then many things did not work.

I then recreated the project in 6.1 and it works fine.
I guess I will have to leave the project in 6.1 until something on your side changes.
Thanks,

Antoni

Sergey Kornilov admin 2/9/2011

Antoni,
just wanted to say we'll be upgrading to the latest version of jQuery in ASPRunnerPro 7.0.

T
tone21705 author 2/9/2011



Antoni,
just wanted to say we'll be upgrading to the latest version of jQuery in ASPRunnerPro 7.0.


What do you suggest I do for this problem? My employer would like to use 6.2/6.2 but the simple dialog jquery function does not seem to work within it. I played around with it to (exact same code in 6.1 and it works, also my code on a standalone page (no asprunner) and it works, and also I tried removing your jquery files (but then I lose some js functionality))
Thanks,

Antoni

Sergey Kornilov admin 2/9/2011

I guess the only solution is to find another jQuery widget that works with version of jQuery that comes with ASPRunnerPro.