Found one thing that i unable to do until now
In the javascript if you use a formated json ( $H way ) you can't put it directly with document.write or in case you using Ajax prototype
the $(elementID).update(json) or $(elementID).innerHTML = json
will break your code, unless you use ajax mode send it to server first and let the php create it.
The solution :
you need to write it exactly like when you write using php and html there's no direct method to do this in prototype.
I guess that's mean don't write a html thing in your js if you want a clean code let the php handle it nicely.
In case you need this than try searching php equivalent to htmlentites or addslashes it usually work....
Water, Water, Everywhere
2 months ago