NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike Grigsby on November 02, 2008, 10:02:58 PM

Title: Duplicating browse and children over and over on page
Post by: Mike Grigsby on November 02, 2008, 10:02:58 PM
Help! All of the sudden I've got my browses with children proc duplicating over and over again on my pages, in some cases causing the app to crap out from the overhead. Any idea where I might start to figure this one out? I've tried copying the newest script files to the web\scripts directory.

I think it's happened either on PR 17 or maybe even before and I just didn't notice it. A file is attached, showing what is happening.

As an update: I copied the app and data files to the example app Web3 and it does the exact same thing.

[attachment deleted by admin]
Title: Re: Duplicating browse and children over and over on page
Post by: Bruce on November 03, 2008, 06:04:27 AM
Hi Mike,

My guess is that in your page you simply have a recursive call.
ie check if you are including the form as a child of itself (or a "child loop") - look for procedures embedded in the xhtml tab, and so on.

Cheers
Bruce

Title: Re: Duplicating browse and children over and over on page
Post by: Mike Grigsby on November 07, 2008, 01:18:38 AM
Bruce, I've whittled this app down to its nubbins. If you log in with UID and PWD of "admin" without quotes, you'll see the Home Page area duplicates over and over (though other lists were too, but I took them out because it's just the home page having problems). I simply can't see anything that would make it duplicate itself over and over.

The program for this app and dct is running at http://204.10.18.17:8181.

If anyone could check me, I've attached a zip file with the App and DCT. Thank you!
Title: Re: Duplicating browse and children over and over on page
Post by: Bruce on November 07, 2008, 07:44:30 AM
Hi Mike,

you need to add your web folder to your example because it contains a number of custom js and html files that your program is using.

Cheers
Bruce
Title: Re: Duplicating browse and children over and over on page
Post by: Mike Grigsby on November 07, 2008, 08:41:59 AM
Thanks Bruce, it's always very late in the evening when I get to this stuff. The new zip is attached with the web directory. Thank you!

[attachment deleted by admin]
Title: Re: Duplicating browse and children over and over on page
Post by: Mike Grigsby on November 11, 2008, 12:16:59 PM
Bruce, did anything look obvious to you from this example?
Title: Re: Duplicating browse and children over and over on page
Post by: Mike Grigsby on November 27, 2008, 02:07:31 AM
I think I've figured out what is causing this problem. Something must have changed in one of the releases, or maybe I missed something. I used to be able to add a child proc to a browse. All of the sudden, each child proc started using its own header and footer, and they didn't used to do that. The result is a new header and footer for each child proc.

Now I have to figure out how to turn off the header/footer for each child proc. So I tried putting two single quotes in under the advanced tab, but now it shows the child proc under the footer, not next to the browse. Any ideas Bruce?
Title: Re: Duplicating browse and children over and over on page
Post by: Mike Grigsby on November 27, 2008, 02:44:20 AM
Okay, I've figure it out. I gave one of the pages the same name as the one calling it. DUH!