1
Web Server - Ask For Help / Re: webserver example 79
« Last post by Bruce on April 22, 2026, 05:55:48 PM »trying to create a self signed certificate
CreateSelfSignedCertificate.bat
That Bat file is not used anymore.
On the Certificates tab (in the running program)
Simply put the server address into the "domain" box, and click on "Certificates" button.
The address is typically just he machine name (like Daisy) or an Ip address (192.168.1.1)
see https://www.capesoft.com/docs/NetTalk14/NetWebRuntimeSettings.htm
2
Web Server - Ask For Help / Re: Calling a javascript function
« Last post by Bruce on April 22, 2026, 05:49:52 PM »3
Web Server - Ask For Help / Calling a javascript function
« Last post by rjolda on April 22, 2026, 07:38:59 AM »Hi
C11.1 NT 14.37
I have a javascript function called move().
I have a button and i want to execute the move() function when the button is pressed.
I have tried multiple permutations and this is my current permutation for the button embed. However, it is not correct as the function does not execute.
This is the current iteration:
p_web.script('$(''["move()"]'').call();')
Can someone help me with the correct syntax to call this function from a NT button?
THanks,
Ron
C11.1 NT 14.37
I have a javascript function called move().
I have a button and i want to execute the move() function when the button is pressed.
I have tried multiple permutations and this is my current permutation for the button embed. However, it is not correct as the function does not execute.
This is the current iteration:
p_web.script('$(''["move()"]'').call();')
Can someone help me with the correct syntax to call this function from a NT button?
THanks,
Ron
4
Web Server - Ask For Help / Re: Progress Bar woes...
« Last post by rjolda on April 21, 2026, 12:28:20 PM »Hi All,
I was trying too much trickery... going to try to implement a javascript progress bar. It will operate without server communication for the duration of 45 seconds. I simply want to keep it contained within the client and not have to hit the server for progress bar updates...
I am sure that I will have questions on implementing the javascript progress bar.
Ron
I was trying too much trickery... going to try to implement a javascript progress bar. It will operate without server communication for the duration of 45 seconds. I simply want to keep it contained within the client and not have to hit the server for progress bar updates...
I am sure that I will have questions on implementing the javascript progress bar.
Ron
5
Web Server - Ask For Help / Progress Bar woes...
« Last post by rjolda on April 21, 2026, 07:07:45 AM »Hi,
Using C11.1 and NT 14.37.
I have a procedure with a javascript timer and I am trying to turn on the progress bar and time it down with my timer. My timer DOES work correctly but I can't get my progress bar to show up.
On Memform. I have a progress field with the Equate of: ProgressName with a timer of 3500 and NO Hyperlink creation.
My TimerButton is firing every 2 seconds and I have the ProgressName as a field to be updated with this control.
I create the Progress Bar with:
! ! initialize the progress bar
loc:ProgressName = p_web.GetValue('_ProgressName_')
p_web.SetProgress(loc:ProgressName,1,'')
Then, in my Timer button, I have this code:
if int(p_web.GSV('countervalue')) <= 45 and p_web.GSV('countervalue') <> '-'
if int(p_web.GSV('countervalue')) <=1
p_web.SSV('countervalue','Drawer will close soon..')
p_web.SetProgress(loc:ProgressName,100,'' )
ELSE
p_web.trace('counter value: ' & p_web.GSV('countervalue'))
p_web.SSV('countervalue',int(p_web.GSV('countervalue')-2))
PercentageComplete = int(p_web.GSV('countervalue')) * 2 ! calculate the percentage complete, using whatever code is applicable to your process
p_web.SetProgress(loc:ProgressName,PercentageComplete,'') ! set the progress bar to that number.
end
end
As I said, my timer counts down but progress bar does NOT show up. What am I missing?
THanks,
Ron
Using C11.1 and NT 14.37.
I have a procedure with a javascript timer and I am trying to turn on the progress bar and time it down with my timer. My timer DOES work correctly but I can't get my progress bar to show up.
On Memform. I have a progress field with the Equate of: ProgressName with a timer of 3500 and NO Hyperlink creation.
My TimerButton is firing every 2 seconds and I have the ProgressName as a field to be updated with this control.
I create the Progress Bar with:
! ! initialize the progress bar
loc:ProgressName = p_web.GetValue('_ProgressName_')
p_web.SetProgress(loc:ProgressName,1,'')
Then, in my Timer button, I have this code:
if int(p_web.GSV('countervalue')) <= 45 and p_web.GSV('countervalue') <> '-'
if int(p_web.GSV('countervalue')) <=1
p_web.SSV('countervalue','Drawer will close soon..')
p_web.SetProgress(loc:ProgressName,100,'' )
ELSE
p_web.trace('counter value: ' & p_web.GSV('countervalue'))
p_web.SSV('countervalue',int(p_web.GSV('countervalue')-2))
PercentageComplete = int(p_web.GSV('countervalue')) * 2 ! calculate the percentage complete, using whatever code is applicable to your process
p_web.SetProgress(loc:ProgressName,PercentageComplete,'') ! set the progress bar to that number.
end
end
As I said, my timer counts down but progress bar does NOT show up. What am I missing?
THanks,
Ron
6
Web Server - Ask For Help / Re: webserver example 79
« Last post by rjolda on April 21, 2026, 07:00:29 AM »HI Harold,
I have QR code scanning and camera taking pictures using a NT web server. Using Easy Cam to do some of this. If you test locally 127.0.0.1 with you barcode scanner connected, then it will work fine. No security certificate needed. I would suggest you do this on your local machine first to get it going ( run your web server on local machine with qr reader connected). You essentially have 2 options - read it through a USB interface (HID) and get text returned into a text box or use a USB-Serial interface. I did a small show and tell on this about 2 years ago on net talk webinar. If you use the HID (USB) interface, then you can test your code reader in any text box - just open something in notepad and scan something and the HID interface will place it right into the active document.
Ron
I have QR code scanning and camera taking pictures using a NT web server. Using Easy Cam to do some of this. If you test locally 127.0.0.1 with you barcode scanner connected, then it will work fine. No security certificate needed. I would suggest you do this on your local machine first to get it going ( run your web server on local machine with qr reader connected). You essentially have 2 options - read it through a USB interface (HID) and get text returned into a text box or use a USB-Serial interface. I did a small show and tell on this about 2 years ago on net talk webinar. If you use the HID (USB) interface, then you can test your code reader in any text box - just open something in notepad and scan something and the HID interface will place it right into the active document.
Ron
7
Web Server - Ask For Help / Re: webserver example 79
« Last post by harold peters on April 20, 2026, 01:15:49 AM »trying to create a self signed certificate
CreateSelfSignedCertificate.bat
get this error
how do I generate YourRandom.rnd
Can't load .\YourCARoot\private\YourRandom.rnd into RNG
EC6F0000:error:12000079:random number generator:RAND_load_file:Cannot open file:crypto\rand\randfile.c:107:Filename=.\YourCARoot\private\YourRandom.rnd
CreateSelfSignedCertificate.bat
get this error
how do I generate YourRandom.rnd
Can't load .\YourCARoot\private\YourRandom.rnd into RNG
EC6F0000:error:12000079:random number generator:RAND_load_file:Cannot open file:crypto\rand\randfile.c:107:Filename=.\YourCARoot\private\YourRandom.rnd
8
Web Server - Ask For Help / Re: webserver example 79
« Last post by Bruce on April 19, 2026, 08:59:14 PM »seems to work here. Note that it *has* to be on a secure connection (or 127.0.0.1).
9
Web Server - Ask For Help / Re: Refresh Browse after Post Update
« Last post by rupertvz on April 16, 2026, 11:14:55 PM »Thank you Jane ;-)
10
Web Server - Ask For Help / Re: Refresh Browse after Post Update
« Last post by Jane on April 16, 2026, 12:28:42 PM »There's a way to refresh a browse from (almost) anywhere in your app whenever you want.
You need to set up all the pieces correctly. Then just do a p_web.SetTableValue whenever you want to refresh the browse (assuming you're in a procedure that has access to p_web).
https://www.capesoft.com/docs/NetTalk14/NetTalkWebBasic.htm#NetRefresh
You need to set up all the pieces correctly. Then just do a p_web.SetTableValue whenever you want to refresh the browse (assuming you're in a procedure that has access to p_web).
https://www.capesoft.com/docs/NetTalk14/NetTalkWebBasic.htm#NetRefresh
Recent Posts