On 3/26/11 11:19 AM, Walter Lee Davis wrote: > Yay! I've been meaning to try out Dashcode again, haven't played with it > since pretty much when it came out.
It seems fairly slick, especially the data source binding, but I can't figure out how to get quite enough control over things; for example, how to reload a data source, or how to determine if it was successfully retrieved. I may just be dense and/or bad at javascript, I'm a kernel hacker not a web hacker. So I'm going back and trying to hand-code things with prototype.js again. :) -Eric > Walter > > On Mar 26, 2011, at 11:59 AM, Eric Sandeen wrote: > >> On 3/25/11 7:24 AM, Walter Lee Davis wrote: >>> Try loading prototype before main.js and see if the problem goes >>> away. Or try wrapping self.animations with $A(), which will return an >>> extended array. >>> >>> Walter >> >> Thanks for the suggestions; loading prototype.js just before main.js >> doesn't help, but loading it before AppleAnimator.js in main.html does. >> Hopefully that won't break much. ;) >> >> Thanks, >> -Eric >> >>> On Mar 25, 2011, at 1:21 AM, Eric wrote: >>> >>>> I'm using Dashcode 3.0.2 on OSX 10.6.6, and trying to write my >>>> first dashboard widget using prototype.js 1.7. >>>> >>>> I've got some things working, but as soon as I mouse over the >>>> running widget, I get a: >>>> >>>> Result of expression 'array' [undefined] is not an object >>>> >>>> I'm not sure how I got to it, but it's in AppleAnimator.js, and >>>> 'array' came from array = self.animations; >>>> >>>> A simple reproducer is: >>>> >>>> Create a new "custom" project. Add prototype.js to the file list. >>>> Add prototype.js to main.html right after main.js Run the project, >>>> mouse over .... boom. >>>> >>>> I'll admit to being a total noob at this, but I can't tell what's >>>> gone wrong here. >>>> >>>> Thanks, -Eric >>>> >>>> -- 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. >>>> >>> >> >> -- >> 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. >> > -- 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.
