I use colorbox.js with a modal, that's loaded by ajax.
I get some errors
Uncaught RangeError: Maximum call stack size exceeded. you can check the test-side on http://selfmade01.bplaced.net/
Please use there the second button "modal load mit ajax geht jetzt bis auf colorbox"
Can anyone help?
Thanks a lot for any help.
Best regards.
Jürgen
Now it works fine.
I added this:
onOpen:function(){
$overflow = document.body.style.overflow;
document.body.style.overflow = 'hidden';
},
onClosed:function(){
document.body.style.overflow = $overflow;
$("#my-modal").modal('show');
//document.body.style.overflow = 'auto';
},
onComplete:function(){
$("#my-modal").modal('hide');
$.colorbox.resize();
modal").modal('hide');
and
modal").modal('show');
Works for me.
Best regards. }