On Friday, June 12, 2015 at 8:51:53 AM UTC-7, Martti Lamberg wrote: > > Hi! > > If this isn't a good place to ask, can someone please forward me to a > better web2py forum. > > I have a question. Is there an easy way to make a functional table / grid > / spreadsheet (or whatever the word is in English, I'm not referring to > database table, or a desk)? >
Would this fit HTML's idea of a table? That certainly is something that discussed here. > I want a sort of a map that is x*y grid and every rectangle should have > some value on it and be colored according to a certain rule. The values > come from database and the users actions may alter the data (it's a game). > And everything should happen in real time, without reloading the page. > Aside from Anthony's questions, you should be prepared to be doing javascript to handle the user input. Javascript may also play a role in updates from the server (via jquery, which web2py makes use of). Answering the questions Anthony posed could clarify how much javascript is needed. > And I want to reserve the possibility to maybe have non-similar sized and > shaped panes in the future (they could be even L-shaped or so). > This part is harder to fit into the HTML table concept, but not impossible. BTW, my javascript textbook had an assignment where a picture was cut into rectangles and scrambled. The javascript had to let user move the blocks around to get them in the right order. This didn't use tables, just x-y settings; that would perhaps work with non-rectangles without too much trouble. > So do you have any recommendations? Does web2py offer any solutions > straight out of the box or do I need a plugin or something similar? > > Mind that I'm an IT, Python and web2py newbie, so try to keep your answers > easy to understand. Thanks! > > Good luck! We're looking forward to hearing more about this project. /dps -- 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 the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

