On Sep 25, 7:00 am, Hemant Bhargava <[email protected]>
wrote:
> Ok thanks a lot for your replies,
> Just about to finish it with a big smile on my face ..:)
>
> <input type="button" name="adddynamicBox_<%= day %>"
> id="adddynamicBox_<%= day %>" value="Add Schedule"
> onclick="addScheduleRow('<%= day %>', <%= index %>, [<%=
> time_slot_array.join(", ") %>], [<%= clinic_id_array.join(", ") %>],
> ['<%= clinic_name_array.join("', '") %>']) " />
>
> And this line is giving me error:-
> ----
> XML Parsing Error: xmlParseEntityRef: no name
> …="adddynamicBox_Mon" id="adddynamicBox_Mon" value="Add Schedule"
> onclick="add…
> --
>
> I had given name also rit.. Then why error is coming..
>
> Also i am passing a name to javascript function which has "&" in it. Is
> there any way to decode it as well.
>
without seeing the generated html it is only a guess but & characters
need to be escaped.

F
> > Did you mean
> > <label for="qual_checkbox_37">FRCA</label>
> > <input ... />
>
> > Colin
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to