With tacos, you can easily refresh a part of your page.
Create the next div:
<div jwcid="[EMAIL PROTECTED]" id="mycontent">
... show whatever you want here
... you can even use the If component to output javascript that will
cause a page reload
</div>
and later on (at the end of your page) add
<script>
refr = function(){
eval(<span jwcid="@tacos:Refresh"
updateComponents="ognl:{'mycontent'}"/>);
setTimeout(refr, 5000);
}
refr();
</script>
The tacos:Refresh components outputs the javascript to refresh the given
part
, you use eval to execute it
and you add a timeout to have the whole process re-executed every 5 secs.
James Sherwood wrote:
> Hi all,
>
> I am trying to make a page talk to the server without refreshing the
> page. What I am actually trying to do is to create a way for the
> server to tell the page to refresh.
>
> I have been looking at tacos with ajax but so far I cant even get it
> working:(
>
> Any ideas would be greatly appreciated,
> Thanks,
> James
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]