NetTalk Central

Author Topic: Blank HTML Page  (Read 2419 times)

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Blank HTML Page
« on: May 19, 2013, 09:05:45 PM »
Hi Bruce

I use a netwebpage with page type as "File". Under the Xhtml tab I added some html code and is working fine.I add some source code in the Processed Code embed point it still works. As soon as I call a procedure out of the embed point, the page displays a blank 'About' screen and does not display my Html code that I added. It seems if it first do the procedure that I call out of the embed point and after completion of the procedure, displays the html. I use this web page to serve different types of reports and need to load the HTML first before starting with the call procedure.

I try all the embed points in the netwebpage without any success. Is there a solution how to display the html page first before calling the procedure and close the webpage after completing the called procedure(report).

Tanks
Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Blank HTML Page
« Reply #1 on: May 19, 2013, 10:45:51 PM »
Hi Johan,

unless you really know what you're doing, setting the page type to "file" and then adding xHTML is probably not going to work.

The point of the "File" page type, is to send a file from the disk. That file will likely have a content-type other than HTML, and so sending HTML will confuse the browser.

If you want to send a file embedded inside HTML, then that's do-able - but then the page would be HTML, not FILE.

If you are creating reports, then presumably the reports will be PDF files? If so (typically) the browser will display the PDF "by itself". So HTML would have no meaning there.

If you want to embed the PDF "onto" a page, then I recommend creating a NetWebForm, not a NetWebPage, and use the "Media" form field type. That has the ability to embed media (including a PDF) onto a page.

cheers
Bruce