Re[4]: server's initiative

Anne,

AvK>>> http://labs.opera.com/news/2006/09/01/
DT>> Am i understand right, that it's supposed to use one
DT>> server-side script to generate primary html-document
DT>> and server's event after document ?
AvK> No. It could be two separate resources.

1)
So, content of first resource, i.e.

DT>>        <style type="text/css">
DT>>        document.getElementsByTagName("event-source")[0]
DT>>        .addEventListener("server-time", eventHandler, false);

DT>>        function eventHandler(event) {
DT>>          alert(event.data);
DT>>        }
DT>>        </style>

must call once more method to get second resource,
and task is being sophisticated.
By the way, can you write this code
(because curiosity, i'm not JS-programmer) ?

2)
But your phrase is not disclaimer.
In both cases, it's easy to have single string

     <head> <meta name=www.self.com content=785> </head>

or
     
     <head> <meta name=www.second.com content=785> </head>

instead of writing whole JS-code, mentioned above, that

DT>> that browser itself make all,
DT>> than to write difficalt (for non-programmers) script
DT>> and put it instead of mentioned single line.
DT>> Right ?

Once again, right ?



Dmitry Turin
HTML6     (6. 5.3)  http://html60.euro.ru
SQL5      (5.11.0)  http://sql50.euro.ru
Unicode7  (7. 2.1)  http://unicode70.euro.ru
Computer2 (2. 0.2)  http://computer20.euro.ru

Received on Thursday, 7 February 2008 12:06:36 UTC