I fixed it be defining my variable first (var mlhtml; --> var mlhtml=''; ). Thanks for the help anyway.
On Jun 25, 9:15 pm, kangax <[EMAIL PROTECTED]> wrote: > What exactly are you trying to do? > > - kangax > > On Jun 25, 10:03 pm, Namotco <[EMAIL PROTECTED]> wrote: > > > I changed my code to add the HTML inside of the function. Now my > > problem is the first time it's always undefined and I get that in my > > output: > > "undefined" > > <li>list item 1</li> > > <li>list item 2</li> > > > On Jun 25, 7:40 pm, Namotco <[EMAIL PROTECTED]> wrote: > > > > Put the resulting HTML inside the element $('curMedList'). What > > > should I change? > > > > On Jun 25, 6:36 pm, "Frederick Polgardy" <[EMAIL PROTECTED]> wrote: > > > > > You're assigning the return value of each() to innerHTML, which is the > > > > array > > > > you're iterating over. What are you trying to do? > > > > > -Fred > > > > > On Wed, Jun 25, 2008 at 5:22 PM, Namotco <[EMAIL PROTECTED]> wrote: > > > > > > I'm confused about how to use Template: > > > > > > $('curMedList').innerHTML=[conversion1, conversion2, > > > > > conversion3].each( function(conv){templ.evaluate(conv);}); > > > > > > this outputs "[object,Object],[object,Object],[object,Object]" > > > > > > What am I doing wrong? > > > > > -- > > > > Science answers questions; philosophy questions answers. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---