Hi I have <div id="sd_flow_items_find"> <% @flow_items ServiceDeskStatusFlow.find_all_by_service_desk_status_id(@sd_ticket.service_desk_status_id) %> <div id="actionOPTIONS" onclick="MM_showHideLayers(''actionOPTIONS'','''',''hide'')"> <table width="100%" border="0" cellpadding=".05em" cellspacing="0"> <% for flow_item in @flow_items %> <tr> <td height="17" onmouseover="pviiClassNew(this,''pageSEARCHOPTION1over'')" onmouseout="pviiClassNew(this,''pageSEARCHOPTION1'')"> <%= link_to_remote "#{flow_item.action_name}", { :before => "javascript:give_reason_for_transfer()", :url => { :action => :edit_service_desk_status, :sd_id => @sd_ticket.id, :status_id => flow_item.flow_item_id} }, :class => "itillink1"%> </td> <% end %> </tr> </table> </div> </div> This is working.What I need is on clicking #{flow_item.action_name}, if that is ''Transfer Ticket'' , then before executing link_to_remote action a modal window should be open say with a description asking the reason for transferring the ticket also this description to be passed with link_to_remote.And only after giving reason that window closed and link_to_remote action executed .Could you please tell me how can i do this?Modal window I have implemented in another part of the project (http://livepipe.net/projects/control_modal/)..But how to join that with this purpose? Thanks in advance Sijo -- 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 -~----------~----~----~----~------~----~------~--~---
Roger Pack
2008-Apr-30 14:46 UTC
Re: To call a modal window before executing link_to_remote
Open a popup and then have the popup get the info then execute a javascript call to the opener window with the info and close the popup. Either that or have an extra div appear magically within the form. -R On Wed, Apr 30, 2008 at 4:05 AM, Sijo Kg <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi > I have > <div id="sd_flow_items_find"> > <% @flow_items > ServiceDeskStatusFlow.find_all_by_service_desk_status_id(@sd_ticket.service_desk_status_id) > %> > <div id="actionOPTIONS" > onclick="MM_showHideLayers(''actionOPTIONS'','''',''hide'')"> > <table width="100%" border="0" cellpadding=".05em" cellspacing="0"> > <% for flow_item in @flow_items %> > <tr> > <td height="17" > onmouseover="pviiClassNew(this,''pageSEARCHOPTION1over'')" > onmouseout="pviiClassNew(this,''pageSEARCHOPTION1'')"> > <%= link_to_remote "#{flow_item.action_name}", > { > :before => "javascript:give_reason_for_transfer()", > :url => { :action => :edit_service_desk_status, > :sd_id => @sd_ticket.id, > :status_id => flow_item.flow_item_id} }, > :class => "itillink1"%> > > </td> > <% end %> > </tr> > </table> > </div> > </div> > > This is working.What I need is on clicking #{flow_item.action_name}, if > that is > ''Transfer Ticket'' , then before executing link_to_remote action a modal > window should be open say with a description asking the reason for > transferring the ticket also this description to be passed with > link_to_remote.And only after giving reason that window closed and > link_to_remote action executed .Could you please tell me how can i do > this?Modal window I have implemented in another part of the project > (http://livepipe.net/projects/control_modal/)..But how to join that with > this purpose? > > Thanks in advance > Sijo > -- > 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 -~----------~----~----~----~------~----~------~--~---
Hi thanks for your reply Sijo -- 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 -~----------~----~----~----~------~----~------~--~---