window.location Questions
2
I'm trying to log out of my application that's using AWS Cognito by calling their logout endpoint. I'm not using the AWS SDK because as far as I can tell, it does not yet cover oauth app integratio...
Abstractionism asked 15/3, 2018 at 21:59
0
I want to open a download link without opening a blank page (then, I won't be using window.open). Then I'm using window.location.href or window.location.assign. But the problem is that both methods...
Zenithal asked 29/1, 2018 at 19:6
2
Solved
I need to update search (query) parameters in URL if user enters those in search panel (on a page). I'm trying this:
$( document ).ready(function() {
if ($('.o_website_license_search_panel').leng...
Glamorize asked 13/1, 2018 at 12:1
2
I am using a GAS web app that needs to refresh its contents when a user takes certain actions (like clicking on a particular div).
On the clientside, I have this script that gets called from oncli...
Euridice asked 3/2, 2013 at 16:14
2
Solved
I have an HTML file test.html where I have two variables both named location, one global and one local. But when I open it in browser it just says Your file was not found, and the address bar shows...
Silicle asked 4/9, 2017 at 1:41
4
Solved
What is the difference between window.location.assign() and window.location.replace(), when both redirect to a new page?
Concernment asked 22/12, 2010 at 2:58
1
In my Angular 4 application, I need to test a method of a Service which at some point it calls a private method of the same service having:
window.location.replace(url);
When the test reach that ...
Recapture asked 28/8, 2017 at 19:49
2
Solved
I'm using JavaScript redirects after ajax call (after update content). I've tried below methods, all are very slow. In Network tab it shows waiting time is around 4.44 to 5 seconds. (Which is very ...
Compendium asked 26/2, 2016 at 7:28
6
Solved
I'm building a basic AngularJS Login page and the $window.location.href did not re-direct the page to a new html in my system, hosted by WAMP. I even tried re-directing it to google. Nothing happen...
Bebel asked 1/12, 2015 at 10:19
1
Solved
I've been fiddling around with electron's remote module.
In my main-process I've created this variable:
global.storage = {};
My renderer-process is initialised with a file called startup.html.
...
Allie asked 23/10, 2016 at 10:53
1
I have this function I need to test:
login(): void {
this.userService.setSessionAndDateOnlogin();
this.loginService.getLogin()
.subscribe(
octopusUrl => window.location.href = octopusUrl);
...
Circumbendibus asked 22/7, 2016 at 8:45
3
For some reason this works in IE and Chrome but not Safari and firefox.
$location.path(lastPath);
$window.location.reload(true);
Instead of reloading the last path, $window.location.reload(true)...
Teucer asked 17/9, 2015 at 19:4
2
Solved
When I open a url with special characters using window.location, it seems to percent encode the special characters and then opens the URL. For example
var url = "http://gramfeed.com/instagram/tags...
Tavia asked 26/8, 2013 at 17:38
6
Solved
I learned "window.location.hash" new and tried in my jquery code instead of "window.location.href" and both of them gave same results.
Code is here :
window.location.href = ($(e.currentTarget)....
Vasoinhibitor asked 21/5, 2012 at 15:46
1
Solved
function fun(){
console.log("Hi");
window.location.href="http://www.google.com";
console.log("Hello, how are you");
alert("I am good");
fun1();
}
funct...
Peale asked 30/5, 2016 at 8:38
2
Solved
I have a angular app that I needed to redirect outside to a non angular html page, so I thought I could just use the $window.location.hrefto redirect the angular app to my external site. This actua...
Grubbs asked 9/6, 2014 at 22:22
2
Solved
Reload page when changing hash.
I have a simple one-page site with several 'pages' on it. These pages are in one wide container which scrolls when you choose one. I have added a hash to the URL so...
Zobe asked 12/9, 2013 at 21:39
3
Solved
I'm trying to selectively disable window.location, using Greasemonkey, at the start of the document.
I don't want to fully disable javascript, just disable some redirects done with javascript. The...
Rancho asked 16/8, 2013 at 23:20
4
I have looked for awhile and cannot find an answer that fits my needs. I have a page that pops a window (window.open), logs the user in (creates a cookie, set session) then redirects to another pag...
Lomeli asked 21/9, 2010 at 16:20
5
Solved
This bit of code used to work, and now it doesn't:
var url = myurl +'?id=' + id + '&phase=' + phase;
window.location = url;
Using the IE dev toolbar I've verified that url has a valid url, a...
Lanneret asked 20/7, 2011 at 15:15
1
Solved
I find myself always writing:
console.log(window.location.href);
without even thinking about it. The majority of answers on SO also write it this way. Is there any reason why I can't just write:...
Majolica asked 17/10, 2013 at 9:56
1
Solved
I am using a REST service to generate a CSV file that I want to prompt the user to download. An example of the service is below:
https://localhost:8444/websvc/exportCSV?viewId=93282392
To prompt ...
Ex asked 19/9, 2013 at 15:2
3
Solved
How do I check if a call to window.location failed because the given URL was invalid, etc? Is there some event I can set on the window object or on some other object that can catch this?
Richthofen asked 23/8, 2013 at 13:31
1
Javascript - document.location or window.location or window.location.href or location.href does not work in Google Chrome 6 and 7(i didnt test lowers versions) when called from the window/body unlo...
Infantile asked 5/8, 2011 at 11:46
3
Solved
Visit stackoverflow.com/#_=_ and window.location.hash evaluates to #_=_. Fine.
Now execute window.location.hash = '' to clear the hash, and the URL becomes stackoverflow.com/#. (Notice the trailin...
Goren asked 10/3, 2013 at 13:46
© 2022 - 2024 — McMap. All rights reserved.