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 - DonRidley

Pages: 1 ... 5 6 [7] 8 9 ... 48
91
Web Server - Ask For Help / Re: Call a procedure inside a static html
« on: November 04, 2019, 02:33:28 AM »
Any static page mmust have the <!-- Net:WebServer --> server tag at the top of the page. 

From the docs:

Static pages (usually .htm pages on disk) that contain tags have to be parsed by the server. If you use a static page on the disk these tags can still be used. However in that case the first line of the page must be

<!-- NetWebServer -->

92
Web Server - Ask For Help / Re: Milti-site host documentation?
« on: October 29, 2019, 03:34:13 AM »
What part of it are you having problems with?

Don

94
Web Server - Ask For Help / Re: Mini survey about NetTalk Apps
« on: October 09, 2019, 02:55:30 AM »
Yes to to all questions.

Truthfully, creating a PWA with NetTalk is trivial.  A PWA in of itself is not complicated.  Getting certain features to work on all devices not so much.  For example, iOS can be a real pain in the arse due to Apple's unwillingness to implement the standards everyone else is following (Chrome, Firefox, etc.).  Safari on iOS is lagging way behind.

NetTalk has the tools to do just about anything you want in the world of PWA's, disconnected apps, and so forth.  Just takes a little extra work.

Don

Here's my latest and best Google Chrome audit on my PWA and some screenshots of the app:


95
Web Server - Ask For Help / Re: Field priming
« on: October 02, 2019, 04:53:16 AM »
Hi Don,
(And thanks again for responding so quickly.)

I try.  :)

Quote
..in the PWA has to be done in javascript

If the PWA is disconnected..yes.

Quote

Therefore, the create of the B-record must be done at the user's phone, using a javascript function

If I'm following what you're doing...yes.

Quote
After that, the sync will take care of creating the record on the host I guess.

Yes.  The underlying NetTalk Javascript will take care of the heavy lifting.

Quote
..the total amount of data on the user's phone will be very small.

This is good.  You don't have a lot of room to work with.

It sounds like you're on the right track in my humble opinion.

Don

96
Web Server - Ask For Help / Re: Field priming
« on: October 02, 2019, 02:07:12 AM »
The Javascript priming is intended for "disconnected" situations where the data resides on a device such as a phone or tablet or even a desktop browser.  Nevertheless, the server, or Clarion side, would not be primiming it in that situation therefore the Javascript priming.

I think there is some confusion as to what a PWA is.  A PWA is simple an app that meets certain critiria.  It has to have a service worker.  Is has to have a manifest.json file.  And so on.  It can be a connected app or not.  It can be a single page app or not. 

Having said all that, I don't think it hurts anything to use the Javascript priming along with the traditional Clarion.  In fact, I will "go out on a limb" and say that Bruce would probably encourage it as it is good to familiarize yourself with it.  It's powerful stuff (Javascript).  That's what I like about NetTalk.  So many options. 

Take care,

Don

97
Web Server - Ask For Help / Re: downloading a CSV file to Users desktop
« on: October 01, 2019, 04:41:26 AM »
Is the users' app a desktop app? (Versus a web app.)

98
Web Server - Ask For Help / Re: Javascript filter of a browse
« on: September 30, 2019, 05:42:53 AM »
ad 2: I mean in the template field where the JS-filter must be typed in.

Yes sir.  That needs to be in quotes. 

99
Web Server - Ask For Help / Re: SSL issue on 11.21 on Windows Server 2019
« on: September 30, 2019, 02:11:47 AM »
Did you remember to install the MS Visual Studio runtimes?

https://aka.ms/vs/16/release/vc_redist.x86.exe

Is your certificates path correct?

Don

100
Web Server - Ask For Help / Re: Javascript filter of a browse
« on: September 30, 2019, 02:02:15 AM »
Hello Rene,

Quoted in the JS itself?  No.

I'm not a JS expert but I'm fairly sure you could call a function and get that return value. 

Don

101
Web Server - Ask For Help / Re: programatically restart the service
« on: September 30, 2019, 01:57:26 AM »
I'd suggest creating another service, accessible via browser, whose only job is to provide admin functions remotely without their having to know much of anything. Give them a browser button to stop the service, start the service, and restart the service. The NTWS service can easily run cmd /c net start and cmd /c net stop, or do the same via oddjob. Then you dont have to worry about them having access to the console, cpanel, admin login, etc.

What Mark said.  I use a service to process websocket commands sent remotely to update computers in a fleet of patrol cars.  OddJob has a nifty little method named RunAsUser.  It makes use of several Windows API's to run an application with elevated permissions.  Remember, services run with system level privileges so any app started by them ALSO have system privileges.  I run my Setup Builder updates this way.  Works great! 

From your users' interface, you could pass a "command" to execute the code that Jane mentioned.  A NetTalk UDP server is VERY easy to setup.  Send from user to service then run code.  Easy peasy.

See ya!

Don

102
Options:


Try compiling in DLL mode vs LIB mode under project properties.

or

Comment out this line in NetHttp.clw in the NetWebHttp.CreateAuthorizationStringVapid method:

Sig.SetValue(NetSignToken(jwtInfo.GetValue(),jwtData.GetValue(),PrivateKey.GetValue()))



103
Web Server - Ask For Help / Re: Compile error NT11.22
« on: September 20, 2019, 03:49:46 AM »
Hey Ashley,

Look in Project Properties and see if you're compiling in LIB mode or DLL mode.

I got this error when compiling in LIB mode.  Try DLL mode and see if it will compile.

See ya,

Don

104
Web Server - Ask For Help / Re: How to display image after Upload
« on: September 13, 2019, 04:25:16 AM »
Example App Attached - C11, NT 11.21

I also created a video demonstrating what I did to make this work.  I wasn't sure if you have Clarion 11.

https://youtu.be/5-NtVdRGk9U

105
I had a similar situation.  Had to install a "default" printer on the machine running my NT webserver.

Don

Pages: 1 ... 5 6 [7] 8 9 ... 48