Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Call URL while opening PDF  RSS feed

 
Rahul Ba
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I want to call a URL in background to update flag in DB. In that view, is there any way with PdfAction(new url), I can accomplish that.
The Idea behind that to see how many times PDF got opened.
 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul Ba wrote:I want to call a URL in background to update flag in DB. In that view, is there any way with PdfAction(new url), I can accomplish that.


I don't see how new PdfAction(URL) could be made to have the effect of updating a database.

Why don't you just insert some normal database code to do your updating?
 
Tim Moores
Saloon Keeper
Posts: 3828
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think PdfAction is the way to achieve this. Embedded JavaScript may be able to accomplish this, although considering the security issues around that, that may well be turned of, or prompt the user before accessing any external URL. See SOAP and web services for how you might be able to go about this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!