Yahoo! has launched a beta of it's new mapping application: http://maps.yahoo.com/beta/
It's based in Flash, but it uses JavaScript. I'm curious about one
feature, though - when you pan about the map, the URL in the address
bar of your browser changes to match your current location. How have
they done this? I thought calling window.location .href = "etc"; would
reload the page, navigating away from the current URL. Yahoo! have
managed to do this without the page changing. This is a very useful
technique for DHTML/AJAX/Flash technology and I'd love to know how
they've done it.
Many thanks,
Paul. 3 31933
Paul Neave wrote: Yahoo! has launched a beta of it's new mapping application:
http://maps.yahoo.com/beta/
It's based in Flash, but it uses JavaScript. I'm curious about one feature, though - when you pan about the map, the URL in the address bar of your browser changes to match your current location. How have they done this? I thought calling window.location .href = "etc"; would reload the page, navigating away from the current URL. Yahoo! have managed to do this without the page changing. This is a very useful technique for DHTML/AJAX/Flash technology and I'd love to know how they've done it.
Many thanks, Paul.
An example of non-parallel thinking, combined with 3W recommendations
sent to the hell.
Link hash part (anchor name) #blah-blah-blah does not lead to
navigation away from the current page. Unresolved anchor names do not
lead anymore neither to a page shift not to an error: tested on IE 6.0
and FF 1.0.7
Opera 8.1 fails on it (did not check yet Opera 8.5, cannot check Safari
and Konqueror)
document.locati on.hash = "Write all what you need";
Ingenious! Another exellent example to myself to read less about
standards or rely on some previous experience. Only continues
experiments on concrete systems have practical value.
"Paul Neave" <pa********@gma il.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. . Yahoo! has launched a beta of it's new mapping application:
http://maps.yahoo.com/beta/
It's based in Flash, but it uses JavaScript. I'm curious about one feature, though - when you pan about the map, the URL in the address bar of your browser changes to match your current location. How have they done this? I thought calling window.location .href = "etc"; would reload the page, navigating away from the current URL. Yahoo! have managed to do this without the page changing. This is a very useful technique for DHTML/AJAX/Flash technology and I'd love to know how they've done it.
Many thanks, Paul.
Only the hash part of the url is changing. You can do this as follows:
parent.location .hash = 'hello';
The actual URL http://maps.yahoo.com/beta/ before the '#' cannot be changed without a page reload. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: rufus |
last post by:
Hi,
In an ASP.NET application I have tried using javascript to prompt a user to
save their changes if they try and navigate away without saving their
changes. The problem is that this client-side solution is not reliable under
different browser-sets. Does anyone know of a robust server-side solution to
this problem? Or can anyone at least point me in the right direction because
I am having great difficulty with it.
Thanks in advance.
|
by: Sin Jeong-hun |
last post by:
Hello. I created a very simple program which just pops up a MessageBox
saying "Hello,world!". I compiled it and put it on my homepage and
created a hyperlink to it. When I click the hyperlink to the .exe file,
unlike the normal .exe files, it is just executed without popping up a
dialogue like "".
I wonder is this only because I created the application and somehow
..NET Framework recognized that I created it and ran it? Or any person...
|
by: sauron8888 |
last post by:
how can i prepare a web browser without using axwebbrowser?
|
by: hiriumi |
last post by:
Hello folks,
I have a web application that has basic authentication turned on (IIS).
What I would like to accomplish is detect whether user is navigating
away from the site or simply going to the different page using
JavaScript. I am aware that it is easy to detect where you came from
(referrer), but I haven't been able to find a way to where you're going
to. I did my fair amount of research online, but I couldn't find a
solution for...
|
by: Tom v |
last post by:
My site uses forms extensively and I would like to implement a feature
that if a user enters data and then tries to navigate away from site a
warning message is displayed. I searched and found the following
function that gives the warning message all the time. I need to
figure out how to activate it only if a key is pressed in the form and
also to not display it if the user submits the button. Thanks for
your help!
...
| |
by: celery6541 |
last post by:
Hi all, Is there a way to confirm that a user wants to navigate away from a page when they type something in the url bar and hit enter?
|
by: nrocha |
last post by:
Hello,
I've been trying to detect when a user closes a page or navigates away
from it. This is part of a solution for locking pages (that is, if a
user enters a page, no one else can enter it while he doesn't leave).
I'm using the window.onunload event to trigger the unlocking of a
page, but I don't want the page to be unlocked when a postback or a
refresh occurs...I only want it when the user goes to another page or
closes the...
|
by: 9916404403 |
last post by:
How to display PDF file in browser without having any save option using Asp.net
my mail id is email removed for security
|
by: Adam Tippelt |
last post by:
Scenario:
I've got a table for adding records, with a subtable for all data requirements related to that record.
I've built a 'view' form to navigate through the records, so that you can view the details of each. This includes a listbox to display the list of data requirements attached to each record.
I've made navigation buttons using the control wizard and converted them to VBA to allow more flexibility so that I can add code to them.
...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |