开发者

jqmodal load image

I want to load a jpg into a jqmodal popup.

&l开发者_如何学Ct;a class="jqModal" href="/ash/images/image.jpg">link</a>

<script type="text/javascript">$().ready(function() {
$('#cartdialog').jqm({ajax:'@href',trigger: 'a.jqModal'});
});</script>

So if I link to another page, it will successfully load that page into the div #cartdialog. If I set the @href to an image, it loads a bunch of jumbled text, numbers, and symbols.

How can I just load the image into the modal?

BTW I am referencing this script http://dev.iceburg.net/jquery/jqModal/


I had such problem as well. What I did is just put an image in the html file and load it in a href with ajax. And it works perfectly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜