I don't use JS much at all, but I had a sweet idea for Editize and my CMS, so I had it working for a few days, and now it's broken..
YOu can see a screen shot of the error below:
http://68.69.79.210:8888/whatthehell.jpg
| SitePoint Sponsor |





I don't use JS much at all, but I had a sweet idea for Editize and my CMS, so I had it working for a few days, and now it's broken..
YOu can see a screen shot of the error below:
http://68.69.79.210:8888/whatthehell.jpg
Eric Coleman
We're consentratin' on fallin' apart
We were contenders, now throwin' the fight
I just wanna believe, I just wanna believe in us





I think I know what's happening..
JS isn't seeing a closing " on the end of the end, and there's a carriage return, so it's spitting out an error..
How can I avoid this?
Eric Coleman
We're consentratin' on fallin' apart
We were contenders, now throwin' the fight
I just wanna believe, I just wanna believe in us





I figured it out using this:
I found out that if I grab the actual value from a form, it should work fine, and it didCode:<html> <head> </head> <body> <form name="tmp"> <input type="hidden" name="thisBio" value="{BIO}" /> </form> <script language="Javascript"> opener.document.{FIELD}.bio.value = document.tmp.thisBio.value; opener.document.{FIELD}.picture.value = "{PICTURE}"; opener.document.focus(); window.close(); </script> </body> </html>![]()
Eric Coleman
We're consentratin' on fallin' apart
We were contenders, now throwin' the fight
I just wanna believe, I just wanna believe in us





Nope..
I was using my own template system, but I ditched it for Smarty..
Eric Coleman
We're consentratin' on fallin' apart
We were contenders, now throwin' the fight
I just wanna believe, I just wanna believe in us
Bookmarks