As I see there is a lot of php questions discussing here.
I have one question which is not related to php-coding, but it may be useful for some people.
Here is simple JS code which I am using to create new <script> tag in the document.
Code: Select all
scriptNode = document.createElement("script");
scriptElement = this.container.appendChild(scriptNode);
scriptElement.src = src;But it's not ok in Safari!!!
This technique (named jsON) is very helpful when you are going to create dynamic html page without AJAX.
The main point here is that browser executes JS source which is connected to page. In other words when I specify src for newly created srcipt node the code I'm specifying link to, will be executed immediately. And it true if IE, FF and Opera. But Safari has the bug here and I have no ideas here. I can't use AJAX because of browser security protection (AJAX to external host is impossible) and I can't use PHP for this (I can use only html and JS).
Sorry for specific English