|
-
Dec 18th, 2001, 09:22 AM
#1
Thread Starter
Fanatic Member
<script> tag help
Hi to all say i have the following
PHP Code:
<script language="JavaScript" src="js/page.js" type="text/javascript"></script>
how could i load the src dynamically through another function or whatever.I want to do that cuase is not nessecary to load page.js all the time and i do not want to cause is a 300k page so i want to set a var to load it any time i want any help appreciated
thnks
-
Dec 18th, 2001, 11:56 AM
#2
Hyperactive Member
using the below code you can print the include line
Code:
document.write("<script language=\"javascript\" src=\"test.js\"><\/script>");
-
Dec 18th, 2001, 01:06 PM
#3
Frenzied Member
That is, if she is using VBScript ASPs.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Dec 19th, 2001, 05:03 AM
#4
Hyperactive Member
No!
this is using javascript
Code:
<script language="javascript">document.write("<script language=\"javascript\" src=\"test.js\"><\/script>");</script>
try it CyberTHug, it works. I was supprised that it worked myself but it did.
-
Dec 19th, 2001, 10:00 AM
#5
Frenzied Member
Sorry, you're right. I wasn't even paying attention. You said "document.write", not "response.write".
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|