NetTalk Central

Recent Posts

Pages: [1] 2 3 ... 10
1
you can add a SessionValue in your script and then read in NT via webhandler in SessionValueSetFromBrowser or redirect in your JS to specific procedure in NT for read a result, example for set a value in JS:

SetSessionValue("striperesponse", JSON.stringify(paymentIntent) );

I recommend implementing it as a procedure outside the web handler, but the web handler is the easiest way to test it.
2
Web Server - Ask For Help / Re: JS to update session variables or page fields?
« Last post by rjolda on September 12, 2026, 04:43:07 AM »
Hi Johan,
I am a JS newbie. I would love to see how you use JS to move data from returned fields onto the NT page.
I am querying NTSA API and I get back a string with the vehicle information which I parse out.  I assign the returned data to the respective variables:
e.g. p_web.SSV('AutoYear',returnedYear), etc.
then I do a call to the validate:  DO ValidateValue::CAT:VINnumber 
all of the fields get refreshed.
Ron
3
Web Server - Ask For Help / Re: JS to update session variables or page fields?
« Last post by JohanR on September 10, 2026, 05:11:11 AM »

Hi,

Think I found the problem, had an issue in the JS.
Will complete testing and resolve and report back

thanks

Johan
4
Web Server - Ask For Help / JS to update session variables or page fields?
« Last post by JohanR on September 10, 2026, 01:57:43 AM »
Hi,

I am dabbling with the new GooglePlaces address lookup,
and have a very nice smooth interface working.

There are 3 script files and the last one is where the values returned from google places needs to be updated into NTWS and ideally update the fields on the page.
The script files handle all the communication and on screen type ahead interface.

Is there a script to push the values to update session variables along with the page fields?
Or another way to handle this?

thanks

Johan


tvcg1.js ? Google Loader
Stores the Google API key and loads the Google Maps/Places JavaScript library.

tvcg2.js ? Address Search
Creates the Google address search box, restricts searches by country, and gets the selected address from Google.

tvcg3.js ? Address Mapping
Breaks the Google address into its parts and puts them into the correct NTWS fields ? street, suburb, city, province, postcode, country, etc.



thanks

Johan


5
Web Server - Ask For Help / Re: Webhooks in Nettalk?
« Last post by AtoB on September 08, 2026, 12:45:19 AM »
Hi all,

the thing is: what is good practice? For example I see the following implementations of the HMAC string to validate:

- messageId.timestamp.body (looks most sensible to me ...)
- timestamp.body
- variants without dots ...

Even how the labels of the http-headers are constructed seem to vary ("webhook-timestamp" seems most common)

I was hoping Nettalk maybe had this already under the hood.

B.t.w. currently out of office and running to the shop buying Cryptonite ...

Regards,
Ton

6
Web Server - Ask For Help / Re: Webhooks in Nettalk?
« Last post by rjolda on September 07, 2026, 03:24:40 PM »
Hi,
HMAC is a method in Capesoft Cryptonite. Using it regularly in my NT Web App. I am using it to validate the Text that I place in a QR code when the QR code is created.  When the user displays the QR code to the reader, we calculate the HMAC of the string read from the QR code to make certain it has not been tampered with.  wouldn't be without it!
Ron
7
Web Server - Ask For Help / Small and fast response
« Last post by AtoB on September 07, 2026, 10:02:20 AM »
Hi All,

I want my api-server to respond in the fastest way possible for some http (4xx) errors. Just a minimal header and no body at all.

I've looked p_Web.SendError(), but it always includes .html in the response body.

What's the way to construct a minimal response?

TIA,
Ton
8
Web Server - Ask For Help / Re: Webhooks in Nettalk?
« Last post by AtoB on September 07, 2026, 09:59:50 AM »
Do  you have HMAC validation in place?

I don't have to interface with a relatively '"standard" provider, but I'm trying to design a webhook system so relatively small B2B partners have to follow "my" standard, that's why I want to setup it properly in advance ...
9
Web Server - Ask For Help / Re: Webhooks in Nettalk?
« Last post by osquiabro on September 07, 2026, 02:46:06 AM »
well i have a webhook for listener stripe transaction, telegram and Alexa, is a simple netwebservicemethod
10
Web Server - Ask For Help / Webhooks in Nettalk?
« Last post by AtoB on September 07, 2026, 01:31:03 AM »
Hi All,

I'm about to add webhook functionality to my api-server (so I'm the consumer in this case).

- is there any functionality already in place with Nettalk (14), maybe some examples in the example apps?
- is it good practice to implement HMAC validation and can I do this with Nettalk?
- is there any standard that is actual standard (I see quite different implementations all over the place ...)?

TIA,

regards,
Ton
Pages: [1] 2 3 ... 10