• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 641
  • Last Modified:

jquery jeditable data in the flexigrid

Hello Experts,
I am using the code below to post the jEditable column data via Ajax request. At present it is posting data for all the jEditable columns available in the Flexigrid rows. However I wanted to post data only for the row which are selected.  
Please can someone advice/help in this?
Your help is much appreciated.
Thanks
Sam
0
newbie27
Asked:
newbie27
  • 3
1 Solution
 
newbie27Author Commented:
I have been suggested to use something like this

<a href="#" onclick="getSelected();return false;">Test Checked</a>

but this will only get  the data for the checkbox selected, how would I do if i wanted to get the values for the jEditable column which are completely independent to other columns in the row ?

please advice
thanks

 <script type="text/javascript">
        function getSelected()
        {
                $("input.chkRefNos:checked").each( function(){ sendRequest( 'yourpage.asp', 'id='+$(this).val() );} );
        }
 
        function sendRequest( url, param)
        {
                alert( url + "?"+param );
                //send your ajax request here
        }
        </script>

Open in new window

0
 
hieloCommented:
       function getSelected()
        {
               $("input.chkRefNos:checked").each(
                         function(){ sendRequest( 'yourpage.asp', 'id='+$(this).val()+'&val='+ escape($(".edit_area", $(this).parent().parent().parent()).html()) );}
                  );
        }
0
 
newbie27Author Commented:
thanks
0
 
newbie27Author Commented:
Many Thanks for this Hielo, how should I use this function when I submitting the data using submitForm function please?

thanks
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_23486500.html
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now