NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Johan van Zyl on April 17, 2014, 12:10:27 PM

Title: NetWebPage - XHTML code in routine - not enough space?
Post by: Johan van Zyl on April 17, 2014, 12:10:27 PM
NT WS 7.39

see attached
www.medxinfo.co.za
click Login | Register | Help

Help is a NetWebPage

I pasted all of the HTML code I created in Visual Web Developer into one routine - but not all of it displays.
Must I split the code up into more that one routine?
After <body>?
Must I paste the css code created by VWD at the top of the HTML page into each routine?
Thx!




[attachment deleted by admin]
Title: Re: NetWebPage - XHTML code in routine - not enough space?
Post by: Bruce on April 18, 2014, 01:11:11 AM
I don't understand the question. But then probably I don't know what it is I'm not seeing.

Generally speaking, if you are wanting to use external html, then it's a good idea to have a working knowledge of the html itself. This is especially true of visual designers which generate really poor html code.

Personally I use a visual designer for static pages, but I edit the html part manually to make sure that the html part is "clean" but still gives me the effect I am looking for

In the case where style sheets are being used (and they should be used) those styles you use need to be included in (one of) your custom style sheets.

cheers
Bruce


cheers
Bruce
Title: Re: NetWebPage - XHTML code in routine - not enough space?
Post by: Johan van Zyl on May 06, 2014, 11:03:12 PM
But how many byes of text can I paste in here?
see attached.
Or must I not use NetWebPage and just call a normal html page?



[attachment deleted by admin]
Title: Re: NetWebPage - XHTML code in routine - not enough space?
Post by: Bruce on May 06, 2014, 11:19:02 PM
presumably the template box does have some sort of limit. If so, just split it over multiple routines, and check that the system calls them one after the other.

If you have a "large block" of HTML though, I'd be tempted to put it in a text file, in the web folder, call it say "waffle.htm" and then include it in the netwebpage as
<!-- Net:f:waffle.htm -->

That way you can edit the text outside the app if you like.
(note you're just pasting the "content" of HTML in the waffle.htm, not a whole page - ie just the "inside the body bit")

Cheers
Bruce