[web2py] Re: How can javascript reads a SQLFORM field which writable=False

2017-06-15 Thread Rudy
I ended up updating the database fields in the callback function in web2py controller, then return a True to indicate ajax to do a location.reload() to render the page. it does what I need. Apologize for all these questions and answers myself, but I thought i would share with someone who may

[web2py] Re: How can javascript reads a SQLFORM field which writable=False

2017-06-06 Thread Rudy
I just used the firefox inspector to see the source and spot the id and tag I need to get the non-writable field value, something like below: var quote_id = jQuery('#quotation_id__row').children("p")[0].innerHTML; Apologize for any bother, I am still learning a lot of stuffs eg. web2py,