why can't I use $j.current.v.mymethod in controller ?
In my customers_controller.js, I can use
$j.v.customers.mymethod, but i cant use $j.current.v.mymethod .
in my views / customers.js :
$j.v({ Customers: {
mymethod: function(){
// some dom oprate code
}
}
show my js app dir in attach , Thank you !
2009/3/19 Alex <blacka...@gmail.com>:
> HI Timo,
>
> why can't I use $j.current.v.mymethod in controller ?
>
> In my customers_controller.js, I can use
> $j.v.customers.mymethod, but i cant use $j.current.v.mymethod .
>
Is the customers controller really your current controller. Current
means the one that was referenced in the body class literal.
$j.current doesn't mean it is the controller you are writing code in.
Otherwise this should definitly work. Your filenames and view seems correct.
Cheers,
Timo
--
Timo Derstappen
$j.current is already the controller :)
As I said I need to see your code. Please paste your html, controller
and view here:
And post the link.
Cheers,
Timo