NetTalk Central

Author Topic: Can I create my own web page within the Index page without browse templates?  (Read 4020 times)

pcrafton

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
I am having problems with Javascript errors at some sites, resulting from the Browse template usage. Capesoft is looking at the issue, but while waiting, I can create the web browse page dynamically by looping through the file; creating a queue of entries, which I will use to build my tabe of entries for the user.

Haviing said all of that has anyone done something similar? Any obstacles to doing this? , and specifically where in the Index page do I serve up my page?

regards

Paul Crafton

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
I'm not sure that I understand your question/problem.
You can serve up a html document anywhere you'd like.
Usually, in the clarion-nettalk paradigm, the index page is used like the frame of a windows app so the index uses links either placed directly in the page or in a menu which call other urls.
You can generate html on the fly from a process and call the page at the end of the process.
You can also use packet and sendpacket inside a loop to produce a static browse.

I have used the browse template to display data from a queue by intercepting the process loop in the validate record embed. This seems to work pretty well. You can see that post here -http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=214.0

does this help at all?

chris
Real programmers use copy con newapp.exe

pcrafton

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
Chris:

Thanks for the thoughts.

I created a solution.

I finally omitted several routines in the index page (ie Header and Footer) created empty routines for them and then after the openfiles routine I called a local routine named BuildPage where I create my web page, using my own styles and xhtml and send it. Works exactly like I wanted, excluding all of the javascript code generated when using the nettalk web templates.

Regards

Paul