<div class="edit_tag">
<span id="edit_tag">クリックすると編集可能</span>
<script type="text/javascript">
<!--
new Ajax.InPlaceEditor('edit_tag', 'ajax.php'); // 第 2 引数でフォームの送信先を指定
-->
</script>
</div>
div.edit_tag {
position: absolute;
top: 300px;
left: 300px;
}
Example: ajax.php
<?php $str = $_POST['value']; echo htmlspecialchars($str); ?>
0 件のコメント:
コメントを投稿