Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Browser Query String Paramters / Deep Linking
Sun, Jun 28 2015 10:05 PMPermanent Link

Boris B

New user here Smile

I understand that EWB 2 creates an SPA (single page application).  However, I'm unclear regarding what support there is for deep linking - being able to use the query string to specify a subpage of the SPA (e.g. "Customers", "Products", "Help") and specific records (e.g. "CustID=102").

This is important for bookmarking and permanent links.

Regards,

- Boris
Mon, Jun 29 2015 3:57 AMPermanent Link

Matthew Jones

Boris B wrote:

> New user here Smile
>
> I understand that EWB 2 creates an SPA (single page application).
> However, I'm unclear regarding what support there is for deep linking
> - being able to use the query string to specify a subpage of the SPA
> (e.g. "Customers", "Products", "Help") and specific records (e.g.
> "CustID=102").
>
> This is important for bookmarking and permanent links.

Yes, you can do this. Search back for:
SetWindowEventHandler('hashchange', TrapWindowHashChange);

(Probably just the first part as that TrapWindowHashChange is probably
unique to my code)

You can set and obtain the #shop part of the URL, and take control of
the Back button too, in a normal way. I use this in my web shop.


--

Matthew Jones
Mon, Jun 29 2015 11:43 AMPermanent Link

Boris B

Perfect!  Thanks Smile
Image