al usar jquery encontre un error ..
en lavista con helper js query
$this->Js->get('#BookID')->event('change', $this->Js->request(
array('controller' => 'critiques', 'action' => 'auto_select_author'),
array(
'update' => '#AuthorID',
'async' => true,
'dataExpression' => true,
'method' => 'post',
'data' => $js->serializeForm(array('isForm' => false, 'inline' => true))
) ) );
esto deberia escribirse
asi
<script type="text/javascript">
//<![CDATA[
$(document).ready(function () {$("#ProductCategory").bind("change",
function (event) {$.ajax({async:true,
data:$("#ProductCategory").serialize(), dataExpresion:true,
dataType:"html", success:function (data, textStatus)
{$("#ProductSubCategory").html(data);}, type:"post",
url:"\/cakephp\/Products\/getSubcategory"});
return false;});});
//]]>
</script>
per ose traduce asi en mi aplicacion
<script type="text/javascript">
//<![CDATA[
$(document).ready(function () {$("#ProductCategory").bind("change",
function (event) {$.ajax({async:true, data:*
"$(\"#ProductCategory\").serialize()"*, dataExpresion:true,
dataType:"html", success:function (data, textStatus)
{$("#ProductSubCategory").html(data);}, type:"post",
url:"\/cakephp\/Products\/getSubcategory"});
return false;});});
//]]>
</script>
la lineas rojas me roducen unerror qeu me costo encontrarlo pr qeu se
traduce asi?
alguien pdria explicar como reparar esta parte he tenido que usar codigo
java en ves de usatr el helper para solucionar es parte..
saludos
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en.