473,385 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

set window.location but WITHOUT a reload

Hi,

does any of you know a way how to set window.location without
automatically reloading the page?
I heard of one, but for this i must alter the configuration of the browser!
I suspect that its not possible. How else could i alter the url of the
current page?

Greetings
Jul 23 '05 #1
3 5149
Lee
Bernhard said:

Hi,

does any of you know a way how to set window.location without
automatically reloading the page?
I heard of one, but for this i must alter the configuration of the browser!
I suspect that its not possible. How else could i alter the url of the
current page?


Since "alter the url" is synonymous with "reload the page", it's not clear what
you're asking for. Do you mean, for example, that you want the URL displayed on
the page to read "http://www.citibank.com", while the actual page is coming from
a server running on your PC in Korea? Are you sure you would be willing to use
a browser configured to allow that?

Jul 23 '05 #2
Lee wrote:
Since "alter the url" is synonymous with "reload the page", it's not clear what
you're asking for. Do you mean, for example, that you want the URL displayed on
the page to read "http://www.citibank.com", while the actual page is coming from
a server running on your PC in Korea? Are you sure you would be willing to use
a browser configured to allow that?


Good point. Havn't thought about that possibility.

I have read the following article and i like the idea.
http://www.alistapart.com/articles/eatcake/

But i wanted to extend the script, so that you can specify the div you
want to show then the page is loaded (already done), and also to be able
to bookmark the different divs.
But to bookmark them i must have something like the following in the
url: http://url.tld?div=intro
And to achieve this i must alter window.location every time a new div is
shown. But if everytime i alter url the page is reloaded the whole
purpose of the srcipt is defeated.

It was a nice idea. But its an security nightmare.

Jul 23 '05 #3
Bernhard wrote:
[...]
But i wanted to extend the script, so that you can specify the div you
want to show then the page is loaded (already done), and also to be able
to bookmark the different divs.
But to bookmark them i must have something like the following in the
url: http://url.tld?div=intro
And to achieve this i must alter window.location every time a new div is
shown. But if everytime i alter url the page is reloaded the whole
purpose of the srcipt is defeated.


Have you tried using anchors? Requires no JavaScript and can be
bookmarked.

Incidentally, document.location is specified as the URI of the
currently displayed document. As far as I can discover, there is
nothing that explicitly says you must reload the page when changing the
location, however it is implied by the above specification.

--
Fred
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mike Gifford | last post by:
Hello, I'm right now using window.location.reload() to refresh the browser. It behaves as I would want in Mozilla/Netscape, but not in IE. I want to refresh a form, but keep the cached...
3
by: sentinel | last post by:
Hi all, I'm trying to reload a frame from a pop-up, but really cannot figure this out. Within my index.htm file, I make a link to call a pop-up frame with a javascript function that calls the...
1
by: Debbie Davis | last post by:
Hi there, I'm not very good at javascript but I'm using the following to close a child window and refresh a parent window after updating a database. It's within an ASP page. CODE <SCRIPT>...
2
by: alex bazan | last post by:
I'm popping a window to a page with a different dns than the parent, and i want the opener's location reloaded when this window is closed. With Mozilla it seems that all the opener's methods and...
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
1
by: JJ | last post by:
Hi All, How in ASP.NET, from PopUp window: 1) - save Data in Database; and after 2) a) - Reload the opener window b) -close PopYp window. Note:
7
by: Raffi | last post by:
I'm facing a tricky (at least for me) page reload/refresh scenario and need some help. I'm working on a web application which is primarily used with MSIE. The application has a main window with...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.