Topic: AJAX calls and breadcrumbs (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=32905" title="Pages that link to Topic: AJAX calls and breadcrumbs (Page 1 of 1)" rel="nofollow" >Topic: AJAX calls and breadcrumbs <span class="small">(Page 1 of 1)</span>\

 
Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

IP logged posted posted 02-18-2014 15:53 Edit Quote

I have created a series of AJAX calls that load different results in one web page on my site. The results of each query update a div. My client asked for breadcrumbs to be able to navigate back through previous states of the page.

Does anyone have any suggestions on how to accomplish this with technology that's already been created. I really hate to rebuild the wheel on this one!

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 02-18-2014 16:48 Edit Quote

I believe the most straight forward way is to modulate the 'anchor' part of the url, ie. something after the #.
That does not lead to a side reload, and you can access it in javascript to decide which sub content to load.
Then all you need to do is generate the right links.

Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

IP logged posted posted 02-18-2014 21:08 Edit Quote

I have not used the url hash before. I plan to now though. Thanks for the tip.

I was thinking about writing the results to a series of PHP session variables that I could call as a sort of history. I figured that would get pretty clunky pretty quick though.

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana
Insane since: Aug 2000

IP logged posted posted 02-23-2014 19:15 Edit Quote

You can also use the path part of the URL. If you have a URL like http://my.domain.com/a/b/c/d/e/f and you have a directory structure on the site /a/b/, the server will use the file in /a/b and pass /c/d/e/f as an argument. It's been a while since I've used this, so I don't remember the details, but I know you can pass info to your page that way.

.



-- not necessarily stoned... just beautiful.



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu