javascript not running
Posted by: rahulr (117.192.99.---)
Date: April 04, 2010 11:51AM

the php is running fine , but the javascript is not being processed at all . infact i see the javascript code displayed directly on my screen when i execute it through wamp server .
is there any way to process javascript like PHP. ?

Options: ReplyQuote
Re: javascript not running
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: April 04, 2010 01:50PM

How are you accessing your javascript? Just make sure you're placing your javascript code within script tags eg
<script type="text/javascript">
 your code here
</script>

Or if you have your javascript in an external file then use
<script type="text/javascript" src="path/to/your/ code.js"></script>

Wampserver does not need to be configured for javascript as it is a client side language, which means its parsed by the web browser unlike PHP.



Edited 1 time(s). Last edit at 04/04/2010 01:52PM by c2dan.

Options: ReplyQuote


Sorry, only registered users may post in this forum.