Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Ajax Problem View modes: 
User avatar
Member
Member
sabuj-matrixnmedia - 1/6/2012 8:52:48 AM
   
Ajax Problem
Hello,
We face a problem with Ajax enable web part.
We created a Master web part. This master web part contains 3 web part. One web part contain Jquary related multi files upload control. And we add this Master Web part into a Kentico page. But when we enable the Ajax in Master web part then jquary stop to work in other web part.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/8/2012 1:03:17 AM
   
RE:Ajax Problem
Hi,

n the included jQuery in Kentico CMS, we use the noConflict() method, so only expressions in the form "jQuery()" are allowed. Regardless, there are still some conflicts when using jQuery and webparts, that use MooTools or Prototype on the same page (those are for example our webparts Content slider, Scrolling news, Lightbox or DateTime..). You can either not use them on the same document. For registration of jQuery script used in Kentico CMS please use the following code:

CMS.GlobalHelper.ScriptHelper.RegisterJQuery(this.Page);

Best regards,
Juraj Ondrus

User avatar
Member
Member
sabuj-matrixnmedia - 1/12/2012 1:13:52 AM
   
RE:Ajax Problem
Hello,
It not works.
I used a master web part it contain 2 web parts.
I need one web part which support Microsoft ajax and other web part support Jquary separately. How we do it can you suggest how we do this?
Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/13/2012 12:50:14 AM
   
RE:Ajax Problem
Hi,

Did you get any javascript error? Because there are probably other conflicts between those two dynamic libraries, so if you want to use them on a same page, you will need to solve all of the conflicts. As I have mentioned, the jQuery library supports noConflict mode, which is suggested to be used with other libraries and if you try to google it, you can find solutions also to tricky conflicts between ASP.NET AJAX and jQuery (depends on the error) or useful forum posts right on the asp.Net forum.

Best regards,
Juraj Ondrus