NetTalk Central

Recent Posts

Pages: [1] 2 3 ... 10
1
Web Server - Ask For Help / Re: Progress Bar woes...
« Last post by rjolda on Today at 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
2
Web Server - Ask For Help / Progress Bar woes...
« Last post by rjolda on Today at 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
3
Web Server - Ask For Help / Re: webserver example 79
« Last post by rjolda on Today at 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
4
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
5
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).
6
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 ;-)
7
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
8
Web Server - Ask For Help / Refresh Browse after Post Update
« Last post by rupertvz on April 15, 2026, 12:23:07 AM »
Hi Everyone,

Is there an option / way to refresh records in a NWB after applying some code (record changes) in the "Post Update" of the NWF updating the browse.
9
Web Server - Ask For Help / webserver example 79
« Last post by harold peters on April 12, 2026, 11:50:02 PM »
Has anyone ever got  example 79 to work (camera, barcode, QR scanning)? I am trying to implement QR scanning in a webserver app without success (clarion 11.1 Nettalk 14.37)
10
Web Server - Ask For Help / Re: GET response without NetTalk Ajax "stuff"
« Last post by the_question on April 06, 2026, 03:34:32 AM »
Yes, I am creating custom JavaScript. And I just wanted to force the response from server to have my structure. Nothing default from NetTalk.

But, I have figure it out if I send in the request that ajax=1, instead 0, response is much smaller. And my text is in the beginning of the response. So I have modified code:

Code: [Select]
  try {
    const response = await fetch("/Link?" + params, {
      method: "GET",
    });
    const text = await response.text();
    const value = parseInt(text.slice(0, 1), 10);
    return value;
  } catch (e) {
    console.info("Error GET /Link:", e);
    return null;
  }

With this, there is still some overhead, but is much smaller.
Pages: [1] 2 3 ... 10