Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Javascript only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Javascript
javascript include
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
akg
New Member
Join Date:
Jan 2007
Posts:
19
#1
javascript include
May 10 '07, 07:55 PM
how do I include one javascript file (.js) inside another javascript file ?
Regards,
Amit
iam_clint
Recognized Expert
Top Contributor
Join Date:
Jul 2006
Posts:
1207
#2
May 10 '07, 08:43 PM
<script src="whatever.j s">
Comment
Post
Cancel
akg
New Member
Join Date:
Jan 2007
Posts:
19
#3
May 10 '07, 08:56 PM
I am using that way only but somehow it looks like embedded javascript file don't get included. any other idea please ?.
<script src="twiaBase_3 _1.js">
Amit
Comment
Post
Cancel
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#4
May 11 '07, 10:48 AM
How about
:
Code:
document.write('<script src="file2.js"><\/' + script>');
Comment
Post
Cancel
akg
New Member
Join Date:
Jan 2007
Posts:
19
#5
May 11 '07, 04:39 PM
thank you. it works now.
Comment
Post
Cancel
iam_clint
Recognized Expert
Top Contributor
Join Date:
Jul 2006
Posts:
1207
#6
May 11 '07, 06:40 PM
woohoo :P
i didn't think about it but your trying to include a javascript file from within another javascript files include? you can do </script><script src="blah.js"></script><script>
but the other solution is much cooler :P
Comment
Post
Cancel
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#7
May 14 '07, 11:33 AM
Originally posted by
akg
thank you. it works now.
No problem, you're welcome.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment