John Mcleod
2010-Jan-14  20:01 UTC
returning search result to new.html.erb as textfield value
Hello all,
I have a link on my "new.html.erb" for new projects called "Add
IRB(s).
When clicked, this will produce a jquery ui dialog box rendering a
search form with button.
when I click the search button with a search string, the dialog box
expands to the bottom with search results. Like below...
IRB Search Results
IRB ID   Title                   PI Full Name            Action
00-010   Project Title ...   John Mcleod       Add IRB
The "Add IRB" is a hyperlink to return the IRB ID to the
"new.html.erb"
as a filled text field. I will add a little CSS to remove the border.
Like so...
Associated IRB(s) "Add IRB" <- hyperlink       00-010 (remove)
I can use "<%= link_to_function "remove",
"$(this).up(''.irb'').remove()"
%> " to add the "(remove)" link and remove the number.
I''m just not sure as to how to send the result to the
"new.html.erb".
Thank you for any help.
JohnM
-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.