TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ANkesh Kumar
NA
17
914
How to upload java-script file dynamical
Jun 17 2015 7:41 AM
<script>
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript = document.createElement("script");
var oHead = document.getElementsByTagName('head').item(0);
var lang = 'ca';
var file = 'js/languages/jquery.validationEngine-' + lang + '.js';
oScript.type = "text/javascript";
oScript.src ='{{ URL::asset('/') }}' + file;
alert(oScript.src);
oHead.appendChild(oScript);
</script>
Whats wrong in this. I am getting correct path in alert(oScript.src);
Reply
Answers (
4
)
date picker in angularjs -To display calendar in angularjs
paypalpayflow payment intregation in clasic ASP