1function Mawik_DisplayError(Error) 2{ 3 alert(Error.message ? Error.message : Error); 4} 5 6function Mawik_DisplayAjaxError(Error, Handle) 7{ 8 var Message = Handle.responseText.replace(/(<([^>]+)>)/ig, ""); 9 10 Mawik_DisplayError((Message.length > 0) ? Message : Error) 11} 12 13function GoToMawik(FormId, PageId) 14{ 15 try 16 { 17 jQuery.ajax( 18 { 19 url: "/mawik_create_token.php" + ((FormId != null) ? ("?fid=" + FormId) : "") + ((PageId != null) ? (((FormId != null) ? "&" : "?") + "pid=" + PageId) : ""), 20 type: "post", 21 contentType: "application/json; charset=utf-8", 22 dataType: "json", 23 data: null, 24 success: function (Data, Status, Handle) 25 { 26 try 27 { 28 if(Data == null) throw "Ogiltig respons!"; 29 if(Data.Error != null) throw Data.Error; 30 if(Data.Url != null) window.location.href = Data.Url; 31 } 32 catch(Exception) 33 { 34 Mawik_DisplayError(Exception); 35 } 36 }, 37 error: function (Handle, Status, Error) 38 { 39 try 40 { 41 Mawik_DisplayAjaxError(Error, Handle); 42 } 43 catch(Exception) 44 { 45 Mawik_DisplayError(Exception); 46 } 47 } 48 }); 49 } 50 catch(Exception) 51 { 52 Mawik_DisplayError(Exception); 53 } 54}
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.