Re: Cherrypy support HTML/CSS3 fully?
matt Gerwen van <[email protected]> Sun, 24 Sep 2017 02:26:20 -0700 (PDT)
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
Hi Tim, Thank you for your response, Yes I had to put the code here. I used one of my applications as a kind of template, just to figure something out, how it works. This application contains almost only html and css3 code. Therefor I thought it should work. In the process of how to do things in the python-cherrypy-way I changed the "onclick=getfields" without "()" in the code below, this was mistake one and the second mistake was that in the config-part I did not pointing to the correct directory. <input type="image" src="./static/images/add.png" class="pswd_imagesize" name="add" alt="add" onclick="getfields(pswd_add)" /> Thanks Matt van Gerwen On Wednesday, August 16, 2017 at 6:28:16 PM UTC+2, Tim Roberts wrote: > > matt Gerwen van wrote: > > > > I'm starting with cherrypy and discovered that making html-files and > > loading them with open(file).read is not the right way to go, however > > have seen some code that seems to work as basepage. > > You certainly CAN handle pages by reading and copying HTML files. It's > more common to read template files and customize them using one of the > template packages, but the concept is exactly the same. > > > > My question is: I'm trying to create a button with a background image > > nor in html or in CSS3 works. Is this the limitations of cherrypy or > > what do i wrong? I have tried different solutions and codes, help > > would be appreciated. > > Honestly, without seeing your code, how can we have any possible hope of > answering this question? There are a thousand things you could have > done wrong. CherryPy can certainly deliver files, so it is a bit much > for you to blame the tool first. > > The code you posted is going to send a request to your server for > /static/images/login.png. Do you have code and configuration in your > server to handle that request? If not, then you can hardly be surprised > that the image wasn't presented. > > -- > Tim Roberts, [email protected] <javascript:> > Providenza & Boekelheide, Inc. > > -- 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. For more options, visit https://groups.google.com/d/optout.