whiteboikyle Posted June 3, 2008 Share Posted June 3, 2008 I dono how to install Javascript.. i have never bothered with it. So is there a way i can link to to wamp? so when my webserver is online Wamp is aswell? or?? Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/ Share on other sites More sharing options...
aximbigfan Posted June 3, 2008 Share Posted June 3, 2008 Erm... JS doesn't have ANYTHING to do with the server. It is a client side thing only. As long as the client has it enabled, and has a supporting browser, it will work. Chris Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/#findComment-556150 Share on other sites More sharing options...
whiteboikyle Posted June 3, 2008 Author Share Posted June 3, 2008 hmm well i did an example.. they said to save it as .shtml <html> <head> <script language="JavaScript"> function disp_ip(){ var ip = '<!--#echo var="REMOTE_ADDR"-->'; document.write(ip) } </script> </head> <body> <form> <input type='button' value='Check your Ip' onClick='disp_ip();'> </form> </body> </html> and it just shows the code in the browser.. nothing else Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/#findComment-556158 Share on other sites More sharing options...
trq Posted June 3, 2008 Share Posted June 3, 2008 JS doesn't have ANYTHING to do with the server. It is a client side thing only. Um, there is such a thing as server side javascript, its just not that common, and I'm not sure that is what the op is refering too. hmm well i did an example.. they said to save it as .shtml Who are they exactly? Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/#findComment-556237 Share on other sites More sharing options...
whiteboikyle Posted June 3, 2008 Author Share Posted June 3, 2008 From a different site.. lol it was a code snippet i wanted to use it to see if my javascript worked.. but apperently it doesn't so can someone help me? Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/#findComment-556262 Share on other sites More sharing options...
trq Posted June 3, 2008 Share Posted June 3, 2008 As has been said, you don't (generally) install Javascript. It comes as part of your browser and has nothing to do with server side interactions. Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/#findComment-556547 Share on other sites More sharing options...
whiteboikyle Posted June 3, 2008 Author Share Posted June 3, 2008 Then how come its not working on my browsers? Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/#findComment-556854 Share on other sites More sharing options...
trq Posted June 4, 2008 Share Posted June 4, 2008 What do you meen by 'not working' exactly? This part... <!--#echo var="REMOTE_ADDR"--> Seems like it may be some sort of server-side code (its not Javascript or php). Server-side and client-side don't play well together for obvious reasons. Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/#findComment-557403 Share on other sites More sharing options...
serverman Posted June 4, 2008 Share Posted June 4, 2008 that looks like apaches SSI not javasript .js or .jsp is what you save javasidescript as Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/#findComment-557912 Share on other sites More sharing options...
Wolphie Posted July 7, 2008 Share Posted July 7, 2008 Have you actually tried viewing the pages source code? Considering that is a HTML comment. Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/#findComment-583390 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.