How do I prevent a webpage from automatically redirecting to a different URL? Many pages automatically redirect you to a local site for whatever country you are in, for example, and often this is not what you want. I thought I was a somewhat knowledgeable webmonkey but I don't know how to stop this. How do I get to the URL that I type into the address bar without being redirected to a different URL?
if i try iframe'ing this site [URL] it doesn't work :( , it automatically redirects the site to the parent window. this may be due to the some script code in that site :confused: ...
I have a javascript that I found for an iphone style menu. It works and allows me to click through the menu as long as it is within the list system. If I try to create an external link to a webpage. It doesn't load anything. Here is the code let me know if anyone knows the trick so I can link out. Below is the javascript used to create the flowing menu system. Let me know if you need the rest of the .css and html.
(function() { var animateX = -20; var animateInterval = 24; var currentPage = null; var currentDialog = null; var currentWidth = 0; var currentHash = location.hash; var hashPrefix = "#_"; var pageHistory = []; [Code]...
I am trying to use xml http and xml dom with javascript. I currently have this function to load the xml document:
function loadXmlDoc(dname) { var xmlDoc; if (window.XMLHttpRequest)
[code]...
However, it's not working in any version of IE. I've also tried using Microsoft.XMLHTTP instead of Microsoft.XMLDOM but it's still not working. I'm on a mac and don't have IE so i've been using browsershots.org for testing.
I'm trying to list to a html page where the referer is, There are a lot of ways ive tried and work, but the problem if my mainpage uses frames, and no matter where I do the referer check it just reports the website url, does anyone know a cure or workaround other than trashing the frames?
Hi all, I'm trying to submit the google sitemap after it has been created on my server with PHP.
Here is the code: <?php $address= urlencode('www.mysite.com/sitemap.gz');?> <form name="submitsitemap" method="POST" action="http://www.google.com/webmasters/sitemaps/ping?sitemap=<?php echo $address;?>"></form> <script>submitsitemap.submit();</script>
I was working with Gdata to access the data in my google calander. I want to do this with a simple HTML-JS page, no server side scripting (hitherto dont know if this is practical).
For this I need to read the HTTP headers for a GET response. Can anyone tell me if its possible to read the HTTP headers with Javascript or by some other method on client side.
Is there a way to set the value of HTTP header Referrer to null or to any specified value?? I have tried doing this
document.Referrer= null
but document.Referrer is a read only property therefore the value can't be changed and a Javascript error is occuring. Any ideas on how this can be achieved.
If 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.
I am developing an ASP.NET web application that requires the use of remote calls going on behind the client's page in the browser. I successfully got the service working via SOAP (I have to use SOAP due to the fact that I need this to be compatible with Netscape 7.0). However, there is a memory leak in Netscape using SOAP calls, and I can't figure out why. So I thought that accessing the web service with HTTP-POST or some other javascript method might alleviate this problem. Can anyone show me another method, or tell me what is wrong with my SOAP calls?
Prior to posting a form (.asp page) to a URL, I check the parameters being passed and they are not encoded, but when the URL is served it is encoded. How can I prevent this?
Say I wrote an ajax script to send out HTTP requests via ajax. Any cookies that I have associated with that site will be sent along with this HTTP request. Is there a way to prevent this from happening? I tried the following to no avail:
Now that http://username:password@site.com no longer is an accepted syntax in IE, I suddenly have a case in a project I'm working on. The easiest(?) solution would now be that there was some Javascript function that could pass the username and password or in som other way automate the login process on a given site.
Thing is I have a server-generated HTML page that I want to make the client redirect to a password protected site. (IIS Windows authentication).
When i try to request something from the HTTP server, the http server throws a authentication dialog box, where i need to enter the username and password.
My problem is I don't see the dialog box coming in, the moment i request the page....sometimes it comes ....sometimes it doesnt......and when i click on the refresh button repeatedly .... it comes after may be 5-6 tries.... one the server side i see the following with every request.
Is it possble to do a HTTP post request inside JavaScript? - That is I don't want to use a HTML FORM, but need a JavaScript to post a value to a PHP script not encoding the parameters in a URL.
I have an HTML div that gets filled with the following HTML/javascript code via ajax:
<script type = "text/javascript"
[Code]....
The idea is that when I post the form the response gets loaded back into the same div. This works, but when I use the form to post a file I see the following output from Firebug: $ is not defined
Naturally when I resubmit my form again (for example after incorrect input) the resulting response doesn't get loaded into the div because jquery never setup the ajaxForm method.
I'm getting some strange behaviour when calling my test WebService. I get the expected response when testing with IE7 & 8, however with both Chrome and Firefox I'm getting a 403 error.
The Service is called via Code: if(window.jQuery) { $.ajax({ type: "POST", url:
[Code]...
The service and test web site are both running from the same domain (a local webserver) with the service on port 7000 and the test client running from port 80. Does anyone have any idea why this service might be responding correctly to IE and not Chorme?