> I have an interesting problem with sessions (using enable-trans-sid).
>
> I have created a page with the following javascript function on it:
>
> function swapImgRestore() {
>   var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
> x.src=x.oSrc;
> }
>
> However when I disable browser cookies the code is altered by
> enable-trans-sid - notice the "" :
>
> function swapImgRestore() {
>   var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x="a[i])&&x.oSrc;i++)"
> x.src="x.oSrc;
> "
>
> Why does enable-trans-sid do this? It effectively stuffs up the
javascript.
> Anyone know a solution, other than rewriting the javascript :)

As a short-term hack, try adding some spaces in there (just around your &&
and after ; in for() for example) ...

Fill out a bug report at http://bugs.php.net

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
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