Error while intializing object: $("#alertJs-wrapper", Alert._context);

Sep 2, 2016 at 5:43 PM
Hi,

I am getting intermittent error on creation of alertJsWrapper obj. Any suggestion why it breaking ?

var alertJsWrapper = $("#alertJs-wrapper", Alert._context);
Sep 14, 2016 at 8:38 PM
Hi,

I have the same problem, did you find any solution? Maybe it is a problem with the jQuery Selector.
Sep 14, 2016 at 9:02 PM
OK,I tried the following thing: CRM Community Link. I added my own jQuery webresource to my form. I added in the last line "var myjQ = jQuery.noConflict();"

In the alert.js I replace all jQuery ($()) selectors with myjQ() selector and everything worked fine.

Hope this helps
Coordinator
Oct 11, 2016 at 4:21 AM
Hi guys, thanks for reporting this issue, it has now been fixed in the latest (v2.1) release. This release contains some other changes as well, including some new features.

I've also updated the previous (v2.0) release with just the jQuery fix in case you want the fix without the 2.1 features.

Please let me know if this fixes the issue you were seeing.

Thanks!
Paul
Marked as answer by Liger on 10/10/2016 at 9:21 PM