[web2py] Re: Problems using LOAD function

2011-06-01 Thread Massimo Di Pierro
Please try LOAD('default','menu',ajax=True) you may get a ticket. Check what it says. On Jun 1, 12:34 pm, salbefe salb...@gmail.com wrote: Hello, The following code before I updated web2py via mercurial worked well for me. Now I get the following error if the ajax parameter is set to

Re: [web2py] Re: Problems using LOAD function

2011-06-01 Thread David J.
I also posted a message yesterday regarding the views and the load function; It seems like if the URL has some additional 'args' LOAD returns the HTML view rather than the .load view. Thanks. On 6/1/11 2:23 PM, Massimo Di Pierro wrote: Please try LOAD('default','menu',ajax=True) you may

Re: [web2py] Re: Problems using LOAD function

2011-06-01 Thread pbreit
To get .load view: LOAD('default','menu.load',ajax=False) or LOAD('default','menu',extension='load',ajax=False)

[web2py] Re: Problems using LOAD function

2011-06-01 Thread Massimo Di Pierro
I need more information here. Set ajax=True. What are the generated URLs (before and after the upgrade). I cannot reproduce the problem. LOAD('default','action') never appended the .load extension. You had to be explicit LOAD('default','action.load') Do you see the problem only with ajax=False?

Re: [web2py] Re: Problems using LOAD function

2011-06-01 Thread David J.
I just upgraded the software to latest in trunk. I did explicitly use '.load'. It still happens. It loads the entire page into the target div. On 6/1/11 3:29 PM, Massimo Di Pierro wrote: I need more information here. Set ajax=True. What are the generated URLs (before and after the

[web2py] Re: Problems using LOAD function

2011-06-01 Thread Massimo Di Pierro
Please post the exact code you used {{=LOAD(.)}} the look at the source of the generated page and post that as well. On Jun 1, 2:58 pm, David J. da...@styleflare.com wrote: I just upgraded the software to latest in trunk. I did explicitly use '.load'. It still happens. It loads the

Re: [web2py] Re: Problems using LOAD function

2011-06-01 Thread David J.
a href=javascript:web2py_component('quick_add_contact.load','contact_list') class=buttonQuick Add New Contacts/a On 6/1/11 4:02 PM, Massimo Di Pierro wrote: Please post the exact code you used {{=LOAD(.)}} the look at the source of the generated page and post that as well. On Jun 1,

[web2py] Re: Problems using LOAD function

2011-06-01 Thread Massimo Di Pierro
David and salbefe have different issues. @David web2py_component('quick_add_contact.load','contact_list') should be web2py_component('{{=URL('quick_add_contact.load'}}','contact_list') @salbefe what do you get if you visit this page? http:///init/default/menu My guess is you get a

[web2py] Re: Problems using LOAD function

2011-06-01 Thread pbreit
What happens when you go to http://127.0.0.1/init/default/menu or http://127.0.0.1/init/default/menu.html or http://127.0.0.1 /init/default/menu.load in your browser? Do you have a view menu.html or menu.load? Have you tried LOAD('default','menu.load',ajax=False)

Re: [web2py] Re: Problems using LOAD function

2011-06-01 Thread David J.
Massimo; Thank you! It seems to have solved my particular issue; @David On 6/1/11 4:48 PM, Massimo Di Pierro wrote: David and salbefe have different issues. @David web2py_component('quick_add_contact.load','contact_list') should be

[web2py] Re: Problems using LOAD function

2011-06-01 Thread salbefe
Massimo, I have solved muy problem. My problem was that I had migrate=False in the table 'menu' on db.py and I was using an older version of the database where such table did not exist. Sorry for the inconveniencie. When I have tried to visit http:///init/default/menu is when I noticed