Problem running GroupDocs.net viewer in PHP environment

Hi,


You can achieve that in very simple way:
1. Put the Viewer div in to the another div with some id, for example:
2. In the JavaScript on button click change div with id=“viewer” display option from none to block
3. Put all Viewer code (from gdViewer.php) to the div with id=“viewer” via JavaScript on ajax success

Best regards.