Forum: Ruby on Rails need javasrcipt help

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
87303c28b23af9aa69831b6bd156fdb0?d=identicon&s=25 Ruhul Amin (tuhin_cse99)
on 2007-05-03 14:13
    I have two button in my Rails page. one is submit and other is
 for submit button, I use:
<%= submit_tag "submit" %>

In the case of delete button I place a 'onclick' javascript function to
call my 'set_value' function,

<script language="javascript">
  function  sel_value(){
  var command_del=confirm('Really?');
      var  cell_no=document.forms[0].selcell_id.value;
        //I want to open the 'delete_data.rhtml' page here where the
        // controller name is 'data_trvs' and action is 'delete_data'
        // the have to send the value of cell_no in the controller to


In that way I want to open delete_data.rhtml page and send the cell_no
variable in the 'delete_data' controller method.

please help me in syntax of the code.

This topic is locked and can not be replied to.