I am trying to replace this:

<CFhttp URL="http://localhost:8082/"; method="post">
                <cfhttpparam name="address" value="68 N 4000 W"
type="formfield">
                <cfhttpparam name="addressline2" value="" type="formfield">
                <cfhttpparam name="city" value="Cedar City"
type="formfield">
                <cfhttpparam name="state" value="UT" type="formfield">
</CFHTTP>

with this

    $(document).ready(function(){
        var url = 'http://localhost:8082/',
        mydata = {address1 : '68 N 4000 W', address2 : '' ,city : 'Cedar
City', state : 'UT'};
        $.post(url, mydata,function(resp){
                alert(resp);
        }
        );

    });

the jQuery seems to work, but I get nothing back and the post url turns red
in firebug.  How do I at least return an error. I can return that there is
an error, but not the actual error message.

The cfhttp works great and returns xml.

If I could figure out the actual error message I could maybe move to the
next step.

Firebug returns the following in the post tab:

POST http://localhost:8082/



HeadersPostResponse
Parametersapplication/x-www-form-urlencoded
address168 N 4000 Waddress2
cityCedar CitystateUT
Source
address1=68+N+4000+W&address2=&city=Cedar+City&state=UT

but nothing in the response tab

---
David Mineer Jr
---------------------
The critical ingredient is getting off your
butt and doing something. It's as simple
as that. A lot of people have ideas, but
there are few who decide to do
something about them now. Not
tomorrow. Not next week. But today.
The true entrepreneur is a doer.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344308
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to