[Seaside] Accessing and changing the url - adding and reading variables

Cyril Ferlicot D. cyril.ferlicot at gmail.com
Sun Feb 10 11:38:51 UTC 2019


Le 10/02/2019 à 06:03, sergio ruiz a écrit :
> In my current app, the user enters a zip code and and distance to
> retrieve concert dates.
> 
> Once the user enters that data, and has results, I would like to make it
> very easy for the user to share this link with their friends, or save
> the link for later use.
> 
> How would I go about rewriting the url on the way out, and reading that
> data on the way in?

Hi,

You need to override #updateUrl: and initialRequest: in your component.

Example:
https://github.com/DuneSt/MaterialDesignLite/blob/development/src/Material-Design-Lite-Demo/MDLDemo.class.st

Other example:

https://github.com/DuneSt/MaterialDesignLite/blob/development/src/Material-Design-Lite-Demo/MDLDemoPageWithList.class.st

This is used for this application:

https://mdl.ferlicot.fr

Also, if you succeed to store the session and key in cookies, I am
interested to see how. I would like to do it but have no time (nor
knowledge on cookies) to do it.

> 
> thanks!
> 
> 
> ----
> peace,
> sergio
> photographer, journalist, visionary
> 
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.codeandmusic.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 


-- 
Cyril Ferlicot
https://ferlicot.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20190210/43023629/attachment.sig>


More information about the seaside mailing list