Organizational Research By

Surprising Reserch Topic

dynamically load js inside js


dynamically load js inside js  using -'javascript,jquery'

I have a dynamic web page where  I need to import an external JS file (under an IF condition) inside another javascript file.

I tried to search for a feasible solution but it didn't work.

I have tried loading a JS file to the DOM using document.createElement() but it also didn't work. Apparently the Js was loaded into the DOM but was not accessible in the current JS file.

Solution in jQuery will also be fine
    

asked Oct 13, 2015 by sanjaypal1983
0 votes
2 views



Related Hot Questions

10 Answers

0 votes
NULL
answered Oct 13, 2015 by android_master
0 votes
NULL
answered Oct 13, 2015 by virendra.bajaj
0 votes
NULL
answered Oct 13, 2015 by okesh.badhiye
0 votes
NULL
answered Oct 13, 2015 by dahiyabecomp
0 votes
NULL
answered Oct 13, 2015 by girisha
0 votes
NULL
answered Oct 13, 2015 by kinnari
0 votes
NULL
answered Oct 13, 2015 by nikhilapatil
0 votes
NULL
answered Oct 13, 2015 by devkumargupta
0 votes
NULL
answered Oct 13, 2015 by deepak07.s
0 votes
NULL
answered Oct 13, 2015 by rajeevr642

...