so that when i i have a blockquote width 500px, text without spaces does not keep on going and going on the same line...
Need font metrics to calculate line length. Barring that, I think you're stuck with estimating number of characters that will fit into the ideal width. Will
i think i should be using textareas instead of blockquotes, think that will fix it from the start. cheers
http://www.plus2net.com/javascript_tutorial/textarea-onclick.php Make sure the textarea name matches the javascript function.
i'm using the textarea one here: http://javascript-array.com/scripts/onclick_select_all_text_in_field/ no idea why it won't work - i have even kept the id names the same as in their example, and there are no duplicate names elsewhere in my script
<SCRIPT type="text/javascript"> function SelectAll(id) { document.getElementById(id).focus(); document.getElementById(id).select(); } </SCRIPT> <textarea readonly cols="68" rows="10" id="txtarea" onClick="SelectAll('txtarea');">some text here</textarea> HTML: Works fine here... Are you sure your not modifying the code?, and that you have javascript enabled in your browser.
the only thing is the textarea is called using php if/else statements, but there are no errors there as it all loads fine
No, no idea. Would need to see the source code of when it didn't work. Could speculate, but don't really want to take the time for that. Glad it's working. Will