Wednesday 15 August 2012

ajax - Bootstrap Modal Window And Include Javascript Files More Then Once Failed -



ajax - Bootstrap Modal Window And Include Javascript Files More Then Once Failed -

i'm using twitter bootstrap in site. want show modal loaded content user.

modal window's content loading ajax request.

i'm including javascript file src attribute. when first load of modal dialog, seems ok when sec load of modal dialog, content loading javascript file isn't loading.

when modal window hidden i'm clearing of it's content.

what load javascript file more 1 time , fire it's functions?

deleted because doesn't apply:

this callback provided bootstrap. there 5 different callbacks:

show.bs.modal: event fires when show instance method called.

shown.bs.modal: event fired when modal has been made visible user.

hide.bs.modal: event fired when hide instance method has been called.

hidden.bs.modal: event fired when modal has finished beingness hidden user.

loaded.bs.modal: event fired when modal has loaded content using remote option.

$('#mymodal').on('shown.bs.modal', function (e) { yourfunction(); })

for more info on modal go here: http://getbootstrap.com/javascript/#modals

javascript ajax twitter-bootstrap include modal-dialog

No comments:

Post a Comment