views:

85

answers:

0

What I am after are some tutorials that are ajax specific for implementing SWFAddress in different contexts (in the anchors, in jquery $.change() functions, etc). This way I can learn it myself.

What I am trying to do is save the state of a form in the address bar so that the results can be stored in the browsers history (allowing use of the Back buttong).

I have a form that is calling the results page dynamically (using jQuery's $.post()) whenever the user changes an option. I want the application to set the form state in the address bar so that the results can be generated (again) based on this state.

From what I have learned in the sample ajax applications I've seen, I'm calling the two needed SWFAddress js files, and in my $.post() return function I am trying to set the address bar:

SWFAddress.setValue($(form).serialize());

I have tried setting the value as "/history", just to get the address bar to show something different, but nothing is working.

Placing the SWFAddress.setValue() function into an anchor and calling it onclick does have the desired effect, though.