» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with Prototype + Tutorial

Générer un select via du HTML, du XML ou du JSON - phpinfo.net

Générer un select via du HTML, du XML ou du JSON au moyen d'une requete Ajax sur un script PHP via Prototype.

json: del.icio.us/tag/json

Prototip - Tooltips for prototype

ツールチップの欲しい機能がみんな入ってる

mootools: del.icio.us/tag/mootools

Ajaxian Featured Tutorial: Ajax for Chat

Ever wanted to build a chat module for your application? Jack Herrington shows you how in this tutorial on the IBM Developerworks site.

Learn to build a chat system into your Web application with Asynchronous JavaScript™ + XML (Ajax) and PHP. Your customers can talk to you and to each other about the content of the site without having to download or install any special instant-messaging software.

While not exactly Meebo, the tutorial does provide the foundation for building your own little chat app and uses the powerful Prototype library for it's client-side code.

Here is some of the code that Jack listed in the tutorial. The full code for the tutorial can be found here.

LANGUAGE:
    <?php
    if ( array_key_exists( 'username', $_POST ) ) {
      $_SESSION['user'] = $_POST['username'];
    }
    $user = $_SESSION['user'];
    ?>
    <html>
    <head><title><?php echo( $user ) ?> - Chatting</title>
    <script src="prototype.js"></script>
    </head>
    <body>

    <div id="chat" style="height:400px;overflow:auto;">
    </div>

    <script>
    function addmessage()
    {
      new Ajax.Updater( 'chat', 'add.php',
      {
         method: 'post',
         parameters: $('chatmessage').serialize(),
         onSuccess: function() {
           $('messagetext').value = '';
         }
      } );
    }
    </script>

    <form id="chatmessage">
    <textarea name="message" id="messagetext">
    </textarea>
    </form>

    <button onclick="addmessage()">Add</button>

    <script>
    function getMessages()
    {
      new Ajax.Updater( 'chat', 'messages.php', {
        onSuccess: function() { window.setTimeout( getMessages, 1000 ); }
      } );
    }
    getMessages();
    </script>

    </body>
    </html>

Ajax: Ajaxian

AjaxAndJSON - symfony - Trac

This wiki page will try to show you how to use prototype.js ajax/JSON features to prove symfony is indeed a good choice for a web 2.0 framework.

json: del.icio.us/tag/json

Page 1 | Next >>