I think you'd be better off asking this in the Ruby on Rails help
mailing list:
http://groups.google.com/group/rubyonrails-talk
This mailing list is for discussing Prototype.
Hope this helps,
--
T.J. Crowder
tj / crowder software / com
On Jun 3, 9:40 am, skg <[EMAIL PROTECTED]> wrote:
> Hi
> In the view I have link_to_remote as below
> <%= link_to_remote( "Select",
> {
> :update=>"div_inside_transfer_reason_search_sd",
> :before=>"checkgroupselected($
> ('sd_ticket_primary_assignee_group_id'));",
> :url =>{ :controller => 'popup', :action
> =>'transfer_reason',:sd_ticket=>sd_ticket,},
> :with =>"'transfer_reason='+$('transfer_reason'+#{div_no}).value '&' +
> 'primary_group_id='+$('sd_ticket_primary_assignee_group_id').value",
>
> }) %>
>
> in the :before i am calling the javascript to check whether the value
> sd_ticket_primary_assignee_group_id is empty or not..What i need is if
> that field is not empty only controle goes to the action
> transfer_reason...Otherwise that is if it is empty I have to show a
> hidden div..And i tried javascript like
> <script>
> function checkgroupselected(group_id)
> {
> if(group_id.value==null || group_id.value=="")
> {
> return false;
> }
>
> }
> </script>
>
> But is not working...Could you please tell me where the reason is?Also
> is there any other method as a solution?
>
> Thanks in advance
> Sijo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---