The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#2
|
||||
|
||||
![]()
Sett up a ondblclick for that table by adding an internal div. Then set up your ajax function.
var ajax = ""; var url = "";// if using vbulletin templates add php code in the "" if(window.XMLHttpRequest()) { ajax = new XMLHttpRequest(); } else if(window.ActiveXObject) { ajax = new ActiveXObject("Microsoft.XMLHTTP") } ajax.open("GET", "your_script.php", true); if(ajax.readystate=4 && ajax.status=200) { ajax.send(null); } else if((ajax.readystate=1 && ajax.status=401 || ajax.readystate=2 && ajax.status=500)) { ajax.abort(); Theres your ajax functions right there now all thats left is to use javascript to create the new input form and trigger this function ondblclick so it sends for data, and replaces it into the value of the input box. Then re-trigger the ajax onsubmit so it updates the database and use ajax.responseText(); with innerhtml(); to save the changes to the value of the input box. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|