drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.38k stars 1.62k forks source link

Issue with custom icheck converter and jqeury $.post request #173

Open mikkiek opened 10 years ago

mikkiek commented 10 years ago

Hello,

I've a webform, which sends a data using jqeury via POST request. In the response I recive HTML with some javascript code. Among javascript code exists jqeury calls. Custom converter inside of icheck: ... $.ajaxSetup({ converters: { 'text html': function(data) { if (win.icheck.autoAjax && body) { var frame = doc.createElement('iframe'); // create container ... It cause a batch of javascript errors, because inside of iframe none know about jqeury existance.

Thank you.

drgullin commented 10 years ago

Hello @mikkiek.

Please show me a demo.

mikkiek commented 10 years ago

Hello, http://www.matroshka.jp/test/ - just click on button "Reproduce Issue" and you'll recive an errror "Uncaught ReferenceError: $ is not defined" I have an erorr in Chrome 100%, in FF randomly.

drgullin commented 9 years ago

This feature will be revised using mutation observer.