[Masterview-users] conditionally hiding a tag and form_remote with parameter

Nico Ritsche nico.ritsche at googlemail.com
Mon Dec 24 03:52:33 EST 2007


Hi,

I'm trying to conditionally hide a div tag. The only way I could get it
working
is like this:

<div mv:if="!@open_tasks.empty?">

    *some html

*</div>

<div style='display:none' mv:else="">

*    same html*

</div>

However, I don't like it, as I have to repeat the same html twice. Is there
a
better way of doing it?

Another thing: Can I create a form_remote_tag with a parameter using
mv:form_remote? So far I only made it working using form_remote_tag
directly like this:

     {{{ form_remote_tag :html => { :id => 'order_form_open'  } do}}}

But I obviously like to avoid this as it shows up on the page.

Kind Regards,
Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/masterview-users/attachments/20071224/ff8a5d88/attachment.html 


More information about the Masterview-users mailing list