Hi,
I'm sorry I can't help you with this :-) But maybe you could help me
producing a Json array? I followed the pagebakers.nl tutorial and can
get a Json file from a controller ie /records.json but I can't get one
from /records/1 or /records.json?id=1
I am using $this->RequestHandler->setContent('json', 'text/x-json');
in the app_contoller..
Any help appreciated and ... good luck with Jquery ...
Gwilym
On Aug 25, 5:05 pm, Kyle Decot <[EMAIL PROTECTED]> wrote:
> I'm using jQuery to pull in a JSON array that I'm creating with a
> simple $this->Category-find('list'); The problem is that when I use
> jquery to pull it in, I get a 404. If I directly navigate
> tohttp://localhost/pages/list.json?id=6then the array will show up no
> problem. Any clues to why this is happening? Thanks. I also included
> my jquery code below, even though I know this isn't a jQuery group but
> thought it might help.
>
> <script type = "text/javascript">
>
> $("#states-dropdown").change(function() {
>
> $.getJSON("<?php echo $html->url("http://localhost/pages/list"); ?
>
> >.json?state_id=" + this.value + "",function(data){alert(data);});
> });
>
> </script>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---