{"id":134,"date":"2007-06-01T17:28:16","date_gmt":"2007-06-01T23:28:16","guid":{"rendered":"http:\/\/198.27.101.129\/blog\/itzcoaltam\/?p=134"},"modified":"2007-06-02T18:28:37","modified_gmt":"2007-06-03T00:28:37","slug":"ajax-con-phpcake","status":"publish","type":"post","link":"http:\/\/www.joiz.net\/blog\/itzcoaltam\/ajax-con-phpcake\/","title":{"rendered":"Ajax con phpcake."},"content":{"rendered":"<p><span lang=\"ES-MX\"><font size=\"3\"><font face=\"Times New Roman\">Reci?n he tenido la necesidad de implementar un poco de ajax en la parte final de un desarrollo que he estado haciendo en mis tiempos libres.<br \/>\n<\/font><\/font><\/span><span lang=\"ES-MX\"><font size=\"3\" face=\"Times New Roman\"> <\/font><\/span><span lang=\"ES-MX\"><span lang=\"ES-MX\"><font size=\"3\"><font face=\"Times New Roman\">Lo que necesitaba implementar era el autocomplet, siguiendo el ejemplo de un <a href=\"http:\/\/grahambird.co.uk\/cake\/tutorials\/ajax.php\">tutorial <\/a>que encontr? en Internet, me percato que tiene algunos errores.<br \/>\n<\/font><\/font><\/span><span lang=\"ES-MX\"><font size=\"3\" face=\"Times New Roman\"> <\/font><\/span><\/span><\/p>\n<p><span lang=\"ES-MX\"><font size=\"3\"><font face=\"Times New Roman\">He aqu? las correcciones al mismo.<br \/>\n<\/font><\/font><\/span><span lang=\"ES-MX\"><font size=\"3\" face=\"Times New Roman\"> <\/font><\/span><span lang=\"ES-MX\"> <\/span><span lang=\"ES-MX\"><font size=\"3\"><font face=\"Times New Roman\">En la vista de layout es necesario incorporar los archivos de  la implementaci?n de ajax que utiliza phpcake, las l?neas correctas son:<\/font><\/font><\/span><\/p>\n<p><span lang=\"ES-MX\"><font size=\"3\"><font face=\"Times New Roman\"><br \/>\n<\/font><\/font><\/span><span lang=\"ES-MX\"><font size=\"3\" face=\"Times New Roman\"> <\/font><\/span><span lang=\"ES-MX\"><font size=\"3\"><font face=\"Times New Roman\"><!--p print $htm-->charsetTag(&#8216;UTF-8&#8217;) ?><br \/>\n<\/font><\/font><font size=\"3\"><font face=\"Times New Roman\"><!--p print $javascrip-->link(&#8216;prototype.js&#8217;) ?><br \/>\n<\/font><\/font><font size=\"3\"><font face=\"Times New Roman\"><!--p print $javascrip-->link(&#8216;scriptaculous.js&#8217;) ?><br \/>\n<\/font><\/font><font size=\"3\"><font face=\"Times New Roman\"><!--p print $javascrip-->link(&#8216;effects.js&#8217;) ?><br \/>\n<\/font><\/font><font size=\"3\" face=\"Times New Roman\"><!--p print $javascrip-->link(&#8216;controls,js&#8217;) ?><\/font><\/span><\/p>\n<p><font size=\"3\" face=\"Times New Roman\">Es muy importante el orden  de los .js y sobretodo garantizar que si los encuentre en la via adecuada.<\/font><\/p>\n<p><font size=\"3\" face=\"Times New Roman\"><font size=\"3\" face=\"Times New Roman\"><span lang=\"ES-MX\"><font size=\"3\"><font face=\"Times New Roman\">Con esto se evita el error de:<strong> Ajax.Autocompleter not is a contructor<\/strong><br \/>\n<\/font><\/font><\/span><\/font><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Reci?n he tenido la necesidad de implementar un poco de ajax en la parte final de un desarrollo que he estado haciendo en mis tiempos libres. Lo que necesitaba implementar era el autocomplet, siguiendo el ejemplo de un tutorial que encontr? en Internet, me percato que tiene algunos errores. He aqu? las correcciones al mismo. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-joiz"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.joiz.net\/blog\/itzcoaltam\/wp-json\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.joiz.net\/blog\/itzcoaltam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.joiz.net\/blog\/itzcoaltam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.joiz.net\/blog\/itzcoaltam\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.joiz.net\/blog\/itzcoaltam\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":0,"href":"http:\/\/www.joiz.net\/blog\/itzcoaltam\/wp-json\/wp\/v2\/posts\/134\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.joiz.net\/blog\/itzcoaltam\/wp-json\/wp\/v2\/media?parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.joiz.net\/blog\/itzcoaltam\/wp-json\/wp\/v2\/categories?post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.joiz.net\/blog\/itzcoaltam\/wp-json\/wp\/v2\/tags?post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}