By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,098 Members | 1,895 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,098 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.