Re: How to implement a dropdownlist in CherryPy where selected item is returned as argument appended to current URL?
Jibun no Kage <[email protected]> Mon, 13 May 2019 22:19:03 -0700 (PDT)
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_615_1388026396.1557811143750 Content-Type: multipart/alternative; boundary="----=_Part_616_1730079995.1557811143751" ------=_Part_616_1730079995.1557811143751 Content-Type: text/plain; charset="UTF-8" No, its both. Implementation of a dropdownlist in each respective environment is slightly different, be it PHP, Java, etc. Given that CherryPy has a unique dispatch method, that imposes specific requirements, it is not obvious how such can be done. If it was just a matter of cut and paste of straight HTML I would not have posed the question as I have. Moreover, examples via Google or what have you, would be abundant, they do not seem to be so. I am sure there is someone in the greater CherryPy world, that has implemented a dropdownlist as I outlined. Thus, I am asking for assistance and examples of how to do so in a CherryPy acceptable manner. Hopefully python atomic as well, if such is possible. On Monday, May 13, 2019 at 7:33:05 PM UTC-7, Jibun no Kage wrote: > > How to implement a dropdownlist in CherryPy where selected item is > returned as argument appended to current URL? > > For example, say I have a form select: > > 1-Test > 2-Debug > 3-Run > 4-Report > > Current URL is /number. > > And when I select 4, URL via POST (or GET?) is now > /number?select=4-Report, or something to the same effect? > > Would like to keep the solution native python if possible. > -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. To view this discussion on the web visit https://groups.google.com/d/msgid/cherrypy-users/0eac83c5-6dd9-45f4-9c76-2ab60adfca7a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_616_1730079995.1557811143751 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">No, its both.=C2=A0 Implementation of a dropdownlist in ea= ch respective environment is slightly different, be it PHP, Java, etc.=C2= =A0 Given that CherryPy has a unique dispatch method, that imposes specific= requirements, it is not obvious how such can be done.=C2=A0 If it was just= a matter of cut and paste of straight HTML I would not have posed the ques= tion as I have.=C2=A0 Moreover, examples via Google or what have you, would= be abundant, they do not seem to be so.=C2=A0 I am sure there is someone i= n the greater CherryPy world, that has implemented a dropdownlist as I outl= ined.=C2=A0 Thus, I am asking for assistance and examples of how to do so i= n a CherryPy acceptable manner.=C2=A0 Hopefully python atomic as well, if s= uch is possible.<br><br>On Monday, May 13, 2019 at 7:33:05 PM UTC-7, Jibun = no Kage wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-l= eft: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"= >How to implement a dropdownlist in CherryPy where selected item is returne= d as argument appended to current URL?<br><div><br></div><div>For example, = say I have a form select:</div><div><br></div><div>1-Test</div><div>2-Debug= </div><div>3-Run</div><div>4-Report</div><div><br></div><div>Current URL is= /number.</div><div><br></div><div>And when I select 4, URL via POST (or GE= T?) is now /number?select=3D4-Report, or something to the same effect?</div= ><div><br></div><div>Would like to keep the solution native python if possi= ble.</div></div></blockquote></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;cherrypy-users" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:cherrypy-users+unsubscribe-/[email protected]">cher= rypy-users+unsubscribe-/[email protected]</a>.<br /> To post to this group, send email to <a href=3D"mailto:cherrypy-users@googl= egroups.com">cherrypy-users-/[email protected]</a>.<br /> Visit this group at <a href=3D"https://groups.google.com/group/cherrypy-use= rs">https://groups.google.com/group/cherrypy-users</a>.<br /> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/cherrypy-users/0eac83c5-6dd9-45f4-9c76-2ab60adfca7a%40googlegrou= ps.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/= msgid/cherrypy-users/0eac83c5-6dd9-45f4-9c76-2ab60adfca7a%40googlegroups.co= m</a>.<br /> For more options, visit <a href=3D"https://groups.google.com/d/optout">http= s://groups.google.com/d/optout</a>.<br /> ------=_Part_616_1730079995.1557811143751-- ------=_Part_615_1388026396.1557811143750--