PHP Classes

File: examples/example_onchange.php

Recommend this page to a friend!
  Classes of Enéas Gesing  >  AJAX Wrapper  >  examples/example_onchange.php  >  Download  
File: examples/example_onchange.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: AJAX Wrapper
Implement AJAX functionality using Scriptaculous
Author: By
Last change: - Added js function
- Changed directory
Date: 9 years ago
Size: 485 bytes


Class file image Download
include "../Ajax.php";
$ajax = new Ajax();

<title>My Sample</title>



<select onchange="<?=$ajax->remote_function(array('update' => 'options', 'url' => 'example_onchange_data.php')); ?>">
<option value="0">Hello</option>
<option value="1">World</option>

<div id="options">When change combobox, this text will be turn on the value echoed by ajax_onchange_data.php</div>