ajaxを使用してWebページのコンテンツを変更することはできますか? 私の必要性は、実際に選択肢のオプションを変更することです。 例えば私のx123.com/setting.html
Ajaxを使用してWebページのコンテンツを変更する
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Webpage</title>
<script>
function save_changes() {
//save the selection
}
</script>
</head>
<body>
<select name="" multiple>
<option value="123">123</option>
<option value="456">456</option>
</select>
<input type="button" name="Submit Dude" onclick='save_changes()'>
</body>
</html>
私はx123.com/setting.html
の変化は実際にこの1に反映されるようにx123.com/123.html
からの要求を出すと、現在のページ(x123.com/123.html
)をリロードします。
私の説明が明確でない場合は、
私はその方法を示すブログ記事を持っています... http://events.manzwebdesigns.com /?p = 111 – manzwebdesigns
次のリンクを確認してください。www.w3schools.com/ajax/default.asp http://www.javascriptkit.com/dhtmltutors/ajaxgetpost.shtml – Balanivash