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 2 [3]
31
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...  ::)

32
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

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




34
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?

Thanks.

Jane

35
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

36
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? 

Jane

37
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?

TIA

Jane

38
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 2 [3]