I'm was recently following this tutorial on creating your own chat box using ajax and javascript. I decided to take it a bit further and add onto it a little but, currently I am stuck on how I would go about adding flood control and how I would convert text such as "=)" into an actual smiley icon such as... I tried adding smilies by using
happy = new Image();
happy.src = "../images/smiley2.png";
var text = $('#chatText').val();
if(text.toLowerCase()=="happy"){text==happy}
I have a shopping cart where if a user have problems of buying products or transactions, I want to give support via a chat programme. I want to reply users in different chat threads not like in a chat room as other people dont want to see others chat.I am new to this subject.
I am trying to create a private chat from hacking some opensource chat room.I am trying to use some basic AJAX (noobie) to insert a field into a mysql db.It is doing what I want it to do mysql wise but it also changes the url.
my site runs like this. There is a page called private.php with all the php in. private.php has a switch statement to call other pages (the default is home.php).so if a user say clicks contact the link would be private.php?mode=contact.and then in the private page the switch statement would
case "contact": require("contact.php"); break;
so the user has searched another user and wants to chat.the url at the moment is private.php?mode=full_profile&id=101 in the full_profile.php page I have the ajax in the head and a submit form to call the ajax function.
here is the ajax code
<script language="javascript" type="text/javascript"> <!-- //Browser Support Code function ajaxFunction(){
[code]....
now the mysql query runs fine. the problem I have is that when I click the submit the url changes to private.php?x=18&y=28 . (the x and y vales are different everytime I click the submit).can anyone tell me where the x and y values are coming from and also why the ajax function is changing the url as the whole point of using ajax is to avoid that.
In my web application I have put a javascript menu which has been created using AllWebMenu. On mouse over event the menu gets opened, and on the mouse out event the menu gets closed. This is fine but if I want to open a menu with the help of a short key like control + some key and want to navigate the menu items using the arrow keys. Is this possible? Please let me know as early as possible.
Situation:I have a very long page divided into many sections vertical-wise marked by bookmarks, say pageX.html#s1 to s10. I need to show the section inside an iframe (iFrame1) on the mainpage (mainpage.html). I am thinking of having 4 buttons, sitting on the mainpage, to help navigate between these sections on pageX, namely NEXT, PREVIOUS, TOP, END.condition of the frame, fixed width/height, no scroll, no border.Very new to javascript but need this code to make a page work for BIZ.
I know you can get remotely hosted Java applets that link into IRC.
You can also get Java applets that you host yourself that link into IRC.
I would prefer the second option because it is obviously more flexible with no adverts, but i am aware that it sucks up bandwidth. How much would this be, with an average of this :
once a week, 10 users in the chat room for 2 or 3 hours, typing an average amount.
Im not sure what type of script it is, but another site i saw had a webcam chat room that was a swf file. I know that flash, but where can i get a script for a Webcam chat room to set up on my site.
I'm just looking for a brief explanation of how the DeviantArt seemingly JavaScript-powered chat communicates with an IRC server. Is it via XML sockets? Is it via AJAX? Is it via something else? I seemed to remember someone saying the JavaScript called to a hidden flash embedded in the page. If so, how does the flash communicate with IRC?
I've just installed a chat in www.englishparis.com, and though it is working well in IE, it's not working in FF. I'm speaking about the home page. Is it because I've put the script in an iframe? To understand what I'm telling, you can try chatting from the home page, ... in IE, its smooth, it FF, nothing happens on submit.
I am trying to integrate a chat server with another shopping cart. In the process, I need to automatically pop up a chat window when a user gets a message from another user. This is like the way gmail chat works.
Is there any tutorials on the ways to create a chat box. These codes will need to be applied in dreaweaver and it doesnt need to requirement of internet access to open it..
I'm developing chat application using Ajax,jsp,HTML,java. I have strucked in opening multiple windows to chat with diff users by clicking on roster window.I want to be open a window tat looks like a chat window in gmail.I have created one window like tat using div's but I'm not able to open multiple divs with diff user names.
I have created a simple AJAX chat that polls the server every 2 seconds for new messages. The messages are displayed in a div layer, and the user types new messages in a textarea, the only problem is that when a new message appears it takes the focus from the textarea so you have to keep clicking back in the textarea to keep typing. Does anyone know how I can solve this?
I am trying to make a chat program, and now I want the div to scroll down (entirely down), if the scroll bar already is at the bottom, when the text changes. So Here is the test page. Notice the little debugging area at the bottom. You see that when you scroll the DIV (with message story) entirely down, the scrollTop and scrollHeight does not match, so how, exactly, do I check if the scroll is at the bottom? Notice that if the server is down, or if you don't see what I am explaining, try to refresh the page, or wait a little and then refresh.
I have developed a php script and was wondering how to go about integrating ajax into it so it will auto refresh maybe every so many seconds or maybe after anyone submits a new line of chat.
I know there are frameworks that could be used but there are several and I am not sure where to begin.
For those that need to see it my chat script will follow.
I know its not the greatest but it serves the purpose for now..
I want to make a chat system using the Comet push-style technology. I already wrote a poll-based one using Ajax, but I want to learn how to do server-pushes. Does anyone know of a good website that can show me how to do this? Or recommend a good library/framework to use?
You need to log into my website as a user... User Name is: supramaniac Password is: lakeella On the top bar you can click on the chat tab... Enter into one of the chat rooms... As you will see the chat room window turns into like its own web browser and displays a copy of my index page... The chat rooms used to do that before and someone fixed it and said that my permissions were wrong on my installation folder. I don't know if that is right or not. Why would it go back to doing the same thing. Anyway does anybody know how to fix this issue?
I have a simple ajax chat system that fetches and displays the messages in a div container every two seconds. Because of this behaviour, users cannot scroll through the messages in the div container as it gets scrolled to the bottom every two seconds.
JavaScript function that looks at the time and only displays a chat button during available hours.Right now I have it set to only show the button from 8 am to 6pm. I really would like to change it so the button only shows from 8am to 5:30pm but I dont know how to do half hours.Here is what I have right now: