[Opa] bootstrap javascript plugin: modal

Owen Gunden ogunden at phauna.org
Sat Apr 28 20:51:19 UTC 2012


I guess it is not necessary to call .modal(options) before
.modal("show"). Fred found another issue (I was including my own
jQuery) and now it works beautifully. Thanks!

On Sat, Apr 28, 2012 at 11:25 AM, Adam Koprowski
<Adam.Koprowski at mlstate.com> wrote:
>   Hi Owen,
>
>   I believe you need to first (before calling the 'modal' method) initialize
> modal on a given DOM element, as in:
> http://twitter.github.com/bootstrap/javascript.html#modals; are you doing
> that?
>   If you give your modals 'modal' class then you can initialize all of them
> at once with something like $(".modal").modal(options) in BODY's onready.
> Does that make sense?
>
>   Best,
>   Adam
>
>
> On 04/28/2012 04:56 PM, Owen Gunden wrote:
>
> Hello Opa list,
>
> I'm trying to get bootstrap's javascript plugins to work with Opa.
> Specifically the modal one
> (http://twitter.github.com/bootstrap/javascript.html#modals). I think
> this should be pretty straight forward I am just making some kind of
> mistake. My code is here:
>
>   https://ogunden@github.com/ogunden/opa-bootstrap-modal.git
>
> I have gotten the modal to work via embedded data- tags, woot. I'd
> also like to be able to show and hide the modal from opa function
> calls. So I've bound the javascript. I'm getting an error in the
> console when I call it:
>
>   Uncaught TypeError: Object [object Object] has no method 'modal'
>
> Any thoughts would be appreciated!
>
> Owen
> _______________________________________________
> Opa mailing list
> Opa at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/opa
>
>
>
> --
> Adam Koprowski [http://adam-koprowski.net]
> Opa Tech Evangelist @ MLstate [http://opalang.org | http://mlstate.com]
>
> _______________________________________________
> Opa mailing list
> Opa at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/opa
>


More information about the Opa mailing list