it happened to me when i enter the page for the very first time and I use
session_start()

I suggest to make the page reload itself w/ a parameter so that the first
pass to the site will screw the javascript and then automatically 2nd pass
(which is self called) is okay.


"Moloko" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All,
> got a strange problem with a PHP include file that contains all my
> JavaScript functions. This file is included on every page in my site and
> contains some image swap behavious amongst other things. The first time I
go
> into the site, however, I get all sorts of JavaScript errors which I have
> traced to the fact that lots of quotes are being dumped into the
JavaScript
> for some reason, screwing up the syntax. As soon as I hit refresh, the
> quotes disappear and the page loads fine.... anyone got any ideas as to
why
> this is happening??
>
> example of screwed up script:
> var d="document;" if(d.images){ if(!d.MM_p) d.MM_p="new" Array();
>     var i,j="d.MM_p.length,a=MM_preloadImages.arguments;" for(i="0;"
> i<a.length; i++)
>
> this is how it should look:
> var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
>     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length;
> i++)
>
>
> any ideas at all much appreciated!
>
>
> --
> Moloko
> 'When the going gets weird, the weird turn pro' - Dr Gonzo
> GCM/CS/IT/MC d-- S++:- a-- C++ U--- P+ L !E W+++$ N+ K+ w+++$ M+ PS+++ PE-
> PGP- t+ 5- X-- R* tv++ b+++ DI++++ D G e h-- r++ y++
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to