[Seaside] Re: Differences in calling render: from ajax?

Nick Ager nick.ager at gmail.com
Mon Aug 16 13:08:15 UTC 2010


>
>
>
> Hmmm - how to safely push a page reload, my attempt with:
>
> aContext := self requestContext.
> anActionUrl := aContext request uri.
> ^aJScript goto: anActionUrl withoutQuery
>
> or
>
> ^aJScript refresh
>
> both cause my image to hang! (even Cmd-. doesn't work).
>
>
if it's javascript you're using to force a reload, you can try:

^ 'window.location.reload();'

or more brute force:

^ 'window.location.href= "', self requestContext request uri withoutQuery
greaseString, '"'    [untested]


- I don't know if there are any Smalltalk javascript mappings for these.

Nick

https://developer.mozilla.org/en/DOM/window.location
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100816/82a8cb9e/attachment.htm


More information about the seaside mailing list