Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 16th, 2006, 06:54 AM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default external.js not executed

i have the following code placed in an external javascript file but when it's referenced rather than being executed as i hoped it's being displayed. can anyone please tell me why this is?

the code in index.js:

<!-- Hide script
//<![CDATA[
window.location.href="http://www.breakdowncoverandgo.co.uk/index.php"
//]]> End script hiding -->

thanks

Cyrus Tiz



 
Old November 17th, 2006, 01:13 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi cyrus67!!
I didn't get ur query properly.
When page is executed in my browser , the referenced page is displayed in the browser.

If you don't want to displaye it just comment it.like
<!-- Hide script
//<![CDATA[
//window.location.href="http://www.breakdowncoverandgo.co.uk/index.php"
//]]> End script hiding -->



Cheers :)

vinod
 
Old November 17th, 2006, 10:29 AM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for getting back to me.

Cyrus






Similar Threads
Thread Thread Starter Forum Replies Last Post
External JS files Ben Horne Javascript 3 July 25th, 2008 02:00 AM
Thoughts on Dynamically assigning external js file fs22 Javascript 1 June 23rd, 2004 02:12 PM
refreshing external js file fs22 Javascript How-To 1 June 17th, 2004 05:02 PM
Dynamically assign external js file fs22 Javascript How-To 1 May 21st, 2004 05:22 PM
External JS Files koneruvijay VS.NET 2002/2003 4 February 27th, 2004 07:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.