Adsense
Popular Posts
- Code update from PHP 7.4 to PHP 8.1 - PhpSpreadsheet
- MySQL workbench -"Could not decrypt password cache"
- Code update from PHP 7.4 to PHP 8.1 - Worksheet/Iterator.php
- Rendering HTML tags inside textarea
- axios handle blob type data
- Unix Utils and wget in Windows
- increase mysql query speed
- Setup vi syntax for PHP
- Get WAMP running on EC2
- EXCEL return to the next line in the same cell
Friday, March 2, 2018
Undefined Values in JS is not posted In AJAX Requests
In following JS code
function saveLTDrowConv(parent){
pad_id =$('select[name="department1"] option:selected').val();
year =$('select[name="ReviewYear"] option:selected').val();
Deanrecommd = parent.find('.term_CONV_Dean').val();
conv = parent.find('.term_CONV').val();
fte = parent.find('.term_CONV_fte').val();
sfu_id = parent.find('.sfuid').html();
var filter = {
"pad_id":pad_id,
"year":year,
"sfu_id":sfu_id,
"fte":fte,
"Deanrecommd":Deanrecommd,
"conv":conv
}
parent.find('.ltd_CONV_row').attr('disabled','disabled');
$.post("/tracs/ajax/facultyHiringPlan_ajax/saveLTDrowConv", {"post":filter
}, function(data) {
parent.find('.ltd_CONV_row').removeAttr('disabled');
$("div#notice").html('Update successfully.');
$("div#notice").css('display', 'block');
$("div#notice").fadeOut(5000);
});
}
If Deanrecommd is undefined and we post Deanrecommd, the server will not receive
Deanrecommd. i.e no $post['Deanrecommd'] in server. So as to other post variables.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment