Using Dynamic URL's with XHtmlRequest in jQuery
Hi,
i use jQuery with the history plugin to fetch content dynamically. it works like this:
- <a href="#pagename">Page 1</a>
this would be my call to fetch 'pagename.html' into a div labelled in an XHR call. anyhow, the problem.
I need to fetch a page with a module, which would normally work like this:
- <a href="content.php?sort=country">Sort by Country</a>
but due to me fetching content dynamically, i cant put a link like this as it would send me out of my page, and onto the page 'content.php' I was wondering if there is any way around this? im really a newbie on jquery, so i havent a clue. The ajax call i use is
here.
Any feedback or suggestions are appreciated.
Thanks.