NetTalk Central

Author Topic: Web Services and Javascript  (Read 2246 times)

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Web Services and Javascript
« on: October 18, 2014, 10:09:22 AM »
     I have successfully created a simple web service (NT 8.23, C9.1.11242) to return two dates, after sending an ID Number parameter.  Here is an example call:

http://127.0.0.1:88/GetExpirationDate?IRBNumber=Pro999999
http://127.0.0.1:88/GetApprovalDate?IRBNumber=Pro999999

I now want to access the service from JavaScript code embedded in a PDF document.  I want to get each of the returned dates (stings formatted @D02) into a variable that can be used in the remaining JS code.  I am currently searching for HTTP requests using JS but thought someone with JS experience could provide some example code to do this.

Thanks,

Jeff

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Web Services and Javascript
« Reply #1 on: October 20, 2014, 02:08:06 AM »
Hi Jeff,

I don't know enough about the JavaScript support inside PDF files to really comment (indeed I was unaware that PDF ad JavaScript support at all...)
The request itself will be pretty simple I would think - and presumably parsing the result is do'able as well - but I think you'll need to google around a bit to see if this is possible.

cheers
Bruce