p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript (http://p2p.wrox.com/forumdisplay.php?f=85)
-   -   external.js not executed (http://p2p.wrox.com/showthread.php?t=50361)

cyrus67 November 16th, 2006 06:54 AM

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




vinod_yadav1919 November 17th, 2006 01:13 AM

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

cyrus67 November 17th, 2006 10:29 AM

Thanks for getting back to me.

Cyrus



All times are GMT -4. The time now is 04:39 PM.

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