Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Now you need to make the necessary changes to your div inside the <code>$.address.change()</code> event to go to the desired state, all your page state changes go inside that event.</p> <p>In jquery address you need to perform two basic tasks, first, make your links change the deep linking value, using events like you did but making them update the <code>$.address.value(value_here)</code> method; and second, catch all the changes using the <code>change()</code> event to apply the changes in your page's state.</p> <p>You can also use the <code>value()</code> attribute to determine the correct state, for example</p> <pre><code>$("a").onClick(function () { //You dont need this part if you used $address.value($(this).attr('href')); //the 'rel' attribute in the links }); $.address.change(function(event) { //Catching URL change in `event` $.ajax({ //You said you're using AJAX so url: "."+event.value+".html", //using `value` attr. to get the URL+html cache: true, success: function(response) { $("#content_div").html(response); //loading page in div using AJAX } }); }); </code></pre> <p>that's just an example, you can use it to load your pages in any other way you like, since <code>$.address.value()</code> returns the value after the <code>#</code> thats your deep linking value.</p> <p>Once you do this, the back and forward buttons will change the page's URL, the <code>change()</code> event will catch that and your page will work as expected.</p> <p>So basically you need to develop a certain level of understanding about how jquery address works and work your code arround that. Also the jquery address docs page have a list of all the methods and events, in case you forget about any of them.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload