Accessing and changing the url - adding and reading variables

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Accessing and changing the url - adding and reading variables

sergio_101
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?

thanks!


----
peace,
sergio
photographer, journalist, visionary


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

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

CyrilFerlicot
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
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

--
Cyril Ferlicot
https://ferlicot.fr


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

signature.asc (836 bytes) Download Attachment