Jump to content

Installing Javascript with WAMP?


Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.