The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Hi
i'd like to know if this code is ok, performant and "good", because if i don't ask for feedback i can't know if there are better methods ![]() Thats a codesnippet from my linklist l?scht. it is working perfect, but as i said, i'd like to know if there are better methods ![]() Code:
var dellink; var link; function del_link(linkid){ link = linkid; dellink = new vB_AJAX_Handler(true); dellink.onreadystatechange(handle_dellink); dellink.send('linkliste.php?' + SESSIONURL + 'do=del', 'linkid=' + link); return false; } function handle_dellink(){ if (dellink.handler.readyState == 4 && dellink.handler.status == 200) { if (dellink.handler.responseXML) { var ausgabe = dellink.fetch_data(fetch_tags(dellink.handler.responseXML, 'response')[0]); if (ausgabe == 'gel?scht') { fetch_object("linkspalte_"+link).innerHTML = ""; fetch_object("danieltest").innerHTML="gel?scht"; } else { alert("fehler"); } } } } PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|