NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jking on November 17, 2023, 05:10:15 PM

Title: NT 14.04, Web19 example app issue
Post by: jking on November 17, 2023, 05:10:15 PM
Hi Bruce,

     I'm trying to look at the Web19 example app.  I get it compiled but when I run it and use a local browser (127.0.0.1:88) to view it, I see the screen in the attached image web19 server.png.  There is very little code generated when viewing the page source.  In the app itself, the only odd thing I see is it appears to be linking in ClaNetl.lib, as seen in the attached image web19 lib.png.  Is this linking in the "Legacy" version of the NT templates?
     Other example apps and my own production apps link in ClaNet.lib.  Any suggestions about what is wrong here and how to fix?

Thanks,

Jeff King
Title: Re: NT 14.04, Web19 example app issue
Post by: Bruce on November 19, 2023, 11:20:35 PM
Hi Jeff,

Are you hoping for this specific example to show you something? Or are you just browsing examples?
It's not a "common" example, and frankly doesn't really serve any purpose anymore. (It originated in the days when selecting a row in a table could be done multiple ways.)

ClaNetL means "local mode" - the app is set to compile in LIB mode, not DLL mode.

I'll leave you to figure out why the index page seems "thin". It's a case of new settings not being set...

Cheers
Bruce
Title: Re: NT 14.04, Web19 example app issue
Post by: jking on November 20, 2023, 11:08:40 AM
Bruce,

     Thanks!  I did not know ClaNetL means "local mode".  Learned something new today!

     As for the Index page being "thin", I added the following to the XHTML tab:

<!-- Net:PageHeaderTag -->
<!-- Net:PageFooterTag -->

Now the Index page is "fat".

Jeff
Title: Re: NT 14.04, Web19 example app issue
Post by: Bruce on November 20, 2023, 09:25:00 PM
>> As for the Index page being "thin", I added the following to the XHTML tab:

That's one way to do it - but I'm thinking there's an easier way... (hint: look at the template settings for the IndexPage procedure).
Title: Re: NT 14.04, Web19 example app issue
Post by: jking on November 21, 2023, 09:23:01 AM
Bruce,

     I think you mean the Page Settings on the General Tab, where you tick on Include Std Header and Include Std Footer.  Is this correct? 

Jeff
Title: Re: NT 14.04, Web19 example app issue
Post by: Bruce on November 21, 2023, 10:56:21 PM
aye
Title: Re: NT 14.04, Web19 example app issue
Post by: jking on November 22, 2023, 09:15:56 AM
I guess you CAN teach an old dog new tricks!

Jeff
Title: Re: NT 14.04, Web19 example app issue
Post by: Bruce on November 22, 2023, 10:20:34 PM
who you calling old?....
no wait - who are you calling a dog ???
Title: Re: NT 14.04, Web19 example app issue
Post by: jking on November 23, 2023, 04:36:33 AM
Bruce,

     Me, of course!

Jeff