We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Including a file with javascript
Topic Started: Jan 30 2007, 04:44 PM (332 Views)
Larksmann
Member Avatar
5 Meters Up and Inverted
[ *  *  * ]
Hey, how do you include a file with javascript? I remember seeing a one-liner for it a while ago, but I can't find it. Thanks.
Offline Profile Quote Post Goto Top
 
LABaller
Member Avatar
Latino Heat
[ *  *  *  *  * ]
<script src="file.ext"></script>

I think that's what you're looking for ?
Offline Profile Quote Post Goto Top
 
Larksmann
Member Avatar
5 Meters Up and Inverted
[ *  *  * ]
No, not including a script but actually using JavaScript to do basically the same things as PHP's include().

I used the little code on an old board to include a php file, but I have since deleted the code on the board so I can't just find it there.
Offline Profile Quote Post Goto Top
 
LABaller
Member Avatar
Latino Heat
[ *  *  *  *  * ]
http://www.faqts.com/knowledge_base/view.p...id/16589/fid/51

This article says you can use script src to include a PHP file. Take a look at it, it's pretty short.
Offline Profile Quote Post Goto Top
 
D-Unleashed
Member
[ *  * ]
nvm
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply