Differences between revisions 5 and 11 (spanning 6 versions)
Revision 5 as of 2007-11-09 23:11:21
Size: 1107
Editor: dslb-084-059-007-005
Comment:
Revision 11 as of 2007-11-09 23:49:35
Size: 1739
Editor: dslb-084-059-007-005
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Problem including Javascript from external servers = = Problems including Javascript from external servers =
Line 11: Line 11:
[http://search.mpi-sb.mpg.de/markus/examples/javascript/demo1.php Example]
Line 13: Line 15:

[http://search.mpi-sb.mpg.de/markus/examples/javascript/demo2.php Example]
Line 17: Line 21:
[http://search.mpi-sb.mpg.de/markus/examples/javascript/demo3.php Example] [needs apache on geek2 to be stopped]

== AJAX call hangs ==
A complete loaded javascript file calls per AJAX an external script which execution hangs.

The main page is displayed except of this part which is computed by the AJAX call.

[http://search.mpi-sb.mpg.de/markus/examples/javascript/demo4.php Example]
Line 19: Line 32:

[http://search.mpi-sb.mpg.de/markus/examples/javascript/demo5.php Example]

Problems including Javascript from external servers

Some considerations about problems which can occurr when including javascript from external servers.

Javascript file doesn't exist

The script wants to include a javascript file which doesn't exist on the specified location.

This causes no problem for the performance of this script, because the browser get immediatlely from server the notification that the requested file doesn't exist.

[http://search.mpi-sb.mpg.de/markus/examples/javascript/demo1.php Example]

The execution of the included javascript exceeds the maximum execution time for script code

The whole script hangs whereever the <script></script> is located.

[http://search.mpi-sb.mpg.de/markus/examples/javascript/demo2.php Example]

External server is down

If the external server (on which the javascript file to be included resides on) is down (or very slow) the HTML code above the line with the include statement is executed and printed to the web page. This works for Firefox, Internet Explorer and Opera.

[http://search.mpi-sb.mpg.de/markus/examples/javascript/demo3.php Example] [needs apache on geek2 to be stopped]

AJAX call hangs

A complete loaded javascript file calls per AJAX an external script which execution hangs.

The main page is displayed except of this part which is computed by the AJAX call.

[http://search.mpi-sb.mpg.de/markus/examples/javascript/demo4.php Example]

<script type="text/javascript" src="xxx" /> don't work with Internet Explorer

This don't work in Internet Explorer 7 and don't result in an error or warning but in an empty page.

[http://search.mpi-sb.mpg.de/markus/examples/javascript/demo5.php Example]

CompleteSearch: completesearch/NotesToJavascript (last edited 2007-11-09 23:49:35 by dslb-084-059-007-005)