开发者

lightbox that can handle php requests

Is it possible for a lightbox to get a get request and just run the php with the values gotten on the clicked link?

Like if I have:

<a href='showTrusts.php?siteUrl=$row->siteUrl'>click</a>

is it possible to have a lighbox,thickbox, or whatever that will get the clicked url and then the php executes and displays the correct info? I was looking at colorbox开发者_JS百科 but couldn't get the php to load so I started wondering if it was even possible


Check Fancybox with iFrame

$(document).ready(function() { 
$("#linkId").fancybox({
            'width'             : '80%',
            'height'            : '95%',
            'autoScale'         : false,
            'type'              : 'iframe',
            'href'              : 'mypahe.html',
    });
});

<button id="linkId" name="linkId" class="buttonSmall">Show Frame</button> 


You won't be able to use only PHP to access the data, as it will refresh the page and the lightbox will close. What you are going to need to do is use AJAX and pass some data into a PHP script.


I used jquery's "dialogue" recently for a php app - worth looking at, http://jqueryui.com/demos/dialog/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜