View Full Version : I was just messing around (Made a Chat)
Dentafrice1
12-09-2006, 10:42 PM
http://www.habbonewsiefm.net/chat3/
Go login and test it.
I have a little admin cp to go with it :p
Add
Remove
Edit.
Don't have features yet but im hoping to add some but im having to learn PHP with XML cause thats how it works with the AJAX
Mentor
12-09-2006, 11:07 PM
Nice. it appears to work pretty well
Dentafrice1
12-09-2006, 11:07 PM
Yea.. it has some glitches. I got the AJAX chat part from a tutorial. Im not quite understanding how the XML works but I will :p
Tinsual
13-09-2006, 07:54 AM
so basic hehe, lots of people have these kind of chats.
nice work:)
:Jamie
13-09-2006, 08:39 AM
Wow very nice works well
Sygon.
13-09-2006, 11:39 AM
Well its not your script you just modded it as i actually have this script to.
http://www.habbonewsiefm.net/chat3/chat.php
RyanS
13-09-2006, 03:11 PM
You didnt make it so don't lie..
Unless Sygon and HabboRemix both stole it from you >.<
Johno
13-09-2006, 05:53 PM
http://www.DynamicAJAX.com - Its the same script just modded. (Yes, I know people have already said this)
headset
13-09-2006, 06:12 PM
Why not make a whos online bit
Dentafrice1
13-09-2006, 07:38 PM
I said it was from a tutorial?
I made the admin panel etc
RyanSmith345
13-09-2006, 08:01 PM
Always good to see people making use of that tutorial. I wrote that way back in November 2005, and have been meaning to upgrade / expand it all of 2006.
It looks like a lot of people have already gone much further with it than I was planning.
Dentafrice1
13-09-2006, 09:11 PM
Make a 2nd (If thats you) With the admin panel :)
www.habboremix.net has the best that ive seen so far.
If only it didn't use XML
RyanSmith345
13-09-2006, 09:56 PM
I actually have a new one written that uses JSON (JavaScript Object Notation) instead of XML.
JSON AJAX Chat Tutorial (http://www.dynamicajax.com/fr/JSON_AJAX_Web_Chat-271_290_324.html)
It was one of those things where I kept seeing JSON around and I had to figure out what the hell everyone was talking about.
It actually makes it extremely easy to parse the response - as you can tell from the tutorial because you can use the standard dot notation to access the different parts.
The only reason that I haven't gone completely that ways is because I'm worried about possible JavaScript vurnuabilites with the eval() function. I think as long as you make sure to cleanse the user data you will be alright, but I haven't figured out all the possible angles yet. At least not with enough confindence to recommend it to other people.
RyanSmith345
13-09-2006, 09:59 PM
By the way, www.habboremix.net doesn't support Firefox so I can't give it any weight. I hate websites that don't at least make an effort to support multiple browsers.
As long as you code in a standards compliant way using the XHTML Transitional DTD then you can make your sites behave and look pretty much the same in all the different browsers.
Xuzuno (Forum Moderator) - Please don't double post before the editing time limit is up.
Dentafrice1
13-09-2006, 10:13 PM
Never messed with JSON before.. might try it. Ive never worked with JS before but I hear its complicated
RyanSmith345
14-09-2006, 01:33 AM
JavaScript really isn't all that complicated and it's actually pretty powerful. The problem with JavaScript is there are a lot of little nuances that if your not aware of them, it's a real pain to troubleshoot. Especially when dealing with cross browser compatiability issues.
Kymux
14-09-2006, 04:05 PM
Nice work mate.
Dentafrice1
14-09-2006, 08:09 PM
Im going to try to learn it.. Is it harder then PHP?
RyanSmith345
14-09-2006, 08:19 PM
It's not that it's harder or easier than PHP, it's just different.
To be a good web developer you really need to know JavaScript. The thing you need to watch out for are little gotcha's like capitalization errors and the like.
Luckly we have moved past the days of the generation 4 browsers so you can pretty much write JavaScript once that will run in most browsers.
One recommendation that I'll give you, always use getElementById() to access your document objects. It seems to work great in all the browsers.
Also, download the Firebug (https://addons.mozilla.org/firefox/1843/) extension for Firefox. It will make your web developing live so much easier I can't even begin to describe it. It will tell you when JS errors occur, what the error was, and even pinpoint the exact location in the script where the error occured. I have no idea how I ever developed for the web without it.
Dentafrice1
14-09-2006, 08:22 PM
I don't use firefox.. well not much.. IE7 :)
RyanSmith345
14-09-2006, 11:55 PM
Start using Firefox. While IE7 is leaps and bounds better than IE6, it lacks the extension model that Firefox does.
Trust me, download Firebug and you will wonder how you lived without it.
Why not just use Opera 9.01, it passes the ACID2 test and doesn't have a memory leak, overall it could be considered better.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.