asp classic - Trying to make a chat room for my website but cannot find working JavaScript. Could you help me please? -
i in middle of making chat rooms website, have been stuck on 1 part several days, finding proper javascript make div refresh chat bubbles. use asp code website.
any this? appreciated.
also: great if make database chat-entry field without having reload entire page.
thanks.
heres code snippet of have far:
<div class="chatroomdiv"> chat bubbles here </div> <form action="chat_say.asp" method="post"> <input type="text" name="speech" /> <input type="submit" value="say" /> </form>
i have no idea i'm working when work js please bare me.
i suggest using ajax post, if using jquery, rather call $.post() function.
eg.
$.post( "chat_say.asp", { messge: $("#speech").val()}) .done(function( data ) { $(".chatroomdiv").html(data); });
i have not tested code @ , should treated pseudo code.
the data variable data recieved asp page.
the jquery documentation located here: https://api.jquery.com/jquery.post/
Comments
Post a Comment