NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: pcrafton on October 25, 2007, 07:06:28 AM

Title: Can I create my own web page within the Index page without browse templates?
Post by: pcrafton on October 25, 2007, 07:06:28 AM
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
Title: Re: Can I create my own web page within the Index page without browse templates?
Post by: ccordes on October 25, 2007, 09:35:23 AM
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 (http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=214.0)

does this help at all?

chris
Title: Re: Can I create my own web page within the Index page without browse templates?
Post by: pcrafton on October 25, 2007, 11:14:33 AM
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