I have searched high and low on this topic.  I've tried a couple of
the plugins (DOM Popup kit came closer to helping me than anything).
I thought I was getting close, but my problem now is passing
parameters.  Here's what I'm trying to do:

I have a navigation bar with links on it.  I want to popup some of
them, so I tried this:

<script type="text/javascript">
function test()
{
  window.showModalDialog("../note/editornew", ":text => 'Case'",
"center:yes; dialogHeight:600px; dialogWidth:900px");
}
</script>

<%= link_to "Case Notes", {:text => 'Case'}, :onclick => "test()"  %>
|

I need to pass in that "Case" text.  The Note controller evaluates
that param to decide if the note is an Event note or a Case note.  But
I can't access that param in the controller via Javascript.

Why is this so difficult??  Why isn't something SIMPLE like this
available??

<%= link_to "Case Notes",
        {:controller => "note",
        :action => "editornew",
        :text => 'Case'}, \
        :popup => ['Notes', 'width = 800, height = 550', 'resizable =
yes', 'scrollbars = yes', 'modal = true']  %>

If anyone has any ideas or suggestions on how I can get at those
parameters in the controller, or another popup suggestion entirely,
I'd be VERY appreciative.  I'm so frustrated right now.

Thanks much! ~Ali


--~--~---------~--~----~------------~-------~--~----~
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