开发者

Colorbox load new PHP-Page in DIV not works

开发者 https://www.devze.com 2023-01-29 01:00 出处:网络
That Works! Just with JQuery: $(\'#myBlobBox\').load(\'contents/test.php?action=\'+aAction+\'&step=\'+tStep+\'\');

That Works! Just with JQuery:

$('#myBlobBox').load('contents/test.php?action='+aAction+'&step='+tStep+'');
$('#myBlobBox').html('#myBlobBox');

And here my Colorbox example, but does not run. Why ?

$.('#myBlobBox').colorbox({load:\"'contents/test.php?action='+aAction+'&step='+tStep开发者_如何学运维\"});
$.('#myBlobBox').colorbox({html:'#myBlobBox'})


try to change it into, remove the escaped \":

$.('#myBlobBox').colorbox({load:'contents/test.php?action='+aAction+'&step='+tStep}); 

or

$.('#myBlobBox').colorbox({load:"'contents/test.php?action='+aAction+'&step='+tStep"}); 


$.colorbox({load: ==> does not fit, I think

i have the same effect like the colorbox if i put this

$(this).colorbox.resize();

in my loaded PHP-Page.

Thanks a lot ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消