Solved

jquery jeditable data in the flexigrid

Posted on 2008-06-17
3
371 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
  • 2
3 Comments
 
LVL 8

Author Comment

by:newbie27
ID: 21804578
Hello,

I am using attached function to submit data using ajax, I now know which jEditable column has been edited by this function

   function getSelected()
        {
               $("input.chkRefNos:checked").each(
                         function(){ sendRequest( 'yourpage.asp', 'id='+$(this).val()+'&val='+ escape($(".edit_area", $(this).parent().parent().parent()).html()) );}
                  );
        }
     
Can you please assist me in making this function used in the submitForm() so that I can retrieve it on the  "list_save_proxy.asp" page.

thanks for your hlep
0
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 21804699
>>However I wanted to post data only for the row which are selected
Have you bothered to code sendRequest:

function sendRequest(url, data)
{
alert( url );
alert( data);

//here is were you can send and ajax request, which you have already done before
      $.ajax({
        type: "POST",
        url: url,
        data: "sending=" + escape(data);
        success: function(msg)
                    {
                          alert("completed. Data returned" + msg);
                  }
      });

}
0
 
LVL 8

Author Closing Comment

by:newbie27
ID: 31468018
thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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-…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

807 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