Can you post your entire observeField() code? On 11/13/09, lauraw <[email protected]> wrote: > Okay, bear with me ... I'm learning cake, javascript, and ajax all at > the same time :-) ... and prototype > > I added 'loaded' for observeField() and the javascript code to check > the length of the select element > > if ( $("pstyle_sel").length == 0) > $("style").hide(); > > this kind of works. The first time I select something that doesn't > have styles, it doesn't hide the row. Next I selected something that > did have styles and it HID THE ROW. It's like it's seeing the data > from the previous ajax request, like it's one step behind? > > I'm using 'loaded' instead of 'complete' because when I used > 'complete' my ajax loading indicator just kept displaying even though > the request was done. > > Any ideas on why my javascript is lagging? Or have you seen this > continual ajax loading indicator when using 'complete'? > > Thanks, guys for your input! > > -- > > You received this message because you are subscribed to the Google Groups > "CakePHP" 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/cake-php?hl=. > > >
-- You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=.
