This是其中一頁。
當您單擊表格底部的錯誤圖標時,更多地出現在表格中。然後當你點擊表格中的一個圖標時,出現一個qtip彈出窗口,並通過jquery函數$ .post獲取代碼。我已經在IE,Chrome,Opera和Firefox中測試過它,它工作正常。在ipod/ipad上的Safari瀏覽器中,它不會,然後設備上的開發者控制檯不是非常有用。出現在它(兩次)的一兩件事是:
JavaScript: Error undefined TypeError: 'undefined' is not a function
任何人都知道可能會觸發這一點,如果這涉及到爲什麼AJAX不工作?包含所有這些的腳本是here。
謝謝。
編輯:這是我現在已經更改爲解決它的代碼的一部分。這是一個從
$.post("ajax_requests.php?action=get_error_code", {data:$(this.targetThis).attr('data-errorData')}, function(data) { $(this.qtipThis).find('.code').html(data); $(this.qtipThis).find('.email .link').attr('onclick', ''); $(this.qtipThis).find('.email .link').attr('href', 'mailto:'+errorReportEmail+'?subject=Website Table Error (Error id: '+data+')'); }.bind(this));
該走了(感謝@ raina77ow的答案)
var self = this; $.post("ajax_requests.php?action=get_error_code", {data:$(this.targetThis).attr('data-errorData')}, function(data) { $(self.qtipThis).find('.code').html(data); $(self.qtipThis).find('.email .link').attr('onclick', ''); $(self.qtipThis).find('.email .link').attr('href', 'mailto:'+errorReportEmail+'?subject=Website Table Error (Error id: '+data+')'); });
我曾經在移動設備上縮小版本的jquery有問題(我認爲它拋出了類似的錯誤)。嘗試改變它到完整的一個,看看是否修復它。 – clem
我已經改變了恐怕它仍然拋出同樣的錯誤:( –