Thanks for the "tipe", was my bug on the post :( . But, I'm sending a
php array data. This data is not properly sended or discarded. Any
idea to know what and how this happens? or how to find.

On Apr 22, 5:49 am, donb <falconwatc...@comcast.net> wrote:
> Sounds more like the data type expected IS 'json' but the data coming
> in is not valid JSON so it gets discarded.  With the data type
> interpreted as text, it's returned as-is.
>
> It would be a good idea to open the URL providing this data in your
> browser and examine the data, perhaps pasting it intohttp://jsonlint.com
> to see if it's valid or not.
>
> On Apr 22, 7:28 am, Daniel <dcosta...@gmail.com> wrote:
>
> > This may be silly, but I notice you put "dataTipe" instead of
> > "dataType". If this is what your code looks like also, then there is
> > your problem right there...
>
> > On Apr 22, 4:56 am, Mario Soto <canc...@gmail.com> wrote:
>
> > > The $.ajax function is causing me trouble, I'm using Mozilla Firefox
> > > 3.0.8 in a Kubuntu 8.10 computer, with php PHP/5.2.6-2ubuntu4.2 and
> > > web server Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.2 with Suhosin-
> > > Patch and jQuery version 1.3.2.
>
> > > If I use dataTipe: 'json' and type:'post' with $-ajax, jQuery seems to
> > > send something but, php does not recieve a thing. But when I use
> > > 'text', it recieves data.
>
> > > Specifically what im sending is (in this case, just to try).
>
> > > <form id="xx">
> > >     <input type="text" name="hola[alfa]" id="hola_alfa" value="330" />
> > >     <input type="text" name="hola[beta]" id="hola_beta" value="uno" />
> > >     <input type="text" name="hola[delta]" id="hola_delta" value="" />
> > >     <input type="text" name="hola[gamma]" id="hola_gamma"
> > > value="({gol})" />
> > > </form>
>
> > > Then i echo a json_encode($_POST) and die. So, should be returning the
> > > same I've sended, but returns nothing with 'json', and a json string
> > > with 'text'. Even firebug tellsme that those are the results.
>
> > > Can you recreate or send any comment.

Reply via email to