我有一個非常簡單的webform;如何將簡單表單發佈爲AJAX調用
<form name="logmeinsupport" action="https://secure.logmeinrescue.com/Customer/Code.aspx" method="post">
<span>Enter your 6-digit PIN code: </span><input type="text" name="Code" /><br />
<input type="submit" value="Connect to technician" />
</form>
在logmeinrescue方面,將發佈錯誤代碼回網址:
像:http://tomtom-uk--tst2.tomtom.com/app/utils/support_login?LogMeInRescueResponse=PINCODE_INVALID
然而,我們的服務器安裝程序將它解釋爲在Web服務器的網頁,因此,我得到404錯誤:
404找不到網頁
頁 'utils的/ support_login LogMeInRescueResponse = PINCODE_INVALID.php?' W因爲沒有找到。
對於我們的基礎架構團隊來說,改變它並不是那麼容易。我想知道是否可以使用Ajax回調函數來獲取響應。我認爲困難在於跨服務器ajax調用。
任何示例?由於
乾杯, 清
'utils/support_login?LogMeInRescueResponse = PINCODE_INVALID.php'不太可能找到,因爲您在參數後面有'.php'擴展名。我想你可能是指'utils/support_login.php?LogMeInRescueResponse = PINCODE_INVALID' –