1function saveuser(action) { 2 if(0 < $('#tx-srfeuserregister-pi1-name').length) { 3 var name = $('#tx-srfeuserregister-pi1-name').val().trim(); 4 } 5 if(0 < $('#tx-srfeuserregister-pi1-email').length) { 6 var email = $('#tx-srfeuserregister-pi1-email').val().trim(); 7 } 8 if (action == "delete"){ 9 email = $('#tx-srfeuserregister-pi1-email-delete').val().trim(); 10 } 11 var thema_1 = 0; 12 var thema_2 = 0; 13 var thema_3 = 0; 14 var thema_4 = 0; 15 var thema_5 = 0; 16 if ($('#tx-srfeuserregister-pi1-module_sys_dmail_category-3').prop('checked') === true){ 17 thema_1 = 1; 18 } 19 if ($('#tx-srfeuserregister-pi1-module_sys_dmail_category-4').prop('checked') === true){ 20 thema_2 = 1; 21 } 22 if ($('#tx-srfeuserregister-pi1-module_sys_dmail_category-5').prop('checked') === true){ 23 thema_3 = 1; 24 } 25 if ($('#tx-srfeuserregister-pi1-module_sys_dmail_category-6').prop('checked') === true){ 26 thema_4 = 1; 27 } 28 if ($('#tx-srfeuserregister-pi1-module_sys_dmail_category-7').prop('checked') === true){ 29 thema_5 = 1; 30 } 31 if ($('#tx-srfeuserregister-pi1-module_sys_dmail_category-8').prop('checked') === true){ 32 thema_6 = 1; 33 } 34 var values = { 35 "action": action, 36 "name": name, 37 "email": email, 38 "thema_1": thema_1, 39 "thema_2": thema_2, 40 "thema_3": thema_3, 41 "thema_4": thema_4, 42 "thema_5": thema_5, 43 "thema_6": thema_6 44 }; 45 var jsonString = JSON.stringify(values); 46 $.ajax({
47 type: "POST", 48 url: "/nl_register.php", 49 data: { 50 jsonObject: jsonString 51 }, 52 //success: onsuccess(response) 53 success: function(response) { 54 //alert(response); 55 $('#phpresponse').html(''); 56 $('#phpresponsedelete').html(''); 57 if (action == "delete"){ 58 $('#phpresponsedelete').html(response); 59 } 60 else{ 61 $('#phpresponse').html(response); 62 } 63 } 64 }); 65} 66function onsuccess(response) { 67 if (action == "delete"){ 68 $('#phpresponsedelete').html(response); 69 } 70 else{ 71 $('#phpresponse').html(response); 72 } 73}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.