This project has moved and is read-only. For the latest updates, please go here.

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

Sep 2, 2016 at 6:43 PM

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 9:38 PM

I have the same problem, did you find any solution? Maybe it is a problem with the jQuery Selector.
Sep 14, 2016 at 10: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
Oct 11, 2016 at 5: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.

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