469,623 Members | 1,683 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

file js recall byu other file js

in short to can insert in a page one file js that recall onother js page
Insertion Indirect
if have
site/test.php
site/file1.js
site/a/b/file2.js

and want file2.js inner file1.js and it inner at test.php
test.php <-- file1.js <-- file2.js
I write on test.php:
<script type="text/javascript" src="file1.js"></script>
and on file1.js
<script type="text/javascript" src="http://site/a/b/file2.js"></script>
but Not Work
(think problem is that the file1 is a .js so I cannot write tag
<script ... for recall others file )
Oct 2 '07 #1
1 1414
artev said the following on 10/2/2007 4:47 AM:
in short to can insert in a page one file js that recall onother js page
In short, yes. But, why?
Insertion Indirect
if have
site/test.php
site/file1.js
site/a/b/file2.js

and want file2.js inner file1.js and it inner at test.php
test.php <-- file1.js <-- file2.js
I write on test.php:
<script type="text/javascript" src="file1.js"></script>
and on file1.js
<script type="text/javascript" src="http://site/a/b/file2.js"></script>
but Not Work
(think problem is that the file1 is a .js so I cannot write tag
<script ... for recall others file )
Why not just write:

<script type="text/javascript" src="file1.js"></script>
<script type="text/javascript" src="http://site/a/b/file2.js"></script>

Into the page itself?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

23 posts views Thread by Lamberti Fabrizio | last post: by
16 posts views Thread by nephish | last post: by
35 posts views Thread by munish.nr | last post: by
23 posts views Thread by r.e.s. | last post: by
2 posts views Thread by leahf via AccessMonster.com | last post: by
5 posts views Thread by Moikel | last post: by
reply views Thread by =?Utf-8?B?UmFmYWVsIEFtb3JpbQ==?= | last post: by
1 post views Thread by Maciej Gawinecki | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.