Where did you find the book in pdf format for under $20?
You should look at the the following code that allows a callback without
updating the page. This would be great for a calculator.
class index():
button1=TAG.BUTTON(_onclick="$.ajax({url: '%s', success: function
(value) { $('#target').html(value); } });" % URL
(r=request,f='callback'))
div1=DIV(_id='target')
return dict(button1=button1, div1=div1)
class callback():
return H1('Hello world').xml()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---