Currently, when a user goes to the following URL:
www.foo.com/details.hmtl#id=123
The server returns 'details.html' and then performs a client-side Ajax call once the page is returned to load the data for the item with id=123. It uses the BBQ Plugin for JQuery
Is there any way to retrieve the parameters following the hashmark on the server so that when the page is initially being returned by the server, it can be returned containing the details for id=123
.
This is desired so that details will still be displayed whether or not Javascript is turned on in the user's browser. And if they have Javascript turned on, they can change out the content via Ajax by clicking the existing buttons on the site.
Thanks in advance for all help
EDIT:
The pages are currently being returned in the following manner:
id = self.request.get("id")
template_values= {'id': id}
path = os.path.join(os.path.dirname(__file__), 'details.html')
self.response.out.write(template.render(path, template_values))
You cannot do that because the browser sends just the /details.html for request.
if you need to you can use parameters for example : for the first time you can send the user to this page /details.hmtl?id=123 then save the user's request in the session value and redirect the user to the real page without params and with hash /details.hmtl#id=123 then get the current user's session and render the page's content.
That's how you can do it without using JS
Regards NiL