Re: php generated javascript
| From: | Koala) | Date: | Thu, 07 Sep 2006 18:04:06 +0000 |
| Subject: | Re: php generated javascript | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241450@lists.php.net to get a copy of this message | ||
On 8/31/06, Curt Zirzow <czirzow@gmail.com> wrote:
On 8/30/06, Shu Hung (Koala) <koalay@gmail.com> wrote: On 8/31/06, Peter Lauri <lists@dwsasia.com> wrote:Curt, I found the problem. I have some "\n" inside a javascript variable sometimes. That cause the error by chance and I thought that was browser issue. Thanks a lot. Koala YeungKoala, There is no difference with the php generated javascript andjavascript ona static html page. Take a look at the source code of the page that has been generated inthebrowser, and if that one looks as it should, it is probably your javascript that is not doing what it should :) And if that is the case you can join the javascript@LaTech.edu listforthat purpose. /PeterPetar, Thanks for your reply. I've used some server side cache for that javascript generation now. It works a lot better. Seems to me that it takes too long to generate the javascript. Sometimes browsers decided to ignores the javascript and just run. You might want to be more elaborate than that... What is considered longer, What do you mean it ignores the javascript? I used "document.write" in that javascript. When it isn't loaded completely, nothing shows. I wonder if there is any better way. This i dont understand, perhaps an example of what you are doing? Curt.