Change Http To Https For Links ?
Aug 27, 2010How can I change the links for a given domain from http to https? For example: [url] would become [url]
View 2 RepliesHow can I change the links for a given domain from http to https? For example: [url] would become [url]
View 2 RepliesWhat is the difference between HTTP and HTTPS??
View 2 Replies View RelatedIf users click say a home page link on one of my https user login pages they are brought to a https version of my home page. Can I prevent certain pages from being accessed by https. I was looking at [url] but don't know how to implement it in this case.
Is there javascript that detects https and diverts to a http page on refresh or something. ( a bit like the javascript detection script HTTP-EQUIV="refresh" content="0;URL=page.php?page=javascript">)
I have too many links on https pages to create a long url for them all.
- We have a page in http
- a popup is opened in http and the form is submitted to https
- the https windows tries to do various stuff to opener....:
Error: Permission denied for https get property Window.document
Any solution for this? Same domain... makes no sense to me such security...
In our application there is also a similar known error, but we can live with that: when a page is accessed with ssl/https jquery thickbox ajax is not working.
I have a nonsecure page that calls a secure popup window to edit credit card info.
This is my popup code.
function popcc(url)
{
newwindow=window.open(url,'name','height=210,width=430');
if (window.focus) {newwindow.focus()}}
This is what I use to close the popup:
<input name="Close" type="button" id="Close" value="Close" onclick="opener.location.reload(); parent.close()">
The weird thing, is that this works when both pages are normal http. When the popup is is https it doesn't work any more. Ideas?
I have an http page in html that passes variables to an https page using JS. I get an error message permission is denied.
Is there a way I can pass the variable while avoiding the error? I am looking for a solution in JS not php or asp or any other language.
I am writing JavaScript code that runs inside HTTP page, I need to make XMLHttpRequest to a REST web service. The service is running on the same site but it only accepts HTTPS. I tried to prefix the URL with https:// and Firefox rejected it as cross-site scripting attempt. It's not really cross site as I am calling the same site.
I don't have an option to redirect the entire page to https.
Is there a proper way to implement this request?
I have a frame in which there are 2 IFrames., both being loaded from
the same domain. One IFrame is loaded from http://test1.xyz.com and the
other IFrame is loaded from https://test1.xyz.com/test
I am getting an error while accessing data in the HTTP IFRAME from the
HTTPS IFRAME.
Is it possible at all to access the data in the other IFrame, when the
protocol is different?
I have a real problem with an e-commerce site which has worked for years without a hitch but with the uptake of IE8 (it seems) this problem is getting more and more frequent Problem: customer continues through checkout on main site (http:[url]....).
When they have to enter their credit card details, they click on a link to open a window (https:[url]....). The details are verified and if valid, the customer is returned to the confirmation page in the parent screen (http:[url]....) and the payment window is closed . Pop-up blockers are causing problems here but even when pop-up blockers are disabled, the confirmation page loads in a new window.I'm using :
<script language="JavaScript">
<!--
window.opener.location="<?php echo ($main_url);?>thanks.php>";[code].....
But the page always loads in a new window and not the parent window.Is there any way to load the confirmation page in the parent window?
I have a real problem with an e-commerce site which has worked for years without a hitch but with the uptake of IE8 (it seems) this problem is getting more and more frequent. Problem: customer continues through checkout on main site [URL] When they have to enter their credit card details, they click on a link to open a window ([URL]). The details are verified and if valid, the customer is returned to the confirmation page in the parent screen ([URL]) and the payment window is closed. Pop-up blockers are causing problems here but even when pop-up blockers are disabled, the confirmation page loads in a new window.
[Code]...
Is it possible to have secured (SSL/HTTPS) and non-secured (HTTP)
content in the same page without breaking the security? I am developing
a secured reservation system in which the user can access Google Maps
(not secured). The map is embedded in the page and does not open in a
separate window.
What solution do you recommend? Use iframes? If so, how?
I've come back to working on something I built a while ago. Just a small function that I started that displays links by searching through a text area and grabbing all a hrefs. I want to try and build on it to check for dead links. This is the report code:
Code:
function report(){
document.getElementById("htmlDiv").innerHTML = document.getElementById("htmlArea").value;
a = document.getElementById("htmlDiv").getElementsByTagName("a");
for(i=0; i < a.length; i++){
//window.open(a[i].href)//the ( and ) characters signify that window.open is a function;
if(i == 0){
document.getElementById("report").innerHTML = "<li><a href="" + a[i].href + "" />" + a[i].href + "</a></li>";
document.getElementById("report").style.display = "block";
} else {
document.getElementById("report").innerHTML += "<li><a href="" + a[i].href + "" />" + a[i].href + "</a></li>";
}}
document.getElementById("reportNumber").innerHTML = "Total: " + i;
}
I was thinking maybe I could encorporate the following into this maybe?
Code:
function UrlExists(url) {
var http = new XMLHttpRequest();
http.open('HEAD', url, false);
http.send();
return http.status!=404;
}
The above makes sense to me as I think it is saying as long as its not 404 its ok. I want to incorporate something like that so my report displays links and maybe strikes them through if they return 404 or are dead.
I have a form with several rows and each has a text box labeled 'Status'. The user should be able to change the value of Status, then click Save and a GET query will be run in an iframe without interrupting the browser window. To do this I am using a onkeydown event so the Save button's (which is an a href link) href address is changed to what is in the box. But I can't get the box's value to change! Code:
View 2 Replies View Relatednot entirely sure this is possible but I have a site people (owners) to use in the shop. I need to make a public accessible side using the same layout. I decided frames would work for this calling content in sub frame. The problem is 2 of the links in the content sub frame contain sensitive information. I cannot change the content or it will affect lots of other users. I cannot edit the content as it affects too many people. It does not reside on the same server.
So I need to change what happens when 2 of the links are clicked. I know the urls, can I force, maybe using code embedded in the top frame, to make 2 links go somewhere else. I.e page loads 2 frames, one is header, other is content.
If customer clicks "trade-prices.html" in the content frame they are taken somewhere else (of my choice) by code sitting in parent to prevent them seeing it. I need to prevent 2 links from opening, or force them to open another page/substitute if > then scenario would be ideal e.g if url trade-price.html link is clicked/loaded then redirect to
I am trying to make the link on each day in the calendar go to a new page on the site instead of populating a form with the current day.
For example, if you click July 6, 2011 I need it to go to /events.php?page=calendar&event-date=2011-07-06 The link shows "/events.php?page=calendar&event-date=" when you hover over it, but it does not actually link to anything. I also need to dynamically pull the date clicked into the url.
I was wondering if there was a javascript code out there that can change outgoing links. For example, lets say someone took/ripped my website. Could I have a javascript code in there that could change the outgoing links? Something that wouldn't be obvious in the code.
View 4 Replies View RelatedIm trying to make a navagation menu with images that need to be changed when someone hovers over the child category.
So lets say I have a menu that looks like this:
<img src="notactiveimagemenu1.jpg" alt="">
<ul id="menu1">
<li>link</li>
<li>link</li>
[Code]....
I know I could add onmouseover events to each li item and changing the src of the category. But Im trying to find a better solution. And I think I should be able to use document.getElementById(id).onmouseover = function() for that.
note I know I could use jquery to do all of this very easy but I consider this practice because I don't know that much javascript.
I have 3 smaller thumbnail images and when I click on any of them, the resulting image displays in the larger image space.
The tricky part is that I want the larger image to become a link that changes, depending on which image is displaying. (I don't want the little images to be links.)
Click here [url] for a visual to explain what I am wanting to do.
Here is what I have for script...but I can't figure out the links...This script works fine, but I can't figure out how to make the larger image have 3 separate links, depending on which image is displaying in it.
Guys I am following the DHTML Utopia book and can not get the following code to work. Can anyone suggest where I am going wrong. All I want to do is change the direction of where the links pointing.
Code:
<script type="text/javascript">
var sitepoint_link = document.getElementById('splink');
sitepoint_link.href = "http://www.google.co.uk/";
</script>
<body>
<li><a href="http://www.sitepoint.com/" id="splink">Sitepoint</a></li>
</body
I've got an iframe on my page that displays my affiliate's webpages (located on their domain).
Two concerns: First, all links within the iframe reveal their domain name in the status bar and in the page source, i.e. <a href="affiliate.com/buy.htm">.
Second, the links in the iframe have target="_blank" which opens new tabs/windows, also exposing their domain to my customers.
Would it be possible to replace all instances of "affiliate.com" inside the iframe to "mysite.com"; whereas, "mysite.com" will be a proxy forwarding requests to "affiliate.com"? Keep in mind that these elements do not have ID or Class.
I have three links that call three functions that change a div. Now, I want to change links color when active. I made this so:
var act = "";
function doActive(obj){
obj.className='active';
if(act != undefined && obj != act){
act.className = 'off';
[Code]...
Sounds simple right? Why the heck doesn't this code work?
links = document.links;
for(var i=0; i<links.length; i++)
{
links[i].onclick= "this.href = 'whatever.html'";
}
I'm trying to add a very simple gallery where the photo is at the top and thumbnails are underneath. All I want to happen is that the photo changes when you click on one of the thumbnails. I've been trying to search for this but the galleries all seem to have stuff I don't want.I tried the following and it does change the image but it also opens up the thumbnail.
Code:
<img id="im" src="photos/039.jpg">
<a href="photos/t001.jpg" onclick="document.getElementById('im').src='photos/001.jpg'"><img src="photos/t001.jpg"></a>
I'm relatively new to jQuery, and I'm trying to figure out how to create a restaurant menu, that when you click on an item on this menu, an image and description will show on the page. [URL]I've looked through several plugins but cannot find this exact solution. Can anyone please point me in the right direction?
View 2 Replies View RelatedBelow is a javascript function from my website that loops through nodes in an XML file retrieving certain information about those who joined in the current month/year. The part in red creates a link which when clicked runs a function called show() with the relevant i variable value e.g. show(2) for the second node if that is relevant. Anyway the red part works in Chrome but not Internet Explorer (surprise surprise). I did some research which says that .setattribute is not allowed in IE. How can I change the red code to create links for the relevant records which works in IE?
[Code]...
I am in a bit of a rut in the self-teaching with JS. I am trying to get links to change the external js file currently on the main page without reloading, the external files are basically long document.write sections with a few interactive functions.
The closest I have found for help with this so far is a rotating script, but I want a manual change from a link (button, image, etc) instead of timeOut rotation. I am not sure what I need to do for the links to replace the timeout function to change the dynamic section.