Hi again,
did some testing by creating a valid URL parameter string and use that in
the data
and that actually did work (too my surprise).

if this is the case,.. then how does one transmit a json object?? and why is
there a dataType = "json"
in jQuery $.ajax??

regards,
Peter

On Wed, Jun 3, 2009 at 4:19 PM, Peter Marino <marino.pe...@gmail.com> wrote:

> Hi Jakob,
> if I understand the documentation the type parameter is used to tell jQuery
> how you
> want to have the data received on the server side. The dataType tells
> jQuery what kind
> of data you will be transmitting. (unless I have totaly mis understood it
> and that would
> explain my 30 hours of working on it with no result).
>
> regards,
> Peter
>
> On Wed, Jun 3, 2009 at 8:39 AM, Dam <jakob.a....@gmail.com> wrote:
>
>>
>> Hi,
>>
>> It's kind of odd what you do: namely input nested JSON data as URI
>> parameters in a GET request.
>> It doesn't make sense to URL encode your data that has a nested
>> object, so probably jQuery skips it.
>>
>> URI parameters are only key/value paris.
>>
>> POST can be used if you want to include arbitrary data in the body of
>> a request.
>>
>> Maybe something like this instead (assuming you don't want to POST
>> data on the server)
>>
>> $.ajax({
>>  url: "http://localhost/test/gui/ajax_member.php";,
>>  type: "GET",
>>  data: 'mybutt=' + data.mybutt + '&member=' + data.member.name,
>>  cache: false,
>>  dataType: "json",
>> ...
>> })
>>
>> regards Jakob
>>
>
>
>
> --
> Power Tumbling - http://www.powertumbling.dk
> OSG-Help - http://osghelp.com
>



-- 
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com

Reply via email to