PHP Classes
Icontem

File: examples/example_onchange.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Enéas Gesing  >  AJAX Wrapper  >  examples/example_onchange.php  
File: examples/example_onchange.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: AJAX Wrapper
Implement AJAX functionality using Scriptaculous
 

Contents

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

<html>
<head>
<title>My Sample</title>

<?=$ajax->js('../js/');?>

</head>
<body>

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

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

</body>
</html>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products