Jump to content

implementing state behaviour in stateless world...


JonasLAX

Recommended Posts

Hi everybody,

 

I am fighting with the statelessness of the web once again. I roughly have the following situation:

 

I have a search-engine like website which has a list with results in the left column and then in the right column information on one specific item from that list.

 

If I enter element1 as a search term I will get a certain resultlist based on element1 in the left column and the content for element1 in the right column with the url of the page being url/element1. If I select the next element from the resultlist, the URL changes to url/element2 with the resultlist being loaded from the cache and the right column being filled with the element2 content.

 

Now, I would like to deeplink to url/element1 directly and in that case open the resultlist of a query of only element1 in the left column and the actual element1 in the right column (instead of using the cache for the resultlist in the left column which can be different as when we go through the resultlist instead of deeplinks).

 

Therefore, if I have a query which outputs:

 

url/element1

url/element2

 

and select the second link I would like the right column to be filled with the content of element2 without changing the left column. If I directly enter url/element2 into the address bar of the browser however, I would like the system to create a new page with the element2-content in the right column AND a new resultlist of the simple query 'element2' in the left column.

 

Unfortunately, my resultlist to the left is not a form so I can not simply set a $POST parameter and for SEO-reasons I would hate having to use a $GET parameter in the url.

 

To summarize, I believe I need a clean way to differentiate between an internal link request and an external link request without using a $POST paramter.

 

Any ideas on a clean solution to this dilemma?

 

Thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.