NetTalk Central

Author Topic: NetWebPage - XHTML code in routine - not enough space?  (Read 2772 times)

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
NetWebPage - XHTML code in routine - not enough space?
« 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]
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: NetWebPage - XHTML code in routine - not enough space?
« Reply #1 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

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Re: NetWebPage - XHTML code in routine - not enough space?
« Reply #2 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]
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: NetWebPage - XHTML code in routine - not enough space?
« Reply #3 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