The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
thanks for taking a look, it seems you have to go to some lengths to make this work in Firefox, i have it wotking in IE (not the example you linked to) but my whole reason for this was to please my firefox users.
I'll keep searching and post back. |
#12
|
|||
|
|||
I found this page: https://developer.mozilla.org/en/DOM/Selection which is the DOM referenece for FF (I think), and I made this example which works in FF:
Code:
<script type="text/javascript"> function FFSelect(node) { r = document.createRange(); r.selectNodeContents(node); window.getSelection().removeAllRanges(); window.getSelection().addRange(r); } </script> <div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">Code:</div> <pre name="codearea" class="alt2" dir="ltr" style=" margin: 0px; padding: 0; border: 1px inset; width: 900; height: 400px; text-align: left; overflow: auto">This is some code to select</pre><input type="button" value="Highlight Code" onClick="javascript:this.parentNode.children[1].focus();FFSelect(this.parentNode.children[1]);"> </div> Of course it won't work in IE, so I think what you really need is one Select function that tests for which functions exists and does the appropriate thing. Sorry I don't have time to work it all out just now. |
#13
|
||||
|
||||
I found the solution thanks, the script in this instance had to be included with the bbcode....all sorted now, thanks for all your help!
|
#14
|
|||
|
|||
A thread (post) is already a form when viewed by a staff member, and as far as i know you can not nest forms.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|