On Tuesday, April 27, 2021 at 3:54:15 PM UTC-7 james c. wrote:

> Is it possible to use standard html elements, for example a button, in a 
> web2py view. 


Short answer: yes.  Things like *<h3>* and *<li>* are scattered through the 
examples like welcome/views/default/index.html.  And I think I built a 
button in a controller at least once, though the example isn't handy on 
this computer.  That button would have been part of a string variable 
passed in the response, if memory serves.


> I've tried both within the default controller and a separate controller 
> named a_net.py and in both cases the function and views are named payment. 
> In both cases, a link:  {{ =this_link }} is populated with the correct 
> link, but all the html code does not load in the browser. Only, the 
> variables that were returned to the view, and their correct values are 
> displayed. The URL to the view, with the function in default is: 
> "localhost:8000/mpay/default/payment" and with not using default: 
> "localhost:8000/mpay/a_net/payment" 
>
>
in payment.html:

<HTML-thingy>{{=this_link}}</HTML-thingy>

 

> None of the html code is in the browser, just the list of variables and 
> their values that the function returned to the view. So is it possible to 
> use a standard html element, like a button, and have only that button 
> displayed in a browser?
>
> Thanks in advance for any recommendations, James
>

/dps
 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a99b4551-b088-40fe-bf03-07f3f0ffc7dcn%40googlegroups.com.

Reply via email to