1

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 redirect 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.

Sunil Thamban
  • 75
  • 3
  • 14

2 Answers2

1

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.

Community
  • 1
  • 1
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
0

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

mashdup
  • 875
  • 7
  • 18