I'm currently having an issue with getting javascript and python to communicate in web2py.  controller:  def testDB():         a=[]         a.append('a')         a.append('b')         a.append('c')         return dict(m=a)...
I am having a big problem. I have the following tables  db.define_table('post',                 Field('user_email', default=auth.user.email if auth.user_id else None),                 Field('title', 'string', requires=...
usI have some html with an onSubmit:  <form id="login_box" onSubmit="alert('{{=T('Thank you for contacting us! We have received your email and will contact you shortly.')}}'); this.submit(); this.reset(); return false;&...
I have a website.  It has two pages.  pg1 is just for me to work with jsTree in a simple environment.  Things are working fine here.  pg2 is the production application. Here is where I am having this issue.  The same code is in both pages and jsTree...
I'm building an app using web2py on the backend (largely just auth and a rest service), and reactjs on the front end. I've decided to place my reactjs files in static/js/... and load it into the html files via the script tag.  Now if I need t...
I'm trying to store the value of the drop-down 'product' in a javaScript variable and then trying to use that variable in Python code in html view of Web2py framework to further create the drop down for the other component. I tried two di...
Rendering HTML from a python String in web2py  I am trying to render an anchor link in an html file generated server side in web2py  <a href="http://app/default/profile/">@username</a>   and the link generates correctly; however w...
i have a table with add/remove buttons, those buttons add and remove rows from the table, the buttons are also added with each new row  here what i have as html  <table> <tr>    <th>catalogue</th>    <th>date</th>...
Here is my problem. I have the following function  def index():     rows=db(db.mylist).select()     return dict(rows=rows)   so whenever I reload the the front view index I want to retrieve rows from the database and display the data to the user in a...
I run a ajax call that updates interpolated value as a fully built selectbox element.  I would like to transform the created/returned selectbox into a chosen selectbox once it has finished fully loading otherwise it reverts back to a regular selectbo...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.