Solved

jquery jeditable data in the flexigrid

Posted on 2008-06-15
4
615 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now