Welcome Guest Search | Active Topics | Sign In | Register

Callback Panel ClientAfterExecute Options
Loren Dorez
Posted: Wednesday, July 1, 2009 4:32:02 PM
Rank: Advanced Member
Groups: Member

Joined: 1/9/2009
Posts: 97
Hi,

im getting an error saying "An Error occured while applying the new output. Error Message: Null or not an object".

The JS Function im using is as follows

Code: JavaScript
function AfterExecute(callback, output, extradata)
        {
            var tbsIndex = eo_GetObject('tbsRegistrationWizard').getSelectedIndex();
            alert(tbsIndex);
            alert(output);
            alert(extraData);
        }


Any ideas? the only thing the server side code is doing is chaning the idx of the Tabstrip. And i only get this if i set the Callback ClientAfterExcute to call this Function.
eo_support
Posted: Wednesday, July 1, 2009 4:41:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You are doing it too early. The output has not been applied yet (thus 'tbsRegistrationWizard' has not been re-created yet) when after execute handler is called. Try ClientSideAfterUpdate handler or use setTimeout to delay the execution of your code.

Thanks
Loren Dorez
Posted: Wednesday, July 1, 2009 4:48:34 PM
Rank: Advanced Member
Groups: Member

Joined: 1/9/2009
Posts: 97
Oh ok, i thought the old output was still there. I see it essentially clears itself and then applies the new output. OK I can move the tbsIndex part to after update


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.