Community & Support

Bookmarklet issue - one field autofilling properly, another field autofilling partially, and another field not autofilling at al

I'm trying to use a bookmarklet to fill in three fields on a custom content node. One of the fields is standard and auto populates fine, but the other two are CCK and do not populate properly. The quote field only populates with the first character of the selection, and the link field does not populate at all.

Here's the js:

javascript:u=document.location.href;t=document.title;s=window.getSelection();void(window.open('http://truthalizer.nosanov.com/truthalizer/node/add/statement?edit[title]='+escape(t)+'&edit[field_quote][0]='+escape(s)+'&edit[field_link][1][url]='+escape(u),'_blank','width=1024,height=500,status=yes,resizable=yes,scrollbars=yes'));

nobody click here