We will need more background and code...
What result is? a field that a user is actually filling or the content of a
variable that you can determine at the controller level?
If the later it is easy :
{{if result == 3:}}
modal html
modal javacript
in the javascript trigger the modal
{{pass}}
Richard
On Fri, May 23, 2014 at 5:41 AM, LoveWeb2py <[email protected]> wrote:
> Is this possible? I basically want to try and write a function that says
>
> if the result == 3:
> popup a modal box
>
> I followed this example:
> http://getbootstrap.com/2.3.2/javascript.html#modals
>
> But I just can't figure out how to make the modal pop up in the same
> window. I am thinking it will be something along the lines of AJAX or using
> LOAD?
>
> --
> 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.
>
--
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.