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 to
http://localhost/pages/list.json?id=6 then 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to