So I have a simple quote script, meaning you can click 'Quote' and it will grab the author and content of the post and put it in the quick reply box. I can get it to do that with one line posts... But not with multiple line posts.
Meaning that the post 'asdfasdf hadsfjhashdfh 01 DF ADF' would work, but 'asdf
132 adf
1
dfa'
won't  .
Here is my simple script and example for calling it, if you know what's wrong please say
HTML Code:
<script type="text/javascript">
function quoteMe(author,content) {
document.getElementById('replyContent').innerHTML+="[quote="+author+"]"+content+"[/quote]";
}
</script>
<a href='#new' onclick=\"quoteMe('".$row['author']."','".$row['replyContent']."');\" style='font-weight:700;margin-top:-10px;float:right;clear:right;'>Quote</a>
The reason the HTML is weird is because it's in a PHP echo statement inside a MySQL while query.
Last edited by Physicsguy; 08-01-2010 at 09:10 AM..
|