01globalnet
09-24-2008, 10:13 AM
Hello
do you know any ajax lib that can fill an element with any html code?
Example
<div id="container">
</div>
<a href="#" onclick="AJAX_LIBRARY_COMMAND_UPDATE('container', '/server_url.php')">update element</a>
server side script, let's say in php
<?php echo '<p>Test title</p><div>some content</div><select name="test_select"><option value=""></option></select>'; ?>
So simple, just accept raw html and update/fill a container - no need for data exchange in xml, json, no need for a special javascript function to handle the returned data.
Thank you.
do you know any ajax lib that can fill an element with any html code?
Example
<div id="container">
</div>
<a href="#" onclick="AJAX_LIBRARY_COMMAND_UPDATE('container', '/server_url.php')">update element</a>
server side script, let's say in php
<?php echo '<p>Test title</p><div>some content</div><select name="test_select"><option value=""></option></select>'; ?>
So simple, just accept raw html and update/fill a container - no need for data exchange in xml, json, no need for a special javascript function to handle the returned data.
Thank you.
