On Wednesday, January 21, 2015 at 6:09:26 AM UTC-8, Anthony wrote:
>
> On Tuesday, January 20, 2015 at 10:45:53 PM UTC-5, Dave S wrote:
>>
>> As mentioned in another thread, I started using
>>
>>
>> TAG.BUTTON('"label" _type="submit", _name="mybutton", _value=buttonvalue,
>>                              _onclick='ajax("stuff.load", ["val1","val2", 
>> "val3"], "stuff_div")')
>>
>>
> I don't know if these issues are related to your problem, but I notice an 
> extra single quote at the beginning, and "stuff.load" is a relative URL, 
>

Post-production editing error, kinda like Google Maps blurring the face of 
the Michelin Man.

and "stuff.load" is a relative URL, so it will simply be appended to the 
> URL of the page (which may work fine if the page in question happens to be 
> the default function for the controller and the function is not included in 
> the URL).
>
>
Both the function for the page with the button and function the button 
loads (that is, stuff()) are in the default.py controller, and the relative 
URL is working for me, as long as javascript is enabled [author studies 
ceiling for a moment].  I also make conventional links in the page using 
URL() and relative paths, and those are all being properly generated.  I 
may have to pay attention to that if I split it out into a second 
controller file, which I probably should do because I've now got the site 
serving 3 different types of actions (only loosely related).


Thanks for the pointers.  

/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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to