Hi, we're exporting a lot of html code within xml, our current method works but it's very messy - far from perfect, is there a better way to do this.
an example of our controller code is html = html + "<img src="/icon/icon_email.gif" onclick="javascript:document.getElementById('detail').style.display='none'; document.getElementById('mailform').style.display='inline'; "/>\n" as you can see we're using the < etc to generate the html required, so the end result is something like <marker html="<img src="/icon/icon_email.gif" onclick="javascript:document.getElementById('detail').style.display='none'; document.getElementById('mailform').style.display='inline'; "/>... so within that xml tag you can see a html= option, and within that option lives all our html. can anyone suggest a cleaner better way to do this? it would really be appreciated. 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---