> If I directly navigate tohttp://localhost/pages/list.json?id=6 then the array
> will show up no
> problem. 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>
The address you are going to directly is not the same as the address
in your jquery code. http://localhost/pages/list.json?id=6 works, but
you get a 404 when you call http://localhost/pages/list. I'd try
changing the url in my jquery code to match the url that works when I
call it directly.
I hope that helps!
hydra12
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---