Use Firebug or Charles to look at what is actually getting sent in the AJAX
request. Also confirm that the exact same URL works if you call it in your
browser directly. I've used AJAX with Fusebox (and the other frameworks as
well) so I know it is definitely possible.
HTH,
Brian
On 6/11/07, Phillip M. Vector <[EMAIL PROTECTED]> wrote:
>
> <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*
> >>
> >>
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:280669
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4