Solved

jquery jeditable data in the flexigrid

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
[form-control] Retain values after a POST action 21 72
Glitching Slide Show 19 39
Conformation code 4 35
Submit button if clicked twice submits twice 1 24
This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
Suggested Courses

734 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