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?? Quote 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 Quote 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 Quote 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? Quote 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? Quote 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. Quote 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? Quote 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. Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/108465-installing-javascript-with-wamp/#findComment-583390 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.