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.

Topics - Jane

Pages: [1]
Web Server - Ask For Help / Disconnected app fields?
« on: December 10, 2018, 04:43:53 PM »
I'm starting to lay out a new dictionary for an app which will start out life as a desktop app accessing MS SQL, but which I hope to extend to a disconnected PWA a few months down the road.

Is there any problem with declaring the string fields in the dictionary as CSTRING rather than as STRING?  I would prefer the interaction with the SQL server be as varchars.



Web Server - Share Knowledge / In praise of Fastmem
« on: November 22, 2018, 03:32:06 PM »
Related to NT, in that my experience involves an NT web server.

Capesoft's advertising for this product says "an alternative memory
allocator which is much faster than the default one for specific

I must have one of those situations.

I've built a service that ingests a fairly complicated clump of JSON from an
API.  This runs every 75 seconds.

As I watched the time for the ingestion, I found that the actual network
traffic takes about 10-15 seconds to receive the packet and then 45 to 70
seconds to parse the JSON and dump it into a memory table.

I'm using jFiles (because it has the correct initials!), but tried  cjson
with a bit slower results.

Then...  added Fastmem to my API ingester.  Whoosh.  The pics show it all.

Pretty cool improvement for 20 bucks, I'd say.


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...  ::)

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...)



Web Server - Ask For Help / Bootstrap button icons
« on: July 22, 2018, 05:27:16 PM »
Tell me there's an easy way to do this, please...

For whatever reason, I've wanted to use some bootstrap stuff in an NT app.

Some items are fairly straightforward.

But the standard way of putting icons on buttons is

  • in BS 3 - put a span before the button text with its contents something like
    span class="glyphicon glyphicon-pencil"
  • in BS4 the convention seems to be to use an <i> tag rather than a span.  And since glyphicons are no longer supplied, using another image font such as FontAwesome:
    i class="fas fa-pencil-alt"

This requires putting some HTML right before the button text, rather than just adding a class.

I haven't found a way to make this happen other than carving on a copy of netweb.clw to make TextValue longer and to hard-code around the self.translate(p_text) for anything to do with glyphicons or fontawesome tags. 

And then to kludge around the template-generated code so that the TextValue doesn't go through p_web.Translate before it gets to the button code.

It would seem that having an embed that allows XHTML for the button text would allow inserting the span or the <i>... or is there a way to do this that I'm missing?

Pics are what I've been playing with (only the edit/delete buttons, not the EIP):

Web Server - Ask For Help / timeout question
« on: July 14, 2018, 09:04:39 PM »
NT 10.25

I'm not sure how to use the set:SessionTimeout entry from the Server Settings extension.

Other variables from that extension can be entered in the NetWebServer extension template. 
But the  Session Timeout field on the Settings/Advanced tab seems only to accept a hard-coded time.  If I put in a variable it reverts to the hard-coded value.

Am I misunderstanding how that field is supposed to work?



Web Server - Ask For Help / IP address/port conflict
« on: March 16, 2017, 07:12:33 AM »
I have a nettalk web app running on a server that has multiple IP addresses.

I've restricted the nettalk app to only one address.  And it correctly responds only to that one - ignoring loopback or the other routable IP.

My problem is that I tried installing IIS on that machine on the other IP address.  It refuses to start on port 80.  It will start on another port, or if I kill the nettalk app.

So I'm *guessing* the nettalk app is actually reading port 80 from all the IPs on that machine, but only actually responding to the one that's selected?

I wound up installing IIS on a different server, but wonder whether there's a way to do what I was trying to??

Thanks for any info.

-- Jane

Web Server - Ask For Help / The crimson band
« on: March 17, 2014, 08:18:44 PM »
All right, so the version error in 7.37 exposed me to the "error in site javascript" red band.

But even with that fixed and on prior versions, I've sometimes seen a flash of red.

And on an ancient, excruciatingly slow iphone, when I refresh a browse that banner shows up for about 2 seconds before the page completes and the banner goes away.

Is this something I've done? 


Web Server - Ask For Help / Graceful notice of timed-out session?
« on: March 15, 2014, 02:30:20 PM »
Wise ones,

What's a graceful way to let a user know that his session has timed out?

My bank, for example, starts popping up "if you're idle for two more minutes you'll be logged off" messages.
Then bounces to a login page once they've killed the session.

For a site that doesn't require a login, I'd like to switch to a "need to reconnect" page when it's timed out. 
Otherwise people (such as me) try clicking buttons on the screen 20 minutes later and nothing happens.

Is there something in the NT examples showing this sort of thing... or a thread you can point me at?
Or a suggested approach?



Web Server - Ask For Help / Windows pass-through authentication?
« on: June 19, 2013, 07:34:41 AM »
When running a NetTalk web server on an intranet, is it possible to capture the Windows Active Directory domain user's login name?  (Something like using GetUserName from CWUTIL).

Thanks for any help.

Jane Fleming

Pages: [1]