Looks like you forgot to include the Javascript-Helper in your
controller:

var $helpers = array('Javascript',...)

On 10 Mai, 20:33, Tashu <[EMAIL PROTECTED]> wrote:
> I'm trying to do ajax for the selects - two droplists, categories and
> subcategories.
> When I click one of categories, then subcategories should make a
> response - via observeField
>
> I didn't see any errors in the firebug,
>
> The POST data is -
>
> data%5BCategory%5D%5Bid%5D=1
>
> As you can see - it's returning id
>
> the response mentioned the error -
>
>  Call to a member function link() on a non-object in <b>/home/peter/
> workspace/SheetCenter
> /app/views/layouts/default.ctp</b> on line <b>8</b><br />
>
> I'm not sure what it does mean. The line 8 consists of -
>
> echo $javascript->link('prototype');
>
> I'm following the tutorial 
> -http://web.archive.org/web/20070501122029/http://www.devmoz.com/blog/...
>
> I have been working on this for 2 days, and I didn't see anything
> wrong with my code. Perhaps, I'm missing something.
--~--~---------~--~----~------------~-------~--~----~
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