开发者

jquery modal window and opening a pdf file in new window

I need to show listing of names of PDF files which are to be printed. I need to show this list in a JQuery Modal window. If anybody can please suggest as to how to redir开发者_StackOverflow中文版ect the view to a jquery modal window? I plan to use JQuery UI for the purpose.

My other requirement is to display the select PDF file in a new window.


You could have a controller action that will return a partial view containing the list of PDF files. Then configure jQuery Dialog to use AJAX in order to fetch this list from the server and show it in a div. Finally inside this list you could add target="_blank" to anchor elements pointing to the actual PDF file so that it is opened in a new window when the user clicks on this anchor.


Check out fancybox plugin for jquery . You pass it a web link and set it to iframe.

secondly, if you want to open up a pdf in a new window set the anchor link target="_blank" i.e. <a href="yourlinkhere" target="_blank">title</a> hope that helps

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜