VASmalltalk 8.0.2 and autoload of WWW-documents

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

VASmalltalk 8.0.2 and autoload of WWW-documents

marten
In my demo application I changed my updateRoot: method to introduce an
auto reload of a page of my Seaside application. I added the following
code to my "updateRoot:" method:

[code]
anHtmlRoot meta
   responseHeaderName: 'refresh' ;
   content: 1 greaseString
[/code]

and guess what !? It works ! BUT only until I open another browser and
start another session on that seaside application or just query the
startup seaside page on that running Smalltalk server.
Then the browser with the autoload running stops updating and shows only
the sourcecode of that page.

Any idea how to implement an autoload in another way or how to fix this
or is this a specific VA problem !?
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: VASmalltalk 8.0.2 and autoload of WWW-documents

sebastianconcept@gmail.co
I can think a way to do it but it'll require javascript



On Nov 11, 2010, at 6:40 PM, Marten Feldtmann wrote:

In my demo application I changed my updateRoot: method to introduce an auto reload of a page of my Seaside application. I added the following code to my "updateRoot:" method:

[code]
anHtmlRoot meta
 responseHeaderName: 'refresh' ;
 content: 1 greaseString
[/code]

and guess what !? It works ! BUT only until I open another browser and start another session on that seaside application or just query the startup seaside page on that running Smalltalk server.
Then the browser with the autoload running stops updating and shows only the sourcecode of that page.

Any idea how to implement an autoload in another way or how to fix this or is this a specific VA problem !?
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


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

Re: VASmalltalk 8.0.2 and autoload of WWW-documents

marten
In reply to this post by marten
It happens in an environment where Seaside is behind an Apache 2.2
(Windows 7 Home/64). It may be therefore only some kind of configuration
problems of Apache or IP problems on my Home-version of Windows 7 ?.

I will check this with Pharo and Apache 2.2.


Am 11.11.2010 21:40, schrieb Marten Feldtmann:
>
> and guess what !? It works ! BUT only until I open another browser and
> start another session on that seaside application or just query the
> startup seaside page on that running Smalltalk server.
> Then the browser with the autoload running stops updating and shows
> only the sourcecode of that page.
>

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

Re: VASmalltalk 8.0.2 and autoload of WWW-documents

Philippe Marschall
In reply to this post by marten
2010/11/11 Marten Feldtmann <[hidden email]>:

> In my demo application I changed my updateRoot: method to introduce an auto
> reload of a page of my Seaside application. I added the following code to my
> "updateRoot:" method:
>
> [code]
> anHtmlRoot meta
>  responseHeaderName: 'refresh' ;
>  content: 1 greaseString
> [/code]
>
> and guess what !? It works ! BUT only until I open another browser and start
> another session on that seaside application or just query the startup
> seaside page on that running Smalltalk server.
> Then the browser with the autoload running stops updating and shows only the
> sourcecode of that page.
>
> Any idea how to implement an autoload in another way or how to fix this or
> is this a specific VA problem !?

What's the problem you're trying to solve? Automatically reloading the
entire page is often not the best solution.

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

Re: VASmalltalk 8.0.2 and autoload of WWW-documents

marten
Oh, I'm just playing around to get to know, what can be done - and I
know, that there might
be managers sitting in front of my system tired to press the refresh
button and perhaps in an environment, where Javascript is not
available/not allowed.

Am 12.11.2010 07:33, schrieb Philippe Marschall:
> What's the problem you're trying to solve? Automatically reloading the
> entire page is often not the best solution.
>

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

Re: VASmalltalk 8.0.2 and autoload of WWW-documents

Julian Fitzell-2
In reply to this post by marten
That sounds weird... it shows the *source*?

On Thu, Nov 11, 2010 at 8:40 PM, Marten Feldtmann
<[hidden email]> wrote:

> In my demo application I changed my updateRoot: method to introduce an auto
> reload of a page of my Seaside application. I added the following code to my
> "updateRoot:" method:
>
> [code]
> anHtmlRoot meta
>  responseHeaderName: 'refresh' ;
>  content: 1 greaseString
> [/code]
>
> and guess what !? It works ! BUT only until I open another browser and start
> another session on that seaside application or just query the startup
> seaside page on that running Smalltalk server.
> Then the browser with the autoload running stops updating and shows only the
> sourcecode of that page.
>
> Any idea how to implement an autoload in another way or how to fix this or
> is this a specific VA problem !?
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: VASmalltalk 8.0.2 and autoload of WWW-documents

marten
Yes, the answer (about 41KByte) is shown in the browser - but the result
is NOT rendered ....

The shown document source starts with:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title>Seaside</title><meta http-equiv="Content-Type" content="text/html;charset=utf-8"/><meta http-equiv="Content-Script-Type" content="text/javascript"/><script type="text/javascript" src="/js/prototype.js"></script><script type="text/javascript" src="/js/scriptaculous.js">

....


and ends with:


{new Ajax.Request("/esystem",{"parameters":["_s=Po-qu-Sg34Iv0apG","_k=fCLCkaEnjhUy066P","132"].join("&")});};/*]]>*/</script></body></html>


therefore I get the impression, that nothing is missing. Its independent
of the used browser and there are indications that it has to do with
Apache .... the error.log of Apache tells me:

[Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] (OS
10054)Eine vorhandene Verbindung wurde vom Remotehost geschlossen.  :
proxy: error reading status line from remote server 127.0.0.1:9345
[Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] (OS
10054)Eine vorhandene Verbindung wurde vom Remotehost geschlossen.  :
proxy: error reading status line from remote server 127.0.0.1:9345
[Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] proxy: Error
reading from remote server returned by /esystem
[Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] proxy: Error
reading from remote server returned by /esystem


Am 12.11.2010 10:50, schrieb Julian Fitzell:
> That sounds weird... it shows the *source*?
>

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

Re: VASmalltalk 8.0.2 and autoload of WWW-documents

Julian Fitzell-2
Hm... I don't have time to debug at the instant, I'm afraid. If nobody
else jumps in, and if you can reproduce consistently, could you file
an issue in the tracker so it doesn't get lost?

Julian

On Fri, Nov 12, 2010 at 10:12 AM, Marten Feldtmann
<[hidden email]> wrote:

> Yes, the answer (about 41KByte) is shown in the browser - but the result is
> NOT rendered ....
>
> The shown document source starts with:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html
> xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
> lang="en"><head><title>Seaside</title><meta http-equiv="Content-Type"
> content="text/html;charset=utf-8"/><meta http-equiv="Content-Script-Type"
> content="text/javascript"/><script type="text/javascript"
> src="/js/prototype.js"></script><script type="text/javascript"
> src="/js/scriptaculous.js">
>
> ....
>
>
> and ends with:
>
>
> {new
> Ajax.Request("/esystem",{"parameters":["_s=Po-qu-Sg34Iv0apG","_k=fCLCkaEnjhUy066P","132"].join("&")});};/*]]>*/</script></body></html>
>
>
> therefore I get the impression, that nothing is missing. Its independent of
> the used browser and there are indications that it has to do with Apache
> .... the error.log of Apache tells me:
>
> [Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] (OS 10054)Eine
> vorhandene Verbindung wurde vom Remotehost geschlossen.  : proxy: error
> reading status line from remote server 127.0.0.1:9345
> [Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] (OS 10054)Eine
> vorhandene Verbindung wurde vom Remotehost geschlossen.  : proxy: error
> reading status line from remote server 127.0.0.1:9345
> [Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] proxy: Error
> reading from remote server returned by /esystem
> [Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] proxy: Error
> reading from remote server returned by /esystem
>
>
> Am 12.11.2010 10:50, schrieb Julian Fitzell:
>>
>> That sounds weird... it shows the *source*?
>>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: VASmalltalk 8.0.2 and autoload of WWW-documents

Philippe Marschall
In reply to this post by marten
2010/11/12 Marten Feldtmann <[hidden email]>:
> Yes, the answer (about 41KByte) is shown in the browser - but the result is
> NOT rendered ....

Looks like the content type is missing.

> The shown document source starts with:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html
> xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
> lang="en"><head><title>Seaside</title><meta http-equiv="Content-Type"
> content="text/html;charset=utf-8"/><meta http-equiv="Content-Script-Type"
> content="text/javascript"/><script type="text/javascript"
> src="/js/prototype.js"></script><script type="text/javascript"
> src="/js/scriptaculous.js">
>
> ....
>
>
> and ends with:
>
>
> {new
> Ajax.Request("/esystem",{"parameters":["_s=Po-qu-Sg34Iv0apG","_k=fCLCkaEnjhUy066P","132"].join("&")});};/*]]>*/</script></body></html>
>
>
> therefore I get the impression, that nothing is missing. Its independent of
> the used browser and there are indications that it has to do with Apache
> .... the error.log of Apache tells me:
>
> [Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] (OS 10054)Eine
> vorhandene Verbindung wurde vom Remotehost geschlossen.  : proxy: error
> reading status line from remote server 127.0.0.1:9345
> [Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] (OS 10054)Eine
> vorhandene Verbindung wurde vom Remotehost geschlossen.  : proxy: error
> reading status line from remote server 127.0.0.1:9345
> [Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] proxy: Error
> reading from remote server returned by /esystem
> [Fri Nov 12 10:51:00 2010] [error] [client 192.168.70.160] proxy: Error
> reading from remote server returned by /esystem

Oops. Can you file a bug at [1] with the code as a .st file out?

 [1] http://code.google.com/p/seaside/issues/list

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