Unstoppable Domains

NamePros Live Chat Mobile

Spaceship Spaceship
Watch
Status
Not open for further replies.

cvxdes

Established Member
Impact
14
I've been messing around in the chat for a few hours, trying to get it to work on my cell phone. And, after hours of reading thousands of lines of a coding language that I don't really understand, I finally did it, and it works, and it kicks ass. Check it out: http://www.cvxdes.com/phone.php (That's a HTC Mogul, if anybody was wondering) I found some other pretty interestsing stuff in the chat's code, but this is all I'm going to share.

Anyways, I thought it would be cool if this could be added to namepros.mobi, since you know, the realchat key is only good for the one day it's generated on. Right now, I have it running off localhost, I pulled that up over WiFi. I'll have to manually update the key every time I want to use the chat for now, because of that key. I could just make a script to log in and get it for me, but if it's put on the site, that would be pointless... If not, I'll code that.
Just take the current code, change the size to maybe 400x300, then under it, add this:
Code:
<form action="javascript:details = document.getElementById('send').value; document.getElementById('send').value = ''; document.jsapplet.sendMessage(details);">
<input type='text' id='send' style='width: 270px;' value=''/><input style='width:50px; height: 30px;'type='submit'>
</form>
document.jsapplet would be the Java applet, right now it's named ChatClient.. If you know javascript, you just have to switch that out.

It works because on phones that load Java, you can't select parts of it. They just display the applet, and you can send screen taps as mouse clicks, but that's it. This is another input field, since the one in the applet is unreachable, and it sends it to the chat with a really conveniently named "sendMessage()" function... thank god for public functions.

So yeah, I think it would be cool. It'll work on some phones, most likely the Windows Mobile and Palm ones, but others would probably not even load the Java.
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Interesting stuff there cvxdes.

Think Realchat should consider hiring you as a mobile consultant...

:wave:
 
0
•••
Status
Not open for further replies.
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back