[Opa] bootstrap javascript plugin: modal

Frederic Ye frederic.ye at mlstate.com
Sat Apr 28 15:51:40 UTC 2012


Hello Owen,

So i've made a pull request on your code to solve the issue : https://github.com/ogunden/opa-bootstrap-modal/pull/1

The problem was : 

Opa also includes jQuery (in all.js) and it seems to conflict somehow with the first one you included.
Basically, you should never re-include jQuery in any Opa app :)
So in order to solve the loading problem with bootstrap js (jQuery needs to be loaded before), you can include them after all.js, with 

Resource.register_external_js("my.js")

Best,
Fred

On 28 avr. 2012, at 16:56, 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/opa/attachments/20120428/931d8d8b/attachment.html>


More information about the Opa mailing list