Re: [bottlepy] trouble with javascript

47 views
Skip to first unread message

Iuri

unread,
Nov 9, 2012, 5:20:22 AM11/9/12
to bott...@googlegroups.com
I don't think it is a problem with bottle, but we need more information to confirm that.

Can you provide a small example with the problem? Only the client side code (html/js) is enough to understand the problem.

cheers,
iuri

On Fri, Nov 9, 2012 at 1:58 AM, Fotis Jannidis <jann...@gmail.com> wrote:
Hi all,

I have used 2 small javascript libraries to sort tables which contain checkbox inputs. In both cases the following happens: after sorting the table I don't receive any values from the checkboxes when I send the form. Everything is ok as long as I don't use the sorting.

I have used tablesorter.js and sortable.js. Because it happens with both of them, I assume it is a problem with Bottle or am I missing anything?

Any help and pointer appreciated. Thanks in advance,

Fotis

--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

Fotis Jannidis

unread,
Nov 9, 2012, 6:16:32 AM11/9/12
to bott...@googlegroups.com
Yep, you are right - trying to build a small demonstrator of my problem I discovered the source of it: I had a structure like this: <table1><form> ...</table1><table2>...</form></table2> and the sort library was attached to the second table. Now I changed this to <form><table1> ...</table1><table2>...</table2> </form> and everything seems to work as intended. Cheers, Fotis
PS: very nice project btw - also ideal for people like me who need a gui for python 3.x and want to avoid tkinter
Reply all
Reply to author
Forward
0 new messages