Solved

jquery jeditable data in the flexigrid

Posted on 2008-06-17
3
370 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

832 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