Ajax deep connection?

I made a link with a deep flex interface, but now I want to make a link for an ajax application.

I don’t know where to start.

I guess I need a way to listen when #hash in the URL changes and can read it. And I guess I need a way to update #hash in the url.

Does anyone know how to do this?

Thank!

+5
ajax deep-linking
May 22 '09 at 15:15
source share
4 answers

You are on the right track.

For each state of the ajax page you want to connect to, change the hash tag:

window.location.hash = "this_state" 

When the page loads, you need to check if the window.location.hash value matches one of your states, and if the application really goes into that state. ("Listening" to change a hash tag is a page load.)

Thus, your users can add bookmarks and share states, making for a much more convenient application, therefore, details for caring for it.

+6
May 22 '09 at 15:46
source share

You can find my article at http://blog.onthewings.net/2009/04/08/deep-linking-for-ajax/ useful. This was done for my Web 2.0 course at the university.

+3
Aug 20 '09 at 21:13
source share

look at SWFAddress (deep binding for Flash and Ajax)

UPDATE: if you use jQuery to view jQuery Address

+2
May 22, '09 at 15:45
source share

If you are using jquery, you can look at this:

Deep connection with jQuery address plugin

0
Oct 03 '09 at 18:48
source share



All Articles