Re: Accessing and changing the url - adding and reading variables

"Cyril Ferlicot D." <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
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
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 


-- 
Cyril Ferlicot
https://ferlicot.fr

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJcYA1QAAoJEBzpUtxBqUIDlNQP/3eytv0bP0IqyUR//4FwslT2
+VusKyDdwuv+pIws7YgGIJ8cGuqs3ogauWyGMTYkZZFHS+muvQP5LgyhU5G2wwIG
ckGiTKHwdea3MiHaRhs22f2ECyBk8YGePuDQBpqCysQjBGBqaP4Z6r2qQGFbPPCE
1IeYP+izfgT3IA2YtrTaBYsz7ARa53U9blTuen63uxrCcLnr0+zaVRxaN/fe6Tnd
94XbFsIui4+CG6RtA3yIJvemo5OSJFB7eI4SzukzhNz985u4o1XA/u3inQB21w8j
7tjtT0XWCC5OuAJCu0w8ywGgYKzlsjiZ7/VdZX89llguPher8buJUQOX6ybj8svX
afLYQn8qZU2LEtOfkAmhkvmlg5Ej2i7v9T96BC7T19OnM3133L7pXaKnkD8CJMKS
fcunuDO5i4cT/PWF8uGmigmoR11ZzIWmEppeG5Utmx7rTB3jx7r/AdjPmnlCISdH
KbMwwCLdY/KmEReAHOTf3IxzvI6ZgbgMZO/7r0Tt8Y5TbhPxqmhCpWkdcHWNiicq
wIBLpDW9jqDt6U/AfOfuemJzo2UU/BMQAPBn/OslZP0FmBDL/fG8x+N8fUawTjQj
iN9Nt+6qjXnPyXseBLS+eZL2dNbOPC/Ac9BGDafCPB9JVHldIvpTUBSlx+gQI5U+
dSdLuM6j/axhLYHPL/Yv
=c0RB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.