473,586 Members | 2,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9440
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.javas cript 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.dewrot e:
>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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1490
by: Rob Pridham | last post by:
Hi. I'm trying to use ereg_replace to turn some text based hyperlinks into WML code. WML is similar to HTML, except for mobile phones and very strict. That means that there's some characters you can't use in certain places. Here's my current code. $string = eregi_replace(" ((http|https|rtsp)://]+/])"," <a href=\"\\1\">\\1</a>", $string);
6
3886
by: Meya | last post by:
Hi, when I hit my http://<domain name> site,I am getting this error msg: I have also installed my SSL cert on the IIS 5.0 ******************************** The page must be viewed over a secure channel Please try the following:
24
4472
by: sinister | last post by:
After doing a websearch, it appears that it's OK to omit the "http:" to form a relative URL. Are there any pitfalls to this? For example, if there is a page http://www.domain1.com/page1.html with a link to http://www.domain2.com/page2.html you can abbreviate the second link as //www.domain2.com/page2.html
31
4826
by: Yeah | last post by:
Is it absolutely necessary to include "http://" in an A HREF hyperlink? Would it be wise to remove this from one's Links page, just to save code?
12
1907
by: Claude | last post by:
Hi, I've designed my own form checking code for name, address, email, comment box etc. What my client keeps getting in his consumer feedback forms is "spam" from companies who repeatedly insert their hyperlinks in all fields, of course along with their "hype"... Is is possible with Javascript to refuse form contents whose strings contain
3
5061
by: Lee Roth | last post by:
I am testing a web app that links to user defined URLs. I want the link to be the exact text the user provided but I can't seem to get rid of the "http://localhost" prefix in the link. Note that I am user defined email addresses for "mailto:" links and the same problem occurs. Is this something that will be removed when the site is...
3
2249
by: laredotornado | last post by:
Hi, I have a scalar variable, "$url" that may or not contain "http://" in front of it. If it is not there, I'd like to add it. Unfortunately, this code isn't working for me with PHP 4. if (strpos(strtolower($url), "http://") != 0) { $url = "http://$url"; } // if
4
11405
by: Morgan Cheng | last post by:
Days ago, I post a question on how to make SoapHttpClientProtocol instance make new TCP connection for each web service request. Now, I found how. SoapHttpClientProtocol has a protected method GetWebRequest(System.Uri uri) which returns a WebRequest instance. Though MSDN doesn't make clear statement. I experiment and prove that...
3
3599
AnuSumesh
by: AnuSumesh | last post by:
Hi, I have created two web pages say first.asp and second.asp. first.asp has a link of second.asp and username is embedded in url of second.asp.(second.asp?username=dvhsdghsdg) Second.asp has a link for some https site say securelogin.asp and i want to access the server variable "referer Url" to retrieve username in https login page. The...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8200
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8215
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.