hi, 

It is difficult to provide you with help because you appear to be trying 
> random syntax that you wish would work but is not based on anything in the 
> documentation, and then we are left to guess what you are really trying to 
> do. Instead of inventing your own syntax, try to stick to what you see and 
> understand from the documentation. If there's something you can't figure 
> out, it would be more productive for you to describe the functionality you 
> want to achieve and let folks suggest possible implementations.


i want to modified pos online store appliance so the user can input the 
quantity in form input and then add it into shopping cart (store in 
session), do you have any possible suggestion implementations about this?
 

>
> You can also probably do more debugging and discovery on your own. You can 
> always inspect what's in request.vars, session, etc. by inserting them in 
> your view, printing them to the console, or including 
> {{=response.toolbar()}} in your view. You should also inspect the HTML code 
> generated by web2py in your browser to see if your views are generating 
> what you expect. Finally, learn how to use the developer tools in your 
> browser so you can inspect the requests and responses sent and received by 
> the browser -- that way you can see if your Ajax requests are working and 
> sending and receiving the data you expect.
>

a, this part is what i'm looking for, because basically i'm not a 
programmer and still new in this field. thank you so much for your 
information.
 

>
> In this case, you have a form on the page for entering quantity, but your 
> callback link doesn't do anything to extract the entered quantity and 
> submit it back to the server, so request.vars.quantity and 
> form.vars.quantity are always empty. Look into using the ajax() function.
>
>
i think i've already put the request.vars.quantity in order_callback and 
submit back to server via return value. please correct me if i'm wrong. 

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to