Re: Re: How to implement a dropdownlist in CherryPy where selected item is returned as argument appended to current URL?

Jibun no Kage <[email protected]> Tue, 14 May 2019 08:12:43 -0700
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------74D360962D89947223F26A66
Content-Type: text/plain; charset="UTF-8"; format=flowed
Content-Transfer-Encoding: quoted-printable

Below is a link that illustrates my point about how more than just=20
straight HTML is used...
https://css-tricks.com/unobtrusive-page-changer/

No one, that I have seen so far, appears to do a drop down list with=20
just straight HTML, that responds on selection completion of an item,=20
which is what I was looking for.=C2=A0 The closest you can get is to use a=
=20
drop down list and then a submit button... but that is not the=20
requirement as noted in my topic.=C2=A0 Clearly, CherryPy has no native hoo=
k=20
or method to do this, per the past discussion thus far. This reliance on=20
Java or PHP as the above link references, provides the event logic.=C2=A0 O=
ur=20
project design is 100% python and within the CherryPy environment.=C2=A0 To=
=20
add just one drop down list... we have to add an additional language?=C2=A0=
=20
Be it Java, PHP, or whatever, It appears that is the case.

On 05/14/2019 07:42, Jibun no Kage wrote:
> Thanks for the response.=C2=A0 I would point out that PHP, Java do much=
=20
> more than just generate simple HTML indirectly, the final response=20
> maybe just HTML but the API calls, methods, etc. they natively=20
> support, solve programmatic scenarios that would require extensive=20
> coding/scripting in raw HTML, they inject in the response, and thus=20
> the client side interprets resulting HTML.=C2=A0 Wrappers or whatever you=
=20
> may want to call it.=C2=A0 This ease of implementation is why PHP and Jav=
a=20
> are so popular.=C2=A0 I still am requesting someone to post an example of=
 a=20
> dropdownlist in a CherryPy project, since I found none thus far...=20
> even if it is just a HTML response.=C2=A0 Might be a nice thing to add to=
=20
> the tutorial for CherryPy.
>
> The various examples I did find all use various python modules to get=20
> the job done, which is something I want to avoid if possible.=C2=A0=20
> Dependence of 3rd party modules is somewhat discouraged in my=20
> environment, given the risks in using same.=C2=A0 The use of threading is=
=20
> controlled as well by our design protocol, i.e. avoid using multi=20
> threading to reduce complexity.=C2=A0 That is in reference to my atomic=
=20
> reference, I want to implement the solution avoiding 3rd party modules=20
> if possible and avoid multi thread creation if 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=3D4-Report, or something to the same effect?
>
>     Would like to keep the solution native python if possible.
>
> --=20
> You received this message because you are subscribed to the Google=20
> Groups "cherrypy-users" group.
> To unsubscribe from this group and stop receiving emails from it, send=20
> an email to cherrypy-users+unsubscribe-/[email protected]=20
> <mailto:cherrypy-users+unsubscribe-/[email protected]>.
> To post to this group, send email to cherrypy-users-/[email protected]=20
> <mailto:cherrypy-users-/[email protected]>.
> Visit this group at https://groups.google.com/group/cherrypy-users.
> To view this discussion on the web visit=20
> https://groups.google.com/d/msgid/cherrypy-users/3b35a36f-cbc5-40b3-b1bc-=
28fbfbb8aa50%40googlegroups.com=20
> <https://groups.google.com/d/msgid/cherrypy-users/3b35a36f-cbc5-40b3-b1bc=
-28fbfbb8aa50%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>.
> For more options, visit https://groups.google.com/d/optout.

--=20
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 e=
mail 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/4441ba15-6a5b-4bc6-a71b-e081e5500852%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--------------74D360962D89947223F26A66
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8=
">
  </head>
  <body text=3D"#000000" bgcolor=3D"#FFFFFF">
    Below is a link that illustrates my point about how more than just
    straight HTML is used... <br>
    <a href=3D"https://css-tricks.com/unobtrusive-page-changer/">https://cs=
s-tricks.com/unobtrusive-page-changer/</a><br>
    <br>
    No one, that I have seen so far, appears to do a drop down list with
    just straight HTML, that responds on selection completion of an
    item, which is what I was looking for.=C2=A0 The closest you can get is
    to use a drop down list and then a submit button... but that is not
    the requirement as noted in my topic.=C2=A0 Clearly, CherryPy has no
    native hook or method to do this, per the past discussion thus far.=C2=
=A0
    This reliance on Java or PHP as the above link references, provides
    the event logic.=C2=A0 Our project design is 100% python and within the
    CherryPy environment.=C2=A0 To add just one drop down list... we have t=
o
    add an additional language?=C2=A0 Be it Java, PHP, or whatever, It
    appears that is the case.<br>
    <br>
    <div class=3D"moz-cite-prefix">On 05/14/2019 07:42, Jibun no Kage
      wrote:<br>
    </div>
    <blockquote type=3D"cite"
      cite=3D"mid:3b35a36f-cbc5-40b3-b1bc-28fbfbb8aa50-/[email protected]">
      <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF=
-8">
      <div dir=3D"ltr">
        <div>Thanks for the response.=C2=A0 I would point out that PHP, Jav=
a
          do much more than just generate simple HTML indirectly, the
          final response maybe just HTML but the API calls, methods,
          etc. they natively support, solve programmatic scenarios that
          would require extensive coding/scripting in raw HTML, they
          inject in the response, and thus the client side interprets
          resulting HTML.=C2=A0 Wrappers or whatever you may want to call
          it.=C2=A0 This ease of implementation is why PHP and Java are so
          popular.=C2=A0 I still am requesting someone to post an example o=
f
          a dropdownlist in a CherryPy project, since I found none thus
          far... even if it is just a HTML response.=C2=A0 Might be a nice
          thing to add to the tutorial for CherryPy.=C2=A0 <br>
        </div>
        <div><br>
        </div>
        <div>The various examples I did find all use various python
          modules to get the job done, which is something I want to
          avoid if possible.=C2=A0 Dependence of 3rd party modules is
          somewhat discouraged in my environment, given the risks in
          using same.=C2=A0 The use of threading is controlled as well by o=
ur
          design protocol, i.e. avoid using multi threading to reduce
          complexity.=C2=A0 That is in reference to my atomic reference, I
          want to implement the solution avoiding 3rd party modules if
          possible and avoid multi thread creation if possible.<br>
        </div>
        <div><br>
        </div>
        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-left:
          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 returned 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 GET?) 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
              possible.</div>
          </div>
        </blockquote>
      </div>
      -- <br>
      You received this message because you are subscribed to the Google
      Groups "cherrypy-users" group.<br>
      To unsubscribe from this group and stop receiving emails from it,
      send an email to <a
        href=3D"mailto:cherrypy-users+unsubscribe-/[email protected]"
        moz-do-not-send=3D"true">cherrypy-users+unsubscribe-/[email protected]=
m</a>.<br>
      To post to this group, send email to <a
        href=3D"mailto:cherrypy-users-/[email protected]"
        moz-do-not-send=3D"true">cherrypy-users-/[email protected]</a>.<br>
      Visit this group at <a
        href=3D"https://groups.google.com/group/cherrypy-users"
        moz-do-not-send=3D"true">https://groups.google.com/group/cherrypy-u=
sers</a>.<br>
      To view this discussion on the web visit <a
href=3D"https://groups.google.com/d/msgid/cherrypy-users/3b35a36f-cbc5-40b3=
-b1bc-28fbfbb8aa50%40googlegroups.com?utm_medium=3Demail&amp;utm_source=3Df=
ooter"
        moz-do-not-send=3D"true">https://groups.google.com/d/msgid/cherrypy=
-users/3b35a36f-cbc5-40b3-b1bc-28fbfbb8aa50%40googlegroups.com</a>.<br>
      For more options, visit <a
        href=3D"https://groups.google.com/d/optout" moz-do-not-send=3D"true=
">https://groups.google.com/d/optout</a>.<br>
    </blockquote>
    <br>
  </body>
</html>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;cherrypy-users&quot; 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/4441ba15-6a5b-4bc6-a71b-e081e5500852%40gmail.com?=
utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/c=
herrypy-users/4441ba15-6a5b-4bc6-a71b-e081e5500852%40gmail.com</a>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />

--------------74D360962D89947223F26A66--