Hello,

I refactored some previously working code to take advantage of
Prototype classes and now this code seems to fail for no apparent
reason. Within a class method I've included a call to the request
method of a form object. If I step through the code the request is
eventually sent from the request method of Ajax.base and the proper
results are returned, but my onComplete function is never called.

I've observing the behavior via Trace w/ Firefox 3.0 and Firebug, but
I am getting the same results with IE7 & Chrome.

I tried eliminate the call to form.request and using AJAX.Request
directly, but the results are the same.

The only change from when it was working to now is I've taken a
straight function definition and changed it to use Class.create. The
code in question follows. Does anyone have any ideas on this?

TIA

F1UI=Class.create({
        ShowDelay: function(target) {
                if (arguments.length==1) {
                        $(target).update('<p align="center"><img border="0" 
src="images/
ajax-loading.gif"></p>');
                }
                else {
                        $(F1.mainBody).update('<p align="center"><img border="0"
src="images/ajax-loading.gif"></p>');
                }
        },
        UpdateContent: function(tcDocument,tcDate) {
                // Hide Modalbox if present. Testing for it's presence can 
generate
                // errors.
                try {
                        Modalbox.hide();
                }
                catch(error) {
                // ingore any errors
                }

                this.ShowDelay();
                new Ajax.Updater(F1.mainBody,'showcontent.afp?doc=' +
escape(tcDocument));
                window.location.hash = tcDocument;
                this.GetSideBar(tcDocument);
                document.F1CMSContentId=tcDocument;
        }
})
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to