Jump to content

BugX

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

BugX's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I assume you used notepad or textpad as a texteditor (or maybe you can use any other tools), when u try to save the file, eg: file - save as - there's an option called "encoding", change the ANSI (default choice) with UTF-8. Regards, Andre
  2. Hi all.. I've succesfully installed MAMPP on my mac os, and I'm trying to enable postgre extension. What I did is just edit the php.ini and uncomment this line: extension=php_pgsql.so But seems that php_pgsql.so is not exists. By the way, I'm using XAMPP installer. Is my installer corrupt? or php_pgsql.so is not included in this bundle? Can anybody upload php_pgsql.so for mac os, so that I can add this file manually to its extension folder? thx.. Andre
  3. BugX

    basic chat

    The clue is: when enter a message to somebody, call a function to save the text message to the database so that other people can read the message. On the other hand, u need to check the database for every period, if there's a new message, show the message on the page (You can show the message dynamically with DOM, and you can request the page without refresh all the page with Ajax).
  4. I try this code: [quote] <script> city = new Array(); city[0] = '福岡'; city[1] = '北九州'; city[2] = '久留米市'; alert(city[0]); </script> <form> <input type="text" name="av"> <input type="button" onclick="av.value=city[1]"/> </form> [/quote] It works.. What I did is just save the html file with utf-8 encoding (by default it use ANSI encoding). Hope it'll solve ur problem.. Regards, Andre
  5. try this one... I think it'll work ur code is correct, but document.write sometimes raises a problem (I think) [quote] <div id ="test"></div> <script> var XMLHttpRequestObject = false; var newhtml = null; if (window.XMLHttpRequest) { alert("nonactiveX"); XMLHttpRequestObject = new XMLHttpRequest(); } else if (window.ActiveXObject) { alert("activeX"); XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP"); } if(XMLHttpRequestObject) { alert("sunt aici"); var theURL = "http://www.phpfreaks.com/forums/index.php/topic,123260.0.html"; alert(theURL); XMLHttpRequestObject.open("GET", theURL); XMLHttpRequestObject.onreadystatechange = function() { if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) { alert("sunt aici 1"); newhtml  = XMLHttpRequestObject.responseText; document.getElementById("test").innerHTML = newhtml; } } XMLHttpRequestObject.send(null); } </script> [/quote] Regards, Andre
  6. Hi Rakesh, sorry I've just check the forum :p and thx for the report, I think the problem is on my sendMessage function on ui.js file. Please update the function with this one: [pre] /** * send message to another user */ function sendMessage(b, i, u, f, s, to, from, msg){ if (!Sarissa || !document.getElementById) return; var xmlhttp =  new XMLHttpRequest(); xmlhttp.open('POST', 'send.php', true); xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp.send("action=sendMessage&b="+escape(b)+"&i="+escape(i)+"&u="+escape(u)+"&font="+escape(f)+"&s="+escape(s)+"&to="+escape(to)+"&from="+escape(from)+"&msg="+escape(msg)); } [/pre] and if you still face a problem, feel free to contact me via email: andre_flea@yahoo.com Thx, Andre
  7. Hi.. I've already upload the newest code to sourceforge. If you have any comment or bugs or any idea, feel free to contact me. Thx, ANdre
  8. Hi everyone... I want to let you know openVchat.. This is a PHP web based messenger that's not connected to another IM like yahoo, MSN etc.. But it's connected to you own server. You can use it on your personnal web site.. Or maybe on you local network. It used Ajax technoloy, to make it realtime. If you interested, you can follow this link to download the sourcecode: http://sourceforge.net/projects/open-v-chat Or if you want to have a test, you can follow this link: http://open-v-chat.sourceforge.net Register with your id and add me if you want to (BugX) Thx, Andre ps: - source code available in sourceforge is still v1.1p but I will update the source code as soon as possible     - sorry for my pour english :)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.