Forcing a page refresh from a callback

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Forcing a page refresh from a callback

Marco D'Ambros
Hi,

is there a way to force a page refresh from a callcack?

cheers
Marco
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Forcing a page refresh from a callback

cedreek
Hi,

Except if you use ajax, a callback should reload the page...

Do you use ajax there ?

Cédrick

2009/5/19 Marco D'Ambros <[hidden email]>:

> Hi,
>
> is there a way to force a page refresh from a callcack?
>
> cheers
> Marco
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



--
Cédrick
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Forcing a page refresh from a callback

cedreek
if Ajax, add a script with onSuccess: or onComplete: so that you have
one of them:

onClick="window.location.reload()"
onClick="history.go(0)"
onClick="window.location.href=window.location.href"

I think (in 2.9) that you can send #refresh to the generated ajax
script (see JSScript>>refresh).

Another option is to use an updater on a div that encapsulate the full page.

hth,


2009/5/19 Cédrick Béler <[hidden email]>:

> Hi,
>
> Except if you use ajax, a callback should reload the page...
>
> Do you use ajax there ?
>
> Cédrick
>
> 2009/5/19 Marco D'Ambros <[hidden email]>:
>> Hi,
>>
>> is there a way to force a page refresh from a callcack?
>>
>> cheers
>> Marco
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
>
>
> --
> Cédrick
>



--
Cédrick
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside