js detect https
Posted
by ntan
on Stack Overflow
See other posts from Stack Overflow
or by ntan
Published on 2010-05-18T08:17:03Z
Indexed on
2010/05/18
8:20 UTC
Read the original article
Hit count: 311
JavaScript
Hi,
i am trying to find how can i "detect" width JavaScript if i am ih http or https environment
I am calling ajax request so if i am in https and call http ajax i get 302 Moved Temporarily
I was thinking of get the current window.location.href and do a strinh manipulation
Any suggestion is welcome.
© Stack Overflow or respective owner