Hi,
Thanks for keeping the SeasideAsync package going! I am finding the package very helpful.
I have loaded SeasideAsync-mb.2 and came across a weird scenario.
I have a little log file viewer that basically updates the display every x seconds with the new log file contents. I use refreshDivWith:every: to achieve this. The file stream is basically written to the display like this:
renderStream: aStream on: html
aStream reset. [ aStream atEnd ] whileFalse: [ | aLine | aLine := aStream nextLine. html text: (aLine copyWithoutAll: {Character cr. Character lf}); break ]
In Mozilla my output looks like it always did:
Log file line 1 Log file line 2 Log file line 3 Log file line 4 Log file line 5
In IE and Opera I now have an empty line after every line:
Log file line 1
Log file line 2
Log file line 3
Log file line 4
Log file line 5
This can become a little bit anoying. I have a feeling this behaviour has something to do with the change in the new version that replaces every " " with " ", but I am not sure.
Any ideas on getting IE and Opera not to put a new line after every line?
Thank you,
Mart-Mari
-----Original Message----- From: Michel Bany [mailto:m.bany@wanadoo.fr] Sent: 30 Oktober 2005 08:38 nm To: renggli@iam.unibe.ch; The Squeak Enterprise Aubergines Server - general discussion. Subject: Re: [Seaside] LiveUpdates and Request for Merging :-)
Lukas Renggli a écrit :
Well, I'm unlikely to release any new versions of SeasideAsync myself
- my focus has moved to the Scriptaculous package. So I suggest you
just run with it, though it would be good to coordinate with the others (esp. Michel) that are working in that area.
Okay, I published my fixes as proposed to SeasideAsync-lr.2. I will check out Scriptaculous again, probably this is a better way to go ...
And I published SeasideAsync-mb.3. This gives life to checkboxes, handles <script> from live callbacks, handles nested live callbacks and provides support for updating an arbitrary number of areas of the html document.
Enjoy, Michel.
_______________________________________________ Seaside mailing list Seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
This can become a little bit anoying. I have a feeling this behaviour has something to do with the change in the new version that replaces every " " with " ", but I am not sure.
Any ideas on getting IE and Opera not to put a new line after every line?
This sounds like a wrong behavior in the browser where the sequence of tags <br></br> is treated as two consecutive <br> tags.
I added a circumvention for it and published it as SeasideAsync-mb.3.
While at it I did some refactorings and added two methods #divNamed:with:refreshWith:every: #spanNamed:with:refreshWith:every: That should allow you to code something like this html divNamed: 'sys-log' with: [html renderLogOn: html] refreshWith: [ :text :h | h renderLogOn: html] every: x seconds. where the div has also some contents during normal rendering.
Enjoy, Michel.
Michel Bany wrote:
This sounds like a wrong behavior in the browser where the sequence of tags <br></br> is treated as two consecutive <br> tags.
Yes, I've found this. Now I always use <br />, which seems to work everywhere and is valid XML.
../Dave
seaside@lists.squeakfoundation.org