Since there is some discussion about AJAX on the list, I thought I would 
repost this issue and see if anyone has any ideas as to why it isn't 
working.

<form>
Message: <input type="text" id="Message" onkeyup="showmessages()"
onenter="entermessage()" size="40">
<input type="Hidden" id="Room" value="1">
</form>

function entermessage()
{
xmlHttp=GetXmlHttpObject()
var url="#self#Chat.EnterMessage";
url=url+"&room="+document.getElementById("Room").value;
url=url+"&message="+document.getElementById("Message").value;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

<cfquery datasource="#datasource#">
        Insert into Chat_Messages
        (Message, Room)
        VALUES
        ('#url.Message#', #url.Room#)
</cfquery>


Anyone know why this wouldn't work? It keeps not being able to go to the
proper fusebox circuit.


#self# is defined as "index.cfm?fuseaction="

But it's getting sent to "index.cfm?"

*scratches his head*

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280645
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to