Ajaxpushing - This is only a demo

Simple AJAX-Pushing framework provided by www.kumbe.it

Donwload / more info

Demo

Initial content of div1
Initial content of div2
Initial content of div3
Initial content of div4

How it works:

Supported commands

alert: how to generate an alert event on client side

<action type="alert">
<parameters>
<parameter type="text"><![CDATA[your alert message]]></parameter>
</parameters>
</action>

update: how to generate an ajax request into a div of your page

(it works only with page into the same 2ND domain, it's a browser security limitation)
<action type="update">
<parameters>
<parameter type="url"><![CDATA[the AJAX url request]]></parameter>
<parameter type="div"><![CDATA[the DIV where to place the result]]></parameter>
</parameters>
</action>

write: how append or change the content of a DIV in your page (you can also change che css class)

<action type="write">
<parameters>
<parameter type="content"><![CDATA[the content that you want to write]]></parameter>
<parameter type="div"><![CDATA[the DIV where you want to write]]></parameter>
<parameter type="css"><![CDATA[the style you want to apply]]></parameter>
<parameter type="method"><![CDATA[append/overwrite]]></parameter>
</parameters>
</action>

execute: how execute some javascript command on your page

<action type="execute">
<parameters>
<parameter type="content"><![CDATA[some javascript]]></parameter>
</parameters>
</action>