Well as for 'trying' anything I'm still searching for the method that 
fits...

So the usual button to redirect to another page I use this

<button type="button" class="btn btn-primary" 
onclick="location.href='{{=URL('gameTime')}}'">Done with my squares</button>


What I am trying to do is click a button that does NOT redirect.  If I use 
a function in defauly.py that has no view in the URL field above, it loads 
the generic view as advertised.  Grrr.  Isn't there just a simple way to 
suppress calling the generic view?  Just leave the view and retreat into 
the controller for a little code parsing? ;)

I'd go down the trapped link route but as I understand it that still 
involves loading the page, just not displaying it, and while I could go 
create a pretend page it feels too much work- like there ought to be a 
switch on the URL helper to just execute code...?



On Saturday, August 3, 2013 7:44:57 PM UTC-4, Anthony wrote:
>
>
> I need a button in html to execute a function in my default.py controller. 
>>  In that fx it performs logic to determine where exactly to redirect, as 
>> well as some housekeeping.
>>
>
> What have you tried? Can you show some code? Sounds like you just need an 
> ajax call, and possibly a redirect(..., client_side=True) if you want the 
> end result to be a redirect of the whole page.
>
> Anthony 
>

-- 

--- 
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/groups/opt_out.


Reply via email to