<cfset defaultindex = "index.cfm">
<cfset self = #defaultindex#?#application.fusebox.fuseactionVariable#=">

Yeah. I made #self# to include the fuseaction as well.

Charlie Griefer wrote:
> 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*
>>
>>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280656
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