Hi Bruce, thanks for the changes! Help quite a bit...
Ok. Now this works great when I use the sort header on the browse. Calls browseTable.sort, which calls browseTable.sv and calls browseTable.showbusy. Then hidebusy gets called when the response is returned.
HOWEVER, I'm using a form with fields that reset the browse below it (filtering mechanism). The problem here is that each field's onchange event calls sv - which of course does not call showbusy. OK, so I add javascript code in the template for that field's onchange to show the busy manually. Now the sv call gets overwritten with my own onchange code plus nextfocus() call. Now this does not call sv, which of course, doesn't do a ajax request, thereby just not working.
I'm also wondering why you have showbusy within an object, whereas hidebusy outside it. There should only be one element for busy, regardless of the number of browses on a page.
Perhaps this can be moved out of the object. And then the call to showbusy within the public sv call. You could also delay showbusy with a timer - no response after .5 to 1 second - call showbusy. For those really quick requests, don't show it.
Another option is to prepend the template set onchange code for the field to the existing code you generate instead of replacing it.
For now, I'm going to try a few things - all of which require changes to nettalk source at some point.
Thanks!
Hi,
I've moved that code into it's own function for PR30 as you suggest.
Incidentally the location of the graphic is governed by CSS, so you can change it if you like.
cheers
Bruce