Solved

jquery jeditable data in the flexigrid

Posted on 2008-06-15
4
623 Views
Last Modified: 2010-04-21
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
Comment
Question by:newbie27
  • 3
4 Comments
 
LVL 8

Author Comment

by:newbie27
ID: 21788452
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
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 21789193
       function getSelected()
        {
               $("input.chkRefNos:checked").each(
                         function(){ sendRequest( 'yourpage.asp', 'id='+$(this).val()+'&val='+ escape($(".edit_area", $(this).parent().parent().parent()).html()) );}
                  );
        }
0
 
LVL 8

Author Closing Comment

by:newbie27
ID: 31467342
thanks
0
 
LVL 8

Author Comment

by:newbie27
ID: 21789358
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question