Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - include
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

include

 Post Reply Post Reply
Author
JDYoung View Drop Down
Newbie
Newbie
Avatar

Joined: 19 November 2002
Location: United States
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote JDYoung Quote  Post ReplyReply Direct Link To This Post Topic: include
    Posted: 16 July 2003 at 4:52pm

I have a .asp page that has a Java script photo slideshow app in it and I am trying to include it into another page but the java script is not working on the page that it is being included in.

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2003 at 7:19pm

Bummer!

Are you actually asking a question or letting us know that it's not working?

Back to Top
JDYoung View Drop Down
Newbie
Newbie
Avatar

Joined: 19 November 2002
Location: United States
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote JDYoung Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2003 at 9:00am

Sorry I am actually trying to ask a question.

 

Is there another way to include the page so that the java script will work?

Back to Top
cyril_kearney View Drop Down
Newbie
Newbie


Joined: 02 July 2003
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote cyril_kearney Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2003 at 10:45am

If I understand you correctly you want to include a Javascript using an ASP include directive.

Why not simply use the Javascript directive?

-SCRIPT LANGUAGE="JAVASCRIPT"-


document.write('-SCRIPT LANGUAGE="javascript"  SRC="myScriptName.js"--\/SCRIPT-');


-/SCRIPT-

Note that I've used a "-" to replace the less than and greater than signs that frame actual script

If need be each line could be the subject of a Response.Write ". . . " statement

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2003 at 9:21pm

I've never had a problem including a javascript with an Include file...Can you post the code that you are having problems with?

 

Back to Top
JDYoung View Drop Down
Newbie
Newbie
Avatar

Joined: 19 November 2002
Location: United States
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote JDYoung Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2003 at 2:25pm

I figured out the problem.

Thank you,

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.