The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Well the ajax is going well but it doesn't return special characters
Here's what the username is supposed to look like G?? Th? ?m??r??L? But on the ajax form it returns it as G�� Th� �m��r��L� Here's the site http://www.rapinfluence.com/board/testing/test.html Just put a random userid in and click out of the box. Edit: If I go thrugh the address bar it shows up fine http://www.rapinfluence.com/board/te...me.php?param=1 so it has to be on the js side. Code:
<script language="javascript" type="text/javascript"> var url = "getusername.php?param="; // The server-side script function handleHttpResponse() { if (http.readyState == 4) { // Split the comma delimited response into an array results = http.responseText.split(","); document.getElementById('username').value = results; } } function updateusername() { var useridValue = document.getElementById("userid").value; http.open("GET", url + escape(useridValue), true); http.onreadystatechange = handleHttpResponse; http.send(null); } function getHTTPObject() { var xmlhttp; /*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/ if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } return xmlhttp; } var http = getHTTPObject(); // We create the HTTP Object </script> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|