NetTalk Central

Show Posts

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.


Messages - Jane

Pages: [1] 2 3 ... 25
1
The Rest - Share Knowledge / Re: Posting a file to a web site
« on: April 28, 2025, 09:24:17 AM »
Verifying the server name is obviously a security concern.

But if you're certain of the server, you can turn off the name checking.

Use the DontVerifyRemoteCertificateCommonName property:
 
https://www.capesoft.com/docs/NetTalk14/NetTalkWebClient.Htm#TLS

2
Web Server - Ask For Help / Re: Refresh NWB Header
« on: April 22, 2025, 10:10:23 AM »
Check the web34 "Calculator" example app.
The Performance procedure has stats updated with websockets.  (It's not on the menu so you need to enter the URL manually in your web browser.)
On the fields in the template, notice the "Live via WebSocket" checkbox ticked.

Check out this: https://www.capesoft.com/docs/NetTalk14/NetTalkWebBasic.htm#WebSockets
And search for "socket" on this page: https://www.capesoft.com/docs/NetTalk14/NetTalkWebFunctionality.htm#NetWebForm

If you have Bruce's book "Developing Web Applications with NetTalk - Fourth Edition" you can read the chapter on Web Sockets.

3
OK.

But with data tables, the threaded connection strings you use need to be set on each thread.  Hence the suggestion to set them in ProcessLink each time a thread runs.

My point was that once you set a theme, you do not need to set it again each thread.  It's sticky to the session, not to a thread. 

That said, the one time that you set the theme can be with the rest of the stuff you're doing in ProcessLink - no need to have separate code to do it in PageHeaderTag.
Set the theme once in ProcessLink, and set the threaded connection strings there each time.


4
Web Server - Ask For Help / Re: Changing theme has no effect
« on: April 18, 2025, 08:52:47 AM »
Why don't you post the exact code you're trying to use?

What you just posted isn't consistent - if the variable is GloTheme then it should be p_web.GSV('GloTheme') rather than what you wrote.

And what does ParseRequestHeader have to do with getting a theme name from an INI file?

And you should only have to set the user's theme once for a session.  Are you really reading and setting that each time in ProcessLink?

On second thought, maybe worth asking for help on Bruce's Thursday webinar.

5
Web Server - Ask For Help / Re: Changing theme has no effect
« on: April 17, 2025, 10:53:23 AM »
Spelling counts.
Using exactly what you see in debugview, can you use that exact text value and change the theme from the URL?

i.e.

http://127.0.0.1:88/?_theme_=palmtree

6
Web Server - Ask For Help / Re: Pass parameter in servercall?
« on: April 16, 2025, 03:22:59 PM »
Works for me, Poul.
How are you storing the parameter?  If you're putting it into a sessionValue, it should be sticky and persist through the login and beyond.

You'll need to set your filename variables EACH TIME your code runs through p_web.ProcessLink in the webhandler (because each pass through there is happening on a new thread), so set the session values the first time (when they're sent as parameters) then use those session values to set the filename variables EACH TIME.

7
Web Server - Ask For Help / Re: web26 example File Upload
« on: March 17, 2025, 05:35:55 PM »
WOMM isn't much help, Richard.

But FWIW, I'm working on an in-house web app.  The part that's finished has the user select an Excel file, upload it to the uploads folder, from which it's parsed and uploaded to a SQL server and then manipulated there into several tables.

I didn't do anything fancy.  It just works.  (On localhost on my dev machine, which is not TLS).

Don't know if it's any use, but attached is a TXA for the Excel upload proc (but not the fileProcess proc that does the parsing and SQL stuff after it's uploaded to the web\uploads folder).

Maybe useful for some clue?  (Although there's a good bit of code in it related to my using the progress control in conjunction with my subsequent file-processing steps.)

jf


8
Web Server - Ask For Help / Re: Global template: Secret 1 / 2
« on: March 07, 2025, 12:14:49 PM »
Search for set:secret in the webserver procedure.

It's made up from those fields in the template and then set:secret is used for things like storing the encryption password for TLS certificates.

9
No Javascript Check

10
Web Server - Ask For Help / Re: Strategies to refresh client browse
« on: February 28, 2025, 07:07:34 PM »
I tried something like this a few months ago using websockets. 
I wound up not using this approach because it refreshes the whole browse and I wanted the client session manager to timeout if there hadn't been any "real" activity.
But an example is attached.
Run it.
Open the /dashboard procedure on one computer.
On a different computer (or at least different browser) open /browseMonitors.  Then when you EIP update one of the items, you'll see the browse on the other computer/browser reflect the data.

There's also a timer running on a window that arbitrarily updates the timestamp on the records showing in the "dashboard" - but only if the particular record is marked as enabled.

Might give you some ideas.




11
The Rest - Ask For Help / Re: Need embed point for calculations, please
« on: February 09, 2025, 08:09:13 PM »
As a starting point, I'd try this embed.
 

12
Web Server - Ask For Help / Re: Microservices?
« on: February 06, 2025, 12:28:50 PM »
What is the problem you're trying to solve?

13
Poul,

Don't know what you did with editing the shipping theme that didn't work, but the custom.css you're using won't do what you want.

What you're showing doesn't change the behavior of Bruce's css.  You need to include something for that selector that overrides what's in the original css.

Something like this, for example, should work in your custom.css:

Code: [Select]
@media (max-width: 1024px) { /*for small screens */
   .nt-browse-row-header{
      display:flex!important;
   }
}


14
Web Server - Ask For Help / Re: 2 way certificate authentication
« on: January 08, 2025, 03:10:58 PM »
Thanks for the update, Joep,

Glad you got it working.  You didn't attach a picture, but then it's a *hidden* window ;)

As you've found, the key is to think of the client part as a client and the webserver part as a webserver.

Good job!

15
It has nothing to do with recompiling.  When you ran the app with /IS the service information was created in the Registry.

If the wrong path is displaying on the Properties page in the services.msc app, easiest is to uninstall the service and reinstall it in the correct folder.

Or you could edit it in the Registry.




Pages: [1] 2 3 ... 25