[Opa] bootstrap javascript plugin: modal

Owen Gunden ogunden at phauna.org
Sat Apr 28 20:50:17 UTC 2012


Works like a charm! Thanks!

On Sat, Apr 28, 2012 at 11:51 AM, Frederic Ye <frederic.ye at mlstate.com> wrote:
> 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
>
>


More information about the Opa mailing list