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

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

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

304
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

305
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

306
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

307
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

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

309
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

310
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

311
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

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




313
Web Server - Ask For Help / Re: timeout question
« on: July 16, 2018, 10:58:41 AM »
Argh.
My bad for not staying current.

Thanks, Bruce.

Jane

314
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

315
Web Server - Ask For Help / Re: Multi dll upgrade to NT 10.25
« on: June 28, 2018, 08:25:24 AM »
Matthew,

Bruce demonstrates repopulating that template in nettalk webinar # 185 at about the 12 minute point.

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