This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
1
Web Server - Ask For Help / Re: Clarion template to add fingerprint/pin access to Nettalk
« on: October 20, 2026, 12:03:29 PM »
Thanks for sharing, Alberto!
Maybe just me, but I could not get the demo to compile until I changed a number of statements from something like
to
After that it does compile.
(I'm still on Clarion 11.0)
I can't connect my phone to try to use it though without changing my DNS, which I don't have time to do at the moment.
Maybe just me, but I could not get the demo to compile until I changed a number of statements from something like
Code: [Select]
if p_web.GetSessionLoggedIn() = 0
waOut = '{"ok":0,"err":"login"}' to
Code: [Select]
if p_web.GetSessionLoggedIn() = 0
waOut = '{{"ok":0,"err":"login"}'After that it does compile.
(I'm still on Clarion 11.0)
I can't connect my phone to try to use it though without changing my DNS, which I don't have time to do at the moment.
2
Web Server - Ask For Help / Re: Might Need Jane Fleming for help here!
« on: September 27, 2026, 07:38:52 PM »
In the immortal words of Sergeant Schulz, "I Know Nothiing!"
The code for unhiding the password is something I've used for 4 or 5 years with no issues.
If it breaks your code, then my advice would be not to use it.
Or at least take it out and then confirm that your lookup button works as intended without it.
The code for unhiding the password is something I've used for 4 or 5 years with no issues.
If it breaks your code, then my advice would be not to use it.
Or at least take it out and then confirm that your lookup button works as intended without it.
3
Web Server - Ask For Help / Re: How to execute code once on Form Load?
« on: September 25, 2026, 12:43:53 PM »4
Web Server - Ask For Help / Re: Show/hide password in login form
« on: September 18, 2026, 11:02:18 AM »
At a guess, you've forgotten to add the class to the button.
It sets the button to transparent with no border and no outline.
It sets the button to transparent with no border and no outline.
5
Web Server - Ask For Help / Re: Show/hide password in login form
« on: September 15, 2026, 06:23:35 PM »
I sent my little example to Bruce in June of 2022, Richard, in case he thought it useful.
Glad you were able to make it work.
It's a simple no-dictionary wizarded app.
Because I was lazy and just incorporating stuff from one of my production apps, I added two separate CSS files to the webserver template (in the Styles/Files tab) and one little bit of javascript on the webserver template Scripts tab.
You can see from my zip file where those files go inside the web folder. There's also a PNG with the icons. (And with a bunch of other junk, since I just took it from a different app.)
I didn't change any of the wizarded embed code in the LoginForm.
The changes are on fields.
Note in LOC:Password the suppress comment and span value/comment. Also note that it is not last on line and not last in cell.
The name of the LOC:Password equate needs to match the password document.querySelector line in the javascript file. NT translates a colon into a double underscore. In my production apps I normally change that to something else, but this was intended to work with an out-of-the-box wizarded app.
The new button is last on line.
On the button tab, note the text in the HTML before image/text field. The ID that's set there is what the javascript uses.
Function call in the Javascript onclick field in the button's OnClick tab.
One class on the button's CSS tab
If mine works and yours doesn't, you're doing something wrong
Glad you were able to make it work.
It's a simple no-dictionary wizarded app.
Because I was lazy and just incorporating stuff from one of my production apps, I added two separate CSS files to the webserver template (in the Styles/Files tab) and one little bit of javascript on the webserver template Scripts tab.
You can see from my zip file where those files go inside the web folder. There's also a PNG with the icons. (And with a bunch of other junk, since I just took it from a different app.)
I didn't change any of the wizarded embed code in the LoginForm.
The changes are on fields.
Note in LOC:Password the suppress comment and span value/comment. Also note that it is not last on line and not last in cell.
The name of the LOC:Password equate needs to match the password document.querySelector line in the javascript file. NT translates a colon into a double underscore. In my production apps I normally change that to something else, but this was intended to work with an out-of-the-box wizarded app.
The new button is last on line.
On the button tab, note the text in the HTML before image/text field. The ID that's set there is what the javascript uses.
Function call in the Javascript onclick field in the button's OnClick tab.
One class on the button's CSS tab
If mine works and yours doesn't, you're doing something wrong

6
Web Server - Ask For Help / Re: Show/hide password in login form
« on: September 15, 2026, 04:53:23 PM »
Richard,
Here's a version that's built in NT14 (with the webhandler template that was changed from NT12).
Let me know if it compiles for you OK.
Here's a version that's built in NT14 (with the webhandler template that was changed from NT12).
Let me know if it compiles for you OK.
7
Web Server - Ask For Help / Re: Show/hide password in login form
« on: September 15, 2026, 03:00:08 PM »
@Richard - what version of NetTalk and Clarion?
8
Web Server - Ask For Help / Re: How to Hide and UnHide a Radio Option
« on: September 15, 2026, 07:23:44 AM »
What I would try:
For each of the options, in the CSS for that option use an expression like (this is pseudo-code)
For each of the options, in the CSS for that option use an expression like (this is pseudo-code)
Code: [Select]
CHOOSE(p_web.GSV('hide option variable'),' nt-hide','')
9
Web Server - Ask For Help / Re: Show/hide password in login form
« on: September 15, 2026, 07:17:21 AM »
I've been doing this for some years.
The attached is an example I sent to somebody in 2022.
There's some stuff in the css that's not needed for the example (I didn't take time to clean it up) but it's a working NT12 example.
EDIT: This NT12 example will require some modification to run on NT 14.
NT14 example several posts down.
The attached is an example I sent to somebody in 2022.
There's some stuff in the css that's not needed for the example (I didn't take time to clean it up) but it's a working NT12 example.
EDIT: This NT12 example will require some modification to run on NT 14.
NT14 example several posts down.
10
Web Server - Ask For Help / Re: In which Procedure and Embed can I put code that will only Run Once
« on: August 20, 2026, 11:24:12 AM »
What are you trying to do, Johan?
A session value is going to be tied to a particular session ID, so it will only be "global" for that one session.
I use a number of regular global variables in web apps that are set at startup and then read-only thereafter.
If you don't want to use global variables, you can set host values in the web server procedure when it starts (maybe in ThisWindow.init). (Since pweb does not exist in the web server, you would use s_web.SetHostValue).
A session value is going to be tied to a particular session ID, so it will only be "global" for that one session.
I use a number of regular global variables in web apps that are set at startup and then read-only thereafter.
If you don't want to use global variables, you can set host values in the web server procedure when it starts (maybe in ThisWindow.init). (Since pweb does not exist in the web server, you would use s_web.SetHostValue).
11
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« on: August 16, 2026, 08:09:11 PM »
Ron,
After you get it working in CURL, you can also do some testing with the web client that's in the NetDemo app in the NetTalk examples.
It's useful because you can see what's sent and received and figure out how to make things work.
After you get it working in CURL, you can also do some testing with the web client that's in the NetDemo app in the NetTalk examples.
It's useful because you can see what's sent and received and figure out how to make things work.
12
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« on: August 13, 2026, 05:13:16 PM »
No, I haven't.
Have you tried the examples in the nettalk\NetDns folder?
Have you tried the examples in the nettalk\NetDns folder?
13
Web Server - Ask For Help / Re: Global MEMORY file
« on: August 05, 2026, 04:36:17 PM »
Johan,
I've never used the multi-host for a real app; just played with the example.
I would not start from the webhandler.
Many of my web servers actually have a source procedure as the first procedure in the app tree.
This is example code from one that looks at the commandline, does some initialization, starts a timer window, and then runs the web server.
I've never used the multi-host for a real app; just played with the example.
I would not start from the webhandler.
Many of my web servers actually have a source procedure as the first procedure in the app tree.
This is example code from one that looks at the commandline, does some initialization, starts a timer window, and then runs the web server.
Code: [Select]
GlobalInit()
IF COMMAND('/setup')
SetupWindow()
RETURN
END ! IF
if GLO:LogMaxRecords = 0
GLO:LogMaxRecords = 500
end ! if
GLO:RunningAsService = gSelfService.AmService
GLO:SuppressUI = GLO:RunningAsService
GLO:DataServiceThread = start(timerwindow,25000)
if GLO:RunningAsService
AddErrorLog('ADIS started as service.')
ELSE
AddErrorLog('ADIS started manually.')
end ! i
GLO:ServerStartDate = today()
GLO:ServerStartTime = clock()
WebServer()
14
Web Server - Ask For Help / Re: Global MEMORY file
« on: August 04, 2026, 11:37:11 AM »
For something small like that, you might also consider Capesoft MaxQueue.
As for loading the queue (or file), is the data pre-staged (in which case the load would be almost instantaneous) or does it have to be gathered?
I have some webservers that need the underlying data refreshed periodically. Perhaps I overcomplicate things, but my flow is:
1. When the app starts, START a window that has a timer. Capture the thread returned by the START command into a global variable (I use GLO:DataServiceThread).
2. I declare an equate
6. You might want to wrap the actual reloading of your data inside a critical section to restrict access while the refresh is taking place. Don't know whether that is needed with MaxQueue.
As for loading the queue (or file), is the data pre-staged (in which case the load would be almost instantaneous) or does it have to be gathered?
I have some webservers that need the underlying data refreshed periodically. Perhaps I overcomplicate things, but my flow is:
1. When the app starts, START a window that has a timer. Capture the thread returned by the START command into a global variable (I use GLO:DataServiceThread).
2. I declare an equate
Code: [Select]
eqMyClose equate(event:user + 4) 3. In the window that has a timer, in ThisWindow.TakeWindowEvent before the parentCode: [Select]
of eqMyClose
! any other cleanup code here
post(event:closewindow) 4. In the webserver procedure, at the beginning of thisWindow.KillCode: [Select]
if GLO:DataServiceThread <> 0
post(eqMyClose,,GLO:DataServiceThread)
end ! if5. Timer in window triggers refresh of data.6. You might want to wrap the actual reloading of your data inside a critical section to restrict access while the refresh is taking place. Don't know whether that is needed with MaxQueue.