I''m having problem.
I have music CD, which can have many tracks.
When adding new CD, there are 5 empty track rows to write in, but there
is button MORE TRACKS, which adds more tracks where to write.
page.insert_html :bottom, ''music_tracks'', :partial =>
"track_lines",
:locals => { :id => @tracknr }
page << "tracknr++"
partial:
<div>
<%= select_minute 0, :field_name => ''minute''+id %>:
<%= select_second 0, :field_name => ''second''+id
%>
<%= text_field ''track''+id,
''artist_name'' %>
<%= text_field ''track''+id, ''name''
%>
</div>
I want to have javascript variable that has track count.
How can I retrieve javascript variable, I tried:
x) @tracknr
x) page << "tracknr"
and some more, but I can''t figure out...
Maybe there is better solution?
Thanks!
--
Posted via http://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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---