newbie27
asked on
jquery jeditable data in the flexigrid
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
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
If I had to guess, most likely your submitForm will send your entire form, not just the rows that are selected. With this:
function getSelected()
{
$("input.chkRefNos:checked ").each(
function(){ sendRequest( 'yourpage.asp', 'id='+$(this).val()+'&val= '+ escape($(".edit_area", $(this).parent().parent(). parent()). html()) );}
);
}
sentRequest() is being called with some script name and the 'potential' parameters for that function. So in sendRequest you will need to send an ajax request every time it is called.
function getSelected()
{
$("input.chkRefNos:checked
function(){ sendRequest( 'yourpage.asp', 'id='+$(this).val()+'&val=
);
}
sentRequest() is being called with some script name and the 'potential' parameters for that function. So in sendRequest you will need to send an ajax request every time it is called.
ASKER
Hielo,
I think I am doing something wrong, please can you have a look at this
https://www.experts-exchange.com/questions/23486091/jquery-flexigrid-data.html
http://213.253.134.6/artism/admin/list_admin.asp
when i wanted to view existing list details, by chosing it from the drop down, it is processing for the first time but when I wanted to view another list, its getting the list of record ids back but its not sending it to process to save_proxy.asp
please advice
thanks
I think I am doing something wrong, please can you have a look at this
https://www.experts-exchange.com/questions/23486091/jquery-flexigrid-data.html
http://213.253.134.6/artism/admin/list_admin.asp
when i wanted to view existing list details, by chosing it from the drop down, it is processing for the first time but when I wanted to view another list, its getting the list of record ids back but its not sending it to process to save_proxy.asp
please advice
thanks
Most likely because of the dynamic javascript you are trying to insert. Read my comments on your other problem.
ASKER
I have Hielo but still it is not calling proxy.asp when you chose the list for the second time....
please can you look into this again..
thanks
sam
please can you look into this again..
thanks
sam
ASKER
Heilo,
If you hit this page and try to view the list
http://213.253.134.6/artism/admin/list_admin.asp
it is not working at all, but when I go back create some default cookie list and comes back to this page i can then view any other list for only first time and then it is behaving the same...
please hielo can you look into this
thanks
s
If you hit this page and try to view the list
http://213.253.134.6/artism/admin/list_admin.asp
it is not working at all, but when I go back create some default cookie list and comes back to this page i can then view any other list for only first time and then it is behaving the same...
please hielo can you look into this
thanks
s
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Yes that worked, many thanks for your help Hielo.
I am hoping the jEditable column data will remain the last thing on this page
please can you not advice how to make this function post the value the save_proxy.asp page so that I can save the data correctly in the xml file.
for an instance:
<lists>
<username>test@test.com</u sername>
<listitem>
<listname>test6</listname>
<listnotes>test</listnotes >
<listrefs>
e2007092018174409,e2007092 018105659
</listrefs>
<itemnotes>
notes,changed
</itemnotes>
<last_updated>20080616|18: 07:52</las t_updated>
</listitem>
</lists>
I am hoping the jEditable column data will remain the last thing on this page
please can you not advice how to make this function post the value the save_proxy.asp page so that I can save the data correctly in the xml file.
for an instance:
<lists>
<username>test@test.com</u
<listitem>
<listname>test6</listname>
<listnotes>test</listnotes
<listrefs>
e2007092018174409,e2007092
</listrefs>
<itemnotes>
notes,changed
</itemnotes>
<last_updated>20080616|18:
</listitem>
</lists>
function getSelected()
{
$("input.chkRefNos:checked").each(
function(){ sendRequest( 'yourpage.asp', 'id='+$(this).val()+'&val='+ escape($(".edit_area", $(this).parent().parent().parent()).html()) );}
);
}
ASKER
thanks
ASKER
ASKER
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
function(){ sendRequest( 'yourpage.asp', 'id='+$(this).val()+'&val=
);
}
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
Open in new window