Scriptaculous suggestion?

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

Scriptaculous suggestion?

Boris Popov, DeepCove Labs (SNN)
Is there a more concise way to express the following:

self updater
 onExpiry: ((SUStream new)
                        nextPutAll: 'window.location.reload();';
                        yourself);
 etc

Thanks!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

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

Re: Scriptaculous suggestion?

Lukas Renggli
> Is there a more concise way to express the following:
>
> self updater
>  onExpiry: ((SUStream new)
>                         nextPutAll: 'window.location.reload();';
>                         yourself);
>  etc

In this particular case the following line would probably do the same:

      html javascript refresh

In general you can write expressions like yours:

      SUStream on: 'window.location.reload();'

I agree, it looks ugly.

The problem is that a String is converted to a JavaScript string per
default, but in this case it is JavaScript code and should not be
escaped. I guess we could add a convertor method to String? Would that
make sense?

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside