The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
JS method
ATM i'm using this code to insert a form with ajax:
PHP Code:
Code:
this.inputobj = document.createElement('input'); this.inputobj.type = 'text'; this.inputobj.size = 50; // read in value for titlemaxchars from $vbulletin->options['titlemaxchars'], specified in template or default to 85 this.inputobj.maxLength = ((typeof(titlemaxchars) == "number" && titlemaxchars > 0) ? titlemaxchars : 85); this.inputobj.style.width = Math.max(this.linkobj.offsetWidth, 250) + 'px'; this.inputobj.className = 'bginput'; this.inputobj.value = PHP.unhtmlspecialchars(this.linkobj.innerHTML); this.inputobj.title = this.inputobj.value; // ... and event handlers this.inputobj.onblur = vB_AJAX_ThreadList_Events.prototype.titleinput_onblur; this.inputobj.onkeypress = vB_AJAX_ThreadList_Events.prototype.titleinput_onkeypress; // insert the editor box and select it this.editobj = this.container.insertBefore(this.inputobj, this.linkobj); this.editobj.select(); // store the original text this.origtitle = this.linkobj.innerHTML; // hide the link object this.linkobj.style.display = 'none'; // declare that we are in an editing state this.editstate = true; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|