P
Peter Michaux
[snip]Randy, have you done any work on an article summarizing the script
insertion results? Just curious and I'm interested to ready your
interpretation and how you use it.
I haven't had time yet to be honest, when I do you will be one of the
first to know about it.
Script insertion must always be synchronous, yes? That is the browser
comes to a screeching halt until the server response. This would make
XHR suitable in some places where script insertion is not.
Do you ever insert script elements that have src attributes like
"perlScript.pl" to get dynamically created JavaScript. In particular
I'm thinking of getting JSON data specific to a particular user with a
session cookie to be sent with the browser's request for this inserted
script.
I certainly think this dynamic script insertion should be a better
known option along with XHR. It gets a mention at the end of the
"Scripting HTTP" chapter of Flanagan's fifth edition but I didn't take
it seriously because he doesn't push the pros much. He only mentions
it as something that can be done to get around IE browsers with
ActiveX turned off and so no XHR option.
Thanks,
Peter