Good point.
I also realized this morning that this solution doesn't work if the user
just opens tab 2 without changing anything, then leaves. There would still
be unsubmitted work on tab 1.
On Wednesday, April 11, 2012 4:06:24 AM UTC-4, Johann Spies wrote:
>
> On 11 April 2012 02:40, Cliff wr
On 11 April 2012 02:40, Cliff wrote:
> I also just realized how to fix this. All of the tab 2 and tab 3
> interactions get triggered when a field is changed. But the Ajax call can
> also include the fields from the form on tab 1 and the server side script
> can update them as well.
>
>
>
So wha
Got the answer! See next to last paragraph.
Here's an example of what I'm doing.
I have a table called customer_sales. It has fields like date_of_order,
date_required, purchase_order_number and so on. I also have a table called
sales_products. It has fields like product_number, product_name
But just to understand, you want to refresh your fk field from form present
in the other tabs?
If it is the case I can provide code example how I realize that with the
help of Anthony just ask...
Richard
On Tue, Apr 10, 2012 at 5:03 PM, Cliff wrote:
> Richard,
>
> I am using jquery tabs. They
Richard,
I am using jquery tabs. They work great. Also a good diagnostic for
javascript syntax errors because the tabs stop working if the js is broken.
I may have to look harder at components. Right now I'm using SQLFORM or
crud to manage the record from the main table and jquery on_change
Also, you maybe need realtime update that you can add to web2py with
comet_message contrib... Look in the recent thread on the google group
Bruno as publish a video on vimeo where he is explaining how to make use of
tornado and the comet_message contrib in context of realtime update of
records...
why not using jquery ui tabs plugin and web2py component?
Richard
On Mon, Apr 9, 2012 at 5:40 PM, Derek wrote:
> I'd put a warning saying "you have unsaved changes." or perhaps only allow
> switching after saving. You could also make your own form, and handle
> saving all changes with your cont
I'd put a warning saying "you have unsaved changes." or perhaps only allow
switching after saving. You could also make your own form, and handle
saving all changes with your controller. Web2py has good defaults, and the
helpers are good for getting a website up and running quickly, but when you
8 matches
Mail list logo