Hi,

Based on that code, the `this` value in  `_msoSGrid.load` definitely
refers to `_msoSGrid`. What makes you think the context during the
call is wrong? I'd say there's an issue with the actual `load`
function, because the call to it is absolutely fine.

-- T.J.

On Dec 25, 3:00 am, kstubs <[email protected]> wrote:
> Surrounding code and NOTE, this code: _msoS.Get(meetid), it's ajax response,
> triggers the event "MeetQuery:lookup_scores".
>
> document.observe('dom:loaded', function() {
>     var meetid = $('MEET_ID').innerHTML;
>
>     _msoAM = new msoActiveMeets();
>     _msoRE = new msoRecentEvents();
>     _msoS = new msoScores();
>     _msoAMGrid = new
> msoActiveMeetsGridObj($('ACTIVE_MEETS').down('div.container'));
>     _msoREGrid = new
> msoRecentEventsGridObj($('RECENT_EVENTS').down('div.container'));
>     _msoSGrid = new msoScoresGridObj($('SCORES').down('div.container'));
>
>     document.observe('MeetQuery:lookup_meet', function(event) {
> _msoAMGrid.load(event.memo.Json); });
>     document.observe('EventQuery:lookup_event', function(event) {
> _msoREGrid.load(event.memo.Json); });
>     document.observe('MeetQuery:lookup_scores', function(event) {
>         _msoSGrid.load(event.memo.Json); }
>     );
>
>     _msoAMGrid.addEventListener('cellclick',
> _msoAMGrid.Go.bindAsEventListener(_msoAMGrid));
>     _msoREGrid.addEventListener('cellclick', function() { alert('cell
> click'); });
>
>     _msoAM.Get();
>     _msoRE.Get();
>
>     if(meetid > 0)
>         _msoS.Get(meetid);
>
>
>
>
>
>
>
> });

-- 
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 [email protected].
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