js detect https
- by ntan
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.