are you sure #self# is defined as "index.cfm?fuseaction="?
generally i've seen #self# referenced as "index.cfm" and #myself#
referenced as "index.cfm?fuseaction="
On 6/11/07, Phillip M. Vector <[EMAIL PROTECTED]> wrote:
> 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*
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
CF 8 â Scorpio beta now available,
easily build great internet experiences â Try it now on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280655
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4