Forum Moderators: open
Ofcourse, this message was only displayed with a page refresh, ie;
<div id="returnMessage">
<?php if($error){ echo '<h4>Error-'.$error.'</h4>';}?>
</div>
I've put a new ajax request in my form tag, onsubmit, which I can see with firebug is posting all of my form data correctly
onsubmit="new Ajax.Request('widgetsets.php',{asynchronous:true,parameters:Form.serialize(this)}); return false;"
I would essentially like the div "returnMessage" to update once a post has been processed, without reloading the rest of the page.
Is this possible?
I've been playing around with it for a while, trying things such as
onComplete:$('returnMessage').update('<?php echo $error;?>')