CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Other Programming Languages: Javascript:
snippets

 



benlawrie3
stranger

Jul 15, 2001, 6:56 AM

Post #1 of 2 (23610 views)
snippets Can't Post

I need a couple of scripts and i don't know if you can do it.
one simply displays the ip of the user
the other displays the security status of a page
i.e. if your on a ssl page then it prints secure if not then insecure.

any help appriciated.



BrightNail
Novice

Jul 28, 2001, 10:08 PM

Post #2 of 2 (23594 views)
Re: snippets [In reply to] Can't Post

Hey,
For the Secure Server Question....just check the URL string......ala

<script language="javascript">
if(document.URL.indexOf("https")!=-1){
document.write("<font size=1>"+'Secure Page+"</font>")
}else{ document.write ("Non-secure Page")}
</script>


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives