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
Printable View
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
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?
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 did ;)Code:<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>
Great job Zaire. thanks for helping Zaire with his problem. :D
Are you using patTemplate?
Nope..
I was using my own template system, but I ditched it for Smarty..