I always set up my jQuery AJAX requests like this instead of a query
parameter list ...

$.ajax({
        async: false,
        type: 'GET',
        url: '/whatever.a4p',
        data: {'var1' : var1, 'var2' : var2},
        dataType: 'json',
        error: function(){
                // ERROR
        }, // error end
        success: function(data){
                // SUCCESS
        } // success end
});


On Wed, Mar 16, 2011 at 10:45 AM, [email protected] <[email protected]> wrote:
> In this cases it did help me, to analyze the request with HttpFox.
> https://addons.mozilla.org/de/firefox/addon/httpfox/
>
> Regards, Oliver
>
> Am 16.03.2011 um 16:16 schrieb Brad Perkins:
>
>> On 3/16/11 9:10 AM, Brad Perkins wrote:
>>> This is more of a Javascript question, but I have used similar code
>>> when working with PHP backends and haven't had problems. Active4D is
>>> responding with a 400 Bad Request.
>>>
>>> I'm using the following JS function to submit a POST xmlHTTPRequest
>>> to Active4D. I've removed some code for illustration purposes, but
>>> have tested with code below and it fails too.
>>>
>>> I suspect that Active4D doesn't like how formdata is formatted. Here
>>> is an example formdata value that fails:
>>>
>>> |short_name_menu=NOAA&short_name=NOAA&full_name=National+Oceanic+and+Atmospheric+Administration&url=http||%3A%2F%2Fwww.noaa.gov&assoc_natl_lab_acronym=&id=1001&version=1&last_update_by=Brad
>>> Perkins|
>> For clarification, I copy/pasted the above from Firebug. Firebug
>> doesn't display the | characters that came across in this message.
>> When I paste the same code into various text editors I'm not seeing
>> those |'s as either literal or invisible characters.
>>
>> -- Brad
>>
>>
>> _______________________________________________
>> Active4D-dev mailing list
>> [email protected]
>> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
>> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to