Solved

jquery jeditable data in the flexigrid

Posted on 2008-06-15
4
628 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

724 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