1 2 3 4 5 6 7function updateCaptcha() { 8 jQuery.ajax({ 9 type: 'GET', 10 cache: false, 11 url: '/cgi-bin/faq/client.pl?action=get_captcha_img&' + new Date().getTime(), 12 success: function(responseText){ 13 jQuery('#pict_key').attr({ 14 value: responseText 15 }); 16 jQuery('#captcha_img').css({'background':'url(/imgs/pictprotect_faq/'+ responseText + '.png) no-repeat'}); 17 }, 18// error: function(){ 19// alert('error'); 20// } 21 }) 22}; 23 24function checkFileSize() { 25 var upload_file_uid = 'file' + Math.floor(Math.random() * 99999); 26 27 new AjaxUpload ('file_attachment', { 28 action: '/cgi-bin/faq/check_filesize.pl?action=upload&upload_file_uid=' + upload_file_uid, 29 name: upload_file_uid, 30 autoSubmit: true, 31 onChange: function(a, b) { 32 //alert(typeof a + typeof b); 33 }, 34 onComplete: function(a, b, c) { 35 //alert(typeof a + typeof b + typeof c); 36 } 37 }) 38}; 39 40jQuery(document).ready(function() { 41 var Form = jQuery('#myForm'); 42 var formAction = Form.attr('action'); 43 44 Form.validate({ 45 submitHandler: function(form) { 46 jQuery(form).ajaxSubmit({ 47 target: jQuery("#result"), 48 success: function() { 49 updateCaptcha(); 50 if (!jQuery(".result").length) { 51 jQuery("#result").wrap("<div class='result'></div>"); 52 } 53 }, 54 resetForm: false, 55 notsuccess: errorAjax, 56 timeout: 3000 57 }); 58 function errorAjax(statusText) { 59 alert('error = '+statusText); 60 } 61 } 62 }); 63 updateCaptcha(); 64 jQuery('#file_attachment').change(function() { 65 checkFileSize() 66 }) 67}); <!--Array 68( 69 [label01] => 0.00000 70 [label02] => 0.00105 71 [label03] => 0.06465 72 [label04] => 0.06466 73 [label05] => 0.06467 74) 75-->
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.