javascript - Nested JS script. $.getScript getting failed after random script -



javascript - Nested JS script. $.getScript getting failed after random script -

i trying load nested js files on click , show event. doing this. getting failed every random script.

strange working fine in fiddle , time getting failed..

with want load model box range slider. , range slider needed these js

jquery

$("#sliderajaxbutton").on('click', function () { $.getscript("url script").done(function (script, textstatus) { $.getscript("url script").done(function (script, textstatus) { $.getscript("url script").done(function (script, textstatus) { $.getscript("url script").done(function (script, textstatus) { $.getscript("url script").done(function (script, textstatus) { $.getscript("url script").done(function (script, textstatus) { $.getscript("url script").done(function (script, textstatus) { $.getscript("url script").done(function (script, textstatus) { $.getscript("url script").done(function (script, textstatus) { alert("script loaded"); //$("#sliderajax").modal('show'); }).fail(function (jqxhr, settings, exception) { alert("error during getscript9") }); }).fail(function (jqxhr, settings, exception) { alert("error during getscript8") }); }).fail(function (jqxhr, settings, exception) { alert("error during getscript7") }); }).fail(function (jqxhr, settings, exception) { alert("error during getscript6") }); }).fail(function (jqxhr, settings, exception) { alert("error during getscript5") }); }).fail(function (jqxhr, settings, exception) { alert("error during getscript4") }); }).fail(function (jqxhr, settings, exception) { alert("error during getscript3") }); }).fail(function (jqxhr, settings, exception) { alert("error during getscript2") }); }).fail(function (jqxhr, settings, exception) { alert("error during getscript1") }); });

html

<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="" id='sliderajaxbutton'>show slider ajax</button>

if want load js files in jsfiddle, add together external resources, in left panel.

javascript jquery html cakephp

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -