[Opa] bootstrap javascript plugin: modal

Adam Koprowski Adam.Koprowski at mlstate.com
Sat Apr 28 15:25:22 UTC 2012

   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?


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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/opa/attachments/20120428/74fe1666/attachment.html>

More information about the Opa mailing list