grid in component only works in Firefox

58 views
Skip to first unread message

Jim S

unread,
Oct 21, 2013, 3:54:47 PM10/21/13
to web...@googlegroups.com
I have the following in my component controller:

    form = SQLFORM.factory(Field('productSiteId', db.productSite, label='Add-on',
                                 required=True, requires=requires),
                           Field('quantity', 'decimal(9,4)', label='at'),
                           _id='addonForm',
                           _formname='addonForm')

    if form.process(formname='addonForm').accepted:

When new record is added to the controller the form.process...  works fine if using Firefox, but not when using Chrome/Opera or IE.  What am I missing to make this work reliably?  The other three browsers all return False when adding a new record.  Firefox processes it as I'd expect it to.

Jim S

unread,
Oct 21, 2013, 4:35:41 PM10/21/13
to web...@googlegroups.com
Found a little more.  Look at the two attachments.  One is the generated html from Opera and the other from Firefox.  The opera one is missing the Form element.

-Jim
opera.png
firefox.png

Niphlod

unread,
Oct 21, 2013, 5:07:45 PM10/21/13
to web...@googlegroups.com
how can opera chunk out part of html ?
if you point opera to

/infocenter/applications/product_addon.load?workorderId.......

what do you get back ?

Jim Steil

unread,
Oct 21, 2013, 5:26:36 PM10/21/13
to web...@googlegroups.com
It works fine.  Also, the data input elements are all displayed appropriately, just doesn't work when I click on submit to try to add something.  But, works fine in Firefox.


--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/ssNKsOBOP8g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jim S

unread,
Oct 21, 2013, 5:29:35 PM10/21/13
to web...@googlegroups.com
Should also mention that I updated to the latest web2py this morning, running 2.7.4-stable+timestamp.2013.10.21.14.31.25.

-Jim
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.

Niphlod

unread,
Oct 21, 2013, 5:31:49 PM10/21/13
to web...@googlegroups.com
this means that in Opera the product_addon.load shows the <form> tag ?

Ricardo Pedroso

unread,
Oct 22, 2013, 8:21:10 AM10/22/13
to web...@googlegroups.com
On Mon, Oct 21, 2013 at 9:35 PM, Jim S <j...@qlf.com> wrote:

Found a little more.  Look at the two attachments.  One is the generated html from Opera and the other from Firefox.  The opera one is missing the Form element.

Just guessing...
Maybe nested forms?

Ricardo

Jim Steil

unread,
Oct 22, 2013, 8:51:17 AM10/22/13
to web...@googlegroups.com
Yes, Opera is showing the form tag.

Jim Steil

unread,
Oct 22, 2013, 8:58:50 AM10/22/13
to web...@googlegroups.com
Excellent guess!!  That was it.  Thanks a bunch for your help!


--

Jim Steil

unread,
Oct 22, 2013, 8:59:32 AM10/22/13
to web...@googlegroups.com
...the nested form, that is...
Reply all
Reply to author
Forward
0 new messages