Re: How to implement a dropdownlist in CherryPy where selected item is returned as argument appended to current URL?
Jibun no Kage <[email protected]> Thu, 16 May 2019 08:45:35 -0700
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
JavaScript, Java Run Time, etc. are not consistently available on the=20 client side.=C2=A0 Thus development of code, publishing, on the server side= =20 to leverage any variant of Java becomes useless.=C2=A0 In my case, simply= =20 put, if the word Java is referenced in the design of the project, it is=20 a non-starter, not allowed. Moreover, IoT devices can acts as clients as well... have worked on=20 project where they have done duel tasking, acting as both client and=20 server functions, even more than just an access point.=C2=A0 There is even= =20 one project I know of where the IoT devices are mesh linked, responding=20 and acting as publishers and subscribers to many other devices to act as=20 a locus of interactive nodes.=C2=A0 An IoT device that uses curl is not=20 considered a client?=C2=A0 Clients are not limited popular browsers compete= nt=20 or otherwise, leveraging HTML.=C2=A0 REST APIs are just to tempting to=20 developers, their pros and cons, not qualified here. As for secure or not secure... that is not for anyone to qualify but the=20 ultimate user, client, etc.=C2=A0 As note above, Java is declared, and its= =20 variants, as insecure, requirement of design goals.=C2=A0 IMHO never qualif= y=20 something as secure... nothing is secure, other than a device connected=20 to nothing and never powered on, and even that maybe previous exploited=20 in some way.=C2=A0 There are many zero day exploits in all technologies jus= t=20 waiting to be leveraged.=C2=A0 Ask any fortune 50 company how much vetting = is=20 done in a lab before any technology is deployed.=C2=A0 The term secure is= =20 never used as justification of any technology, rather it is when the=20 benefit of the technology is greater than the risk of using the=20 technology is the question.=C2=A0 But I digress. Of course none of the above are applicable to my request to solve a=20 unique design goal with key restrictions.=C2=A0 Maybe it will address some = of=20 your concerns as noted. On 05/14/2019 15:42, Tim Roberts wrote: > Jibun no Kage wrote: >> >> As I am sure many have gathered, I am working under some unique=20 >> requirements.=C2=A0 Straight HTML would be without use of any optional= =20 >> scripting language, i.e. that will likely be disabled. Java script as=20 >> one example is restricted and even prohibited in some secured=20 >> environments.=C2=A0 In secured micro-controller environments for example= ,=20 >> there are quite a number of limits and restrictions unique to the=20 >> environment at hand.=C2=A0 This is also typical of Internet-of-Things=20 >> implementations for example. > > IoT devices run a web SERVER, not a web BROWSER.=C2=A0 A web browser is a= =20 > UI concept, and IoT devices don't have a UI.=C2=A0 Javascript runs in the= =20 > web browser, not on the server. > > >> So assumption that Java is available, i.e. enabled is not a given. ...= =20 > > JavaSCRIPT.=C2=A0 Please, those two are very, very, very different=20 > languages used for very different purposes.=C2=A0 The world was done a hu= ge=20 > misservice when Netscape decided to rename ECMAScript to Javascript in=20 > order to cash in on the "cool word of the day".=C2=A0 You MUST get your= =20 > terminology straight, because I think that's were some of your=20 > confusion arises.=C2=A0 Your IoT device can send Javascript code in the= =20 > HTML pages it sends out, knowing that it will be read and executed by=20 > a competent web browser on a user's laptop somewhere. > > >> Moreover, the design goals I am working with is to not use additional=20 >> scripting support, and Java is explicitly prohibited. > > Java or Javascript?=C2=A0 There was a time that Java was proposed as a=20 > browser-extension language, just like Microsoft's ActiveX controls.=C2=A0= =20 > That time is gone.=C2=A0 I can believe that Java is prohibited.=C2=A0 How= ever,=20 > Javascript support is ubiquitous.=C2=A0 EVERY non-toy browser has it, and= =20 > it is secure.=C2=A0 I do not believe any serious web-based project today= =20 > would prohibit Javascript.=C2=A0 It doesn't make sense. > > >> This of course limits the flexibility of the design significantly.=20 > > Yes.=C2=A0 For example, you cannot implement an "automatic" dropdown list= =20 > without Javascript.=C2=A0 It is impossible.=C2=A0 Forms can only be submi= tting=20 > by having the user click a "submit" button. > > >> I am trying a few things using the change of focus and hover events,=20 >> time to get creative. > > Change of focus and hover events execute Javascript code.=C2=A0=C2=A0 If = you are=20 > allowed to handle events, then you are allowed to use Javascript. > --=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/866cfcab-6596-61ed-07fb-c27ab6cc6683%40gmail.com. For more options, visit https://groups.google.com/d/optout.