| 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: |
| Including a file with javascript | |
|---|---|
| Tweet Topic Started: Jan 30 2007, 04:44 PM (332 Views) | |
| Larksmann | Jan 30 2007, 04:44 PM Post #1 |
![]()
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. |
![]() |
|
| LABaller | Jan 30 2007, 04:47 PM Post #2 |
|
Latino Heat
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
<script src="file.ext"></script> I think that's what you're looking for ? |
![]() |
|
| Larksmann | Jan 30 2007, 07:10 PM Post #3 |
![]()
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. |
![]() |
|
| LABaller | Jan 30 2007, 08:22 PM Post #4 |
|
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. |
![]() |
|
| D-Unleashed | Jan 31 2007, 08:49 AM Post #5 |
|
Member
![]() ![]() ![]() ![]()
|
nvm |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
3:01 PM Jul 11
|




![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)



3:01 PM Jul 11