469,921 Members | 2,107 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,921 developers. It's quick & easy.

how to change from "http" to "https" without reloading the site.

Hi!
Is there a way to change the protocoll type through Javascript without
reloading (or making a request from the webserver) via Javascript?

for example:

http://mydomain.com -https://mydomain.com

and backwards (if possible).

I want only to change the protocoll BUT NOT making a new server request.

That's all.
For any advise and help from your side I would thank you very much!
Tamer
Jan 20 '08 #1
2 9269
Tamer said the following on 1/20/2008 12:28 PM:
Hi!
Is there a way to change the protocoll type through Javascript without
reloading (or making a request from the webserver) via Javascript?
No. You are changing URL's and you can't prevent it. You can mask it
with a frameset and all of the problems that go with it.
for example:

http://mydomain.com -https://mydomain.com

and backwards (if possible).

I want only to change the protocoll BUT NOT making a new server request.
You aren't just changing the protocol, you are changing the URL itself.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 20 '08 #2
On Sun, 20 Jan 2008 19:28:21 +0200, Tamer <no@mail.dewrote:
>Hi!
Is there a way to change the protocoll type through Javascript without
reloading (or making a request from the webserver) via Javascript?

for example:

http://mydomain.com -https://mydomain.com

and backwards (if possible).

I want only to change the protocoll BUT NOT making a new server request.
Of course not, the very sites are completely different, https and http
are simply different things.

Jim.
Jan 20 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Rob Pridham | last post: by
24 posts views Thread by sinister | last post: by
12 posts views Thread by Claude | last post: by
3 posts views Thread by laredotornado | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.