Jump to content

Open PDF at new browser window


valramosr

Recommended Posts

http://forums.unigui.com/index.php?/topic/9353-open-form-in-new-browser-tab/

 

check also if your file is accessible:
 
'/files/PDFs/'+FormatDateTime('ddmmyyyyhhmm', Now)+'myfirstrel.pdf';
UniSession.AddJS('var newWin = window.open("'+URL+'"); '+
                       'if(!newWin || newWin.closed || typeof newWin.closed==''undefined'') '+
                       '{ alert(''Atenção, os pop-ups para esta página estão bloqueados!'');} ');
Link to comment
Share on other sites

let the unigui generate the link:

UniServerModule.NewCacheFileUrl(False, 'pdf', FormatDateTime('ddmmyyyyhhmm', Now)+'myfirstrel, '', URL);

UniSession.AddJS('var newWin = window.open("'+URL+'"); '+
  'if(!newWin || newWin.closed || typeof newWin.closed==''undefined'') '+
  '{ alert(''Atenção, os pop-ups para esta página estão bloqueados!'');} ');

newcache.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...