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 ... 19 20 [21] 22 23
301
Web Server - Ask For Help / Re: PWA Development
« on: November 17, 2018, 10:49:08 AM »
I don't know the answer, Vic, but of course that won't stop me from opining.

We have an analogous situation - not involving PWAs but rather where we have a NetTalk webserver app that needs to be run on ChromeBoxes (where we can't import certificates) managed through Rise Vision.

So we use a store-bought Godaddy cert.

Of course, you can't get a public cert for a machine that's on a non-public domain (www.mywebserver.local)

Soooo... 
1.  We buy an "extra" public domain just for convenience purposes (MyDummyDomain.me).
2.  Use that "extra" domain to buy the cert we need (www.mywebserver.MyDummyDomain.me)  This is NOT actually a server that is accessible on the Internet.  --  Actually, we use this enough that we bought a wildcard *.MyDummyDomain.me cert rather than hassling with multiple Subject Alternative Names.
3.  Create a one-machine domain in our Active Directory DNS (forward lookup zone called "mywebserver.MyDummyDomain.me").  (We create a separate one-machine forward lookup zone for EACH webserver where we're using this trick.)
4.  In that one-machine domain, create a Host(A) record leaving the name blank - as the window says, "(uses parent domain if left blank)".  Give that A record the address for the web server.
5.  Apply the Godaddy SSL cert to the web server.

In practice, I also create a certificate on our in-house Active Directory-trusted certificate authority with the internal LAN name for the web server, and apply that certificate to the web server as well.

It's a bit Rube Goldberg, but all is happy for both domain-joined Windows machines using the internal LAN name and for the non-domain ChromeBoxes using the MyDummyDomain.me URL.

jf


302
Web Server - Ask For Help / Re: nettalk 11 inspect console errors ?
« on: November 08, 2018, 01:10:15 PM »
Although these errors *sound* as if the files in question are not valid, my experience has been that they actually mean those files do not exist.

Either add dummy zero-byte files with those names in your web folder or else remove them from the NetWebServer extension template if you don't plan to be adding any custom CSS.

jf

303
If you have GPF reporter, add that to the app and see whether it's actually crashing rather than being forced to close by the OS.

304
Web Server - Ask For Help / Re: Close All Session and Threads??
« on: October 19, 2018, 07:14:12 AM »
If you really need to do this, you might try

1. Create a new Source procedure called Main.
2. Set Main as your startup procedure.
3. Create a global BYTE variable called CERRAR
4. In Main, have some code like
   CERRAR = 0
   LOOP
      WebServer
      if CERRAR
          BREAK
      END
   END
5. Decide how you're going to determine it's time to do this (timer, some kind of flag, whatever)
6. When it's time, do
      post(event:accepted,?GracefulCloseButton)
      ! That should close the web server.  The loop in MAIN will restart it
7. When you really need to shutdown, set CERRAR = 1

305
Web Server - Share Knowledge / Re: Chrome ERR_INVALID_HTTP_RESPONSE
« on: August 25, 2018, 02:39:24 PM »
A more viable solution for my situation is to set the NetWebPage to HTML, allow it to send the server header text rows, then inject my StringTheory object and return before the template code generates all  the HTML, HEAD, TITLE  and other tags and code.

While I could just mark the checkboxes not to include scripts, css, etc, I'd still prefer not to inject the various duplicate sections into the middle of my page... even though the various browsers seem to handle it OK.

In any event, with the server headers sent, Chrome stops complaining and lets my <div> refresh work even if the server is set to a non-standard port. 

Another reminder to test weird stuff on all browsers, since IE, Edge, and Firefox worked with my original kludge.



Jane

306
Web Server - Share Knowledge / Chrome ERR_INVALID_HTTP_RESPONSE
« on: August 24, 2018, 04:24:17 PM »
Maybe this will save somebody else an hour of head-scratching...

Something I'm doing on a particular project involves a jquery function using setTimeout with .load to keep refreshing the content of a particular <div>

Worked fine in my first iteration where the function loaded a text file containing the HTML snippets that needed to be updated.

Then I tried switching to having the jquery function call a NetWebPage whose page type is set to XML to have that just return the updated content from a stringtheory object without first saving it to disk as a text file.

Worked fine on firefox and edge.  Chrome errored with the ERR_INVALID_HTTP_RESPONSE

After an hour with friend google I discovered that Chrome refuses to allow such stuff on port 88.  Switched the app to port 80 and all is happy.

Some days I feel my age more than others.... sigh...  ::)

307
Web Server - Ask For Help / Re: Self.PageLen compiling Error
« on: August 21, 2018, 07:35:57 PM »
http://www.capesoft.com/docs/NetTalk10/NetTalk10Upgrade.htm#ChangesRequired
Quote
The PageLen property has been removed. Use self.ThisPage.Length() instead.

308
Web Server - Ask For Help / Re: Service errors with 10.28
« on: August 09, 2018, 07:23:30 AM »
Problems resolved with 10.29 and 3.06.

Thanks, Bruce!

Jane

309
Web Server - Ask For Help / Re: Service errors with 10.28
« on: August 06, 2018, 08:40:19 AM »
BTW, I tested with the basic Xfiles\demo example

adding this to 3.0 works fine:
  OF ?Button:SaveView
      xmlFile.DemoMode = 2
      xmlFile.DemoModeValue = '**value**'
  ...  etc... 

adding it to the same demo example in 3.05 hangs the app.

Jane

310
Web Server - Ask For Help / Re: Service errors with 10.28
« on: August 05, 2018, 06:16:52 PM »
Bruce,

My pressing issue at the moment seems to be that the ExampleResponseBodyXML routine in my web service procedures chokes on the xml.DemoMode = 2 setting.  The browser hangs.  If I click the Graceful Close button on the web server, caption changes to Waiting:1 and it just hangs there forever.

If I set demomode to 0 then it doesn't choke (although its "example" response is actually all the table data.)

------
As for my other problem....

I don't understand the issue with the extra quote marks I was seeing.

As I experimented today, I could recreate the problem by wizarding an app in 10.26, then upgrading to 10.28 and xfiles 3.05.

In that my services are only enabled for GET and I'm doing a full return of the tables involved, I deleted the wizard-generated parameter in the NetWebServiceMethod Settings window for each procedure and that fixed that problem and let me compile.  (Those parameters didn't seem to bother 10.26, for whatever reason.)

I saved the generated source files before (10.26) and after (10.28) and could send them along with the app and dct if you're interested.  But if I'm the only one with this problem it's not worth bothering.
--------

I have a lot to do this week, so I think I'll just roll my VM back to xfiles 3.0 and NT 10.26 and struggle with my upgrade issues a bit later.

FWIW, I'm (still) using EE 10.12349
jfiles 1.69.  messagebox 2.40.  stringtheory 2.84.  winevent 5.18

Cheers,

Jane

311
Web Server - Ask For Help / Re: Service errors with 10.28
« on: August 03, 2018, 05:49:02 AM »
Thanks, Bruce.

We've got a data center move this weekend (scary!!!) so I may not have time until Monday.

Jane

312
Web Server - Ask For Help / Re: Service errors with 10.28
« on: August 02, 2018, 01:20:18 PM »
Rolled back to xfiles 3.00 and now the Services documentation buttons work again (in 10.26)

313
Web Server - Ask For Help / Service errors with 10.28
« on: August 02, 2018, 01:16:49 PM »
So I updated a bunch of stuff.
jfiles to 1.69
stringtheory to 2.84
winevent to 5.18
xfiles to 3.05

Compiled an existing nettalk app.  Didn't test all aspects (about which more in a moment).

Then installed nettalk 10.28.
Now, trying to compile that app gives a bunch of errors. 


These are related to (wizard-generated) service methods.
Looking at specifics, there are a lot of places where quotes seem to have changed.  (Sorry if I missed something in the docs that I need to change.)




Additionally, I tried compiling and running the NT WebService example (77)
It compiles.  But when I click on the button to display service documentation, the server hangs. 


I rolled back to NT 10.26 and my quote errors have gone away.
On my app, the service documentation button still hangs, so that's probably the result of one of the other tool upgrades I did (jfiles, xfiles, stringtheory).

Any suggestions?  (Other than don't update a bunch of stuff at the same time...)

Thanks!

Jane

314
Web Server - Ask For Help / Re: Bootstrap button icons
« on: July 24, 2018, 07:37:35 AM »
Bruce,

I haven't experimented as much as Bill apparently has. 
My testing-hack had the same result as his #2 code.  When that worked, I didn't try any variants.

If it's possible, that would be awesome ;-)

Jane

315
Web Server - Ask For Help / Re: Bootstrap button icons
« on: July 22, 2018, 08:56:57 PM »
Guess that answers my question as to whether there's an easier way... as I'm thinking you'd have found it if there were.  8)

Thanks, Bill!

Jane

Pages: 1 ... 19 20 [21] 22 23