2011-07-05 51 views
0

我有一個非常簡單的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調用。

任何示例?由於

乾杯, 清

+1

'utils/support_login?LogMeInRescueResponse = PINCODE_INVALID.php'不太可能找到,因爲您在參數後面有'.php'擴展名。我想你可能是指'utils/support_login.php?LogMeInRescueResponse = PINCODE_INVALID' –

回答

0

服務器查找文件 'utils的/ support_login?LogMeInRescueResponse = PINCODE_INVALID.php'。

我想你應該改變你的請求:

utils/support_login.php?LogMeInRescueResponse=PINCODE_INVALID 

這樣,服務器將尋找support_login.php,如果確有此名稱的服務器上,你不會有這樣的錯誤文件再次。

+0

我不明白。我無法將我的請求更改爲utils/support_login.php?LogMeInRescueResponse = PINCODE_INVALID。因爲我想從https://secure.logmeinrescue.com/Customer/Code.aspx得到響應 – QLiu

+0

請檢查您的secure.logmeinrescue.com/Customer/Code.aspx - 在那裏您可以請求support_login.php – CristiC