• Post Reply Bookmark Topic Watch Topic
  • New Topic

Call URL while opening PDF

 
Rahul Ba
Ranch Hand
Posts: 210
  • 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: 21872
36
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: 3250
54
  • 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!