1

我遇到了問題Jquery 1.8.3IE8我遇到的問題是,目前我打開網頁與IE8我有下一個錯誤和我不能提交表單:IE8的Jquery 1.8.3問題:語法錯誤行2圖表13575

語法錯誤的Jquery 1.8.3.js Sintax錯誤行:2字符:13575

我想我的問題是我的JavaScript,但我不知道是什麼我很想念:

JavaScriptWeb Page

提前致謝! :d

編輯

該網頁作品在IE >= 10

+0

http://forum.jquery.com/topic/empty-div-issue-in-ie8 –

+0

爲什麼所有的教育網站都使用該攝影女孩?大聲笑 – epascarello

+1

http://stackoverflow.com/questions/879137/problem-with-jquery-in-internet-explorer-8 –

回答

0

你的問題出現了,因爲你的function_form輸出是IE8和其他瀏覽器不同。在IE中你得到迴應像這樣的(錯誤500這是HTML):

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
<html><head> 
<title>500 Internal Server Error</title> 
</head><body> 
<h1>Internal Server Error</h1> 
<p>The server encountered an internal error or 
misconfiguration and was unable to complete 
your request.</p> 
<p>Please contact the server administrator, 
[email protected] and inform them of the time the error occurred, 
and anything you might have done that may have 
caused the error.</p> 
<p>More information about this error may be available 
in the server error log.</p> 
<hr> 
<address>Apache/2.2.15 (CentOS) Server at carlyleonline.scalahed.com Port 80</address> 
</body></html> 

,然後它失敗: var datas = $.parseJSON(data.responseText);

,另一方面其他瀏覽器返回適當的JSON:

{"errores": {"entidad": ["Este campo es obligatorio."], "fecha_nacimiento": ["Este campo es obligatorio."], "apellido_paterno": ["Este campo es obligatorio."], "carlyle_lic1": ["Seleccione al menos una licenciatura."], "celular": ["Proporcione un n\u00famero telef\u00f3nico."], "nombre": ["Este campo es obligatorio."], "email": ["Este campo es obligatorio."]}} 

你能告訴我們你的邏輯確定響應應該是json還是web服務器錯誤?