AW: [Rails-spinoffs] handler has no properties Error

Andreas Franke
2007-11-14T10:00:53Z

Had the same prob in following code:

//On initialize is an ajax-call (async) witch fills up
//the xxx.Recordset
WGMT = new JSMasterTable(''Warengruppenliste'');

//here came the Message WGM.Recordset has no properties
alert (WGMT.Recordset[3].Bezeichnung);

the prob was that WGM.Recordset was called BEFORE the async ajax-call was
finished (WGMT.Recordset was null)!

I changed the ajax-call to work in sync and all worked fine.

Hope I could show a reason why...

Andreas

-----Ursprüngliche Nachricht-----
Von: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
[mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] Im Auftrag
von
blake.acheson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Gesendet: Dienstag, 13. November 2007 22:31
An: Ruby on Rails: Spinoffs
Betreff: [Rails-spinoffs] handler has no properties Error


Ever since upgrading to 1.8 I am getting the following error in
FireFox.

handler has no properties
handler.call(element, event)

This is happening when using ajax calls.

No code was changed, I only updated scriptaculous. 1.7 beta did not
produce this error.

Anyone else experiencing this?