Problem with ajax

2013-07-24 Thread Rafael Neves
Good day. I want to have a button to delete a field in the database. I'm trying to return the date only for debugging, it goes right after I do the action to delete the database. My AtividadesController is declared with the delete function as below: class AtividadesController extends

Re: Problem with Ajax Pagination

2012-05-15 Thread neto la'neta
in ur controller u can use: if($this-request-is('ajax')){ $this-render('ajax_view'); // had to be in the views folder for the controller u r using } dont include the box u r updating the the ajax view, and keep out of that box the links of the paginator helper. -- Our newest site for the

Re: Problem with Ajax Pagination

2012-05-15 Thread supp...@deep-coding.net
What should I put in the 'ajax_view.ctp'? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: Problem with Ajax Pagination

2012-05-15 Thread Jimit Kapadya
Hello My problem is how to impliment placeholder in cakephp 2.0 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this

Problem with Ajax Pagination

2012-05-11 Thread supp...@deep-coding.net
Hey there, I have a problem again :) I want to use the ajax Pagination, but it doesn't work 100%. If I click on next I get the content of the second page with ajax. But if I click then on next, I get the content of the third page, but without ajax, so the page reloads. If I click then on next,

Problem with ajax code in cake 2

2012-01-14 Thread Daniel
In Cake 2 I am using the following code in a add.ctp view file: ?php echo $ajax-link('Can not read this code? Reload.','regenerate code',array('url'='reload_captcha', 'update'='captchaID')); ? ... gives the error: Notice (8): Undefined variable: ajax [APP\View\Users\add.ctp, line 16] I then

Re: Problem with ajax code in cake 2

2012-01-14 Thread 100rk
AjaxHelper was removed. http://book.cakephp.org/2.0/en/core-libraries/helpers/js.html#JsHelper::link -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related

Re: Problem with ajax code in cake 2

2012-01-14 Thread Daniel
On Jan 14, 4:14 pm, 100rk lubomir.st...@gmail.com wrote: AjaxHelper was removed. http://book.cakephp.org/2.0/en/core-libraries/helpers/js.html#JsHelpe... OK, I changed it to: ?php echo $this-Js-link('Can not read this code? Reload.', 'reload_captcha', array('update'='captchaID')); ? What

Re: Problem with ajax code in cake 2

2012-01-14 Thread jeremyharris
The link takes the same parameters as the HtmlHelper::link() method. So, the second parameter is the url it's going to fetch. It will fetch that URL and update it with the selector you defined in the 'update' key in the options parameter. -- Our newest site for the community: CakePHP Video

Re: problem in AJAX star rating plugin v2.4

2011-10-07 Thread WebbedIT
Have you checked the image exists at the path? On Oct 5, 3:55 pm, taqman filler taqman...@gmail.com wrote: when run page star image not found and when click it I got internal server error thank -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

problem in AJAX star rating plugin v2.4

2011-10-05 Thread taqman filler
when run page star image not found and when click it I got internal server error thank -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.

Problem with Ajax submit URLs using string vs array notation

2011-05-12 Thread Matt W.
Hi. I'm still somewhat new, and tinkering around with the tutorial blog application, and having some trouble when trying to create an ajax-ified comment submission form, specifically with the url that the form ends up submitting to. This is the code I'm using for the form:

I got problem in ajax

2011-04-25 Thread taq
i'm student and now i study cakephp with begining in cakephp from novice to professional and i practice follow example in book i have problem in ajax example . i create form to recive comment and update with ajax but i click submit buttom no event commentcontroller http://upic.me/i/df

Re: I got problem in ajax

2011-04-25 Thread Jeremy Burns | Class Outfit
example in book i have problem in ajax example . i create form to recive comment and update with ajax but i click submit buttom no event commentcontroller http://upic.me/i/df/commentcontroller.jpg view http://upic.me/i/5w/2view.jpg code view http://upic.me/i/m9/viewcode.jpg

Re: I got problem in ajax

2011-04-25 Thread Tilen Majerle
-create() Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 25 Apr 2011, at 07:15, taq wrote: i'm student and now i study cakephp with begining in cakephp from novice to professional and i practice follow example in book i have problem in ajax

Re: Problem Using Ajax in Cakephp

2011-03-18 Thread Shashank
Finally i am able to use ajax. But now there is one more problem. I use 1) Ajax form 2) And made an ajax request through jquery. These are two different forms. For one form i used the ajax form. And for second one i used the jquery to make the ajax request. Bt the issue now i am facing is ajax

Re: Problem Using Ajax in Cakephp

2011-03-18 Thread cricket
On Fri, Mar 18, 2011 at 2:02 AM, Shashank cooldude17202...@gmail.com wrote: Finally i am able to use ajax. But now there is one more problem. I use 1) Ajax form 2) And made an ajax request through jquery. These are two different forms. For one form i used the ajax form. And for second one i

Problem Using Ajax in Cakephp

2011-03-17 Thread Shashank
Hi, I am badly stuck in a problem here. The situation is something like this, i have some feature of a social networking site in my site that is under development. What i want is that when a user updates his status, the page should not get refreshed, it shud just make and ajax call and return the

Re: Problem Using Ajax in Cakephp

2011-03-17 Thread Jens Dittrich
You should read the book. Especially the section about the JsHelper http://book.cakephp.org/view/1593/Methods The function you might want to use is request(). On 17 Mrz., 09:36, Shashank cooldude17202...@gmail.com wrote: Hi, I am badly stuck in  a problem here. The situation is something like

Problem with ajax pagination and mootools

2010-08-13 Thread Mariano C.
I have followed perfectly this guide ( http://mark-story.com/posts/view/creating-simple-ajax-pagination-with-cakephp-1-3-and-mootools ) but it only works at 50%. I just have two link for pagination: 1 2. If I reach page through: http://my_web.com/items/admin/page:1 the link to page 2 is active,

Hi i have a problem with Ajax related to cakephp

2010-07-28 Thread rakeshyadav rakeshyadav
Hi Good Morning All, I am using Ajax submit button like ?php echo $ajax-submit('Search',array( 'url'= array( 'controller'='reports', 'action'='activitysearch'), 'update' = 'activitydiv'));

A problem with ajax that is hard to reproduce

2010-02-07 Thread @pauldatta
I am ajax loading some html using javascript. Occasionally, instead of my responseText from being sent, the action send back the entire page with a flash message - request error. Imagine how funny it looks when it gets loaded into a div. This is very hard to reproduce. It usually happens once in a

Re: Problem with AJAX submission

2009-12-16 Thread crisuwork
You can try to use for test a classic function working with jQuery framework like // jQuery ajax example function ResetPasswordAjax(){ var email = document.getelementbyid(email).value; $.ajax({ type: GET, url: http://eopp.de/users/login/+email+;, data: , success: function(msg){

Re: Problem with AJAX submission

2009-12-14 Thread thomaus
Nobody no clue? On Dec 11, 7:16 pm, thomaus tho...@saimiris.com wrote: No request with Firebug. I don't get it, really... On Dec 11, 11:04 am, Mukhamad Ikhsan ikhsan.o...@gmail.com wrote: do you have a firebug? you can see what the response for XHR request On Fri, Dec 11, 2009 at 4:57

Re: Problem with AJAX submission

2009-12-14 Thread AD7six
On 14 dic, 20:55, thomaus tho...@saimiris.com wrote: Nobody no clue? Try using firebug to give you an error message and/or debug the javascript. If you continue to have problems here's a clue: you have a (primarily) javascript only question - this isn't a javascript specific place :) AD

Re: Problem with AJAX submission

2009-12-11 Thread thomaus
Nobody no clue? On Dec 10, 10:04 am, thomaus tho...@saimiris.com wrote: Hi John, I just did and... still nothing at all when clicking! Thanks, On Dec 10, 7:20 am, John Andersen j.andersen...@gmail.com wrote: Have you added the javascript libraries? - prototype - scriptaculous

Re: Problem with AJAX submission

2009-12-11 Thread Mukhamad Ikhsan
do you have a firebug? you can see what the response for XHR request On Fri, Dec 11, 2009 at 4:57 PM, thomaus tho...@saimiris.com wrote: Nobody no clue? On Dec 10, 10:04 am, thomaus tho...@saimiris.com wrote: Hi John, I just did and... still nothing at all when clicking! Thanks,

Re: Problem with AJAX submission

2009-12-11 Thread thomaus
No request with Firebug. I don't get it, really... On Dec 11, 11:04 am, Mukhamad Ikhsan ikhsan.o...@gmail.com wrote: do you have a firebug? you can see what the response for XHR request On Fri, Dec 11, 2009 at 4:57 PM, thomaus tho...@saimiris.com wrote: Nobody no clue? On Dec 10, 10:04

Re: Problem with AJAX submission

2009-12-10 Thread thomaus
Hi John, I just did and... still nothing at all when clicking! Thanks, On Dec 10, 7:20 am, John Andersen j.andersen...@gmail.com wrote: Have you added the javascript libraries? - prototype - scriptaculous Enjoy,    John On Dec 9, 9:03 pm, thomaus tho...@saimiris.com wrote: Hi John,

Problem with AJAX submission

2009-12-09 Thread thomaus
Hi there, I just built an AJAX form and it doesn't work at all! My code: div id=messages style=display: none h3Recover lost password/h3 pEnter your e-mail address and we will send a reset link to your email ?php echo $form-create('User'); ? ?php echo $form-input('email',

Re: Problem with AJAX submission

2009-12-09 Thread John Andersen
I do observe that your ajax-submit is supposed to call your login action in your users controller and not your recoverPassword action! Please check your code or your statement :) Enjoy, John On Dec 9, 3:03 pm, thomaus tho...@saimiris.com wrote: Hi there, I just built an AJAX form and it

Re: Problem with AJAX submission

2009-12-09 Thread thomaus
Hi John, Thanks for helping. I actually made a mistake when pasting the code. The original trial was ?php echo $ajax-submit(__('send', true), array('url'= array ('controller'='users', 'action'= 'recoverPassword'), 'class'= 'button', 'update' = 'messages')); ? and the same happens, basically

Re: Problem with AJAX submission

2009-12-09 Thread John Andersen
Have you added the javascript libraries? - prototype - scriptaculous Enjoy, John On Dec 9, 9:03 pm, thomaus tho...@saimiris.com wrote: Hi John, Thanks for helping. I actually made a mistake when pasting the code. The original trial was ?php echo $ajax-submit(__('send', true),

Problem with AJAX

2009-12-03 Thread SugarCRM Geek
hi all, am using cake 1.2 i need a call a function add() in my controller from my index.ctp page. the code goes like this index.ctp ?php echo $ajax-form('add');? td width=30%?php echo $form-input ('new_role');?/td td width=46%?php echo

Re: Speed up load time page problem with Ajax Helper

2009-08-02 Thread Dr. Loboto
No. But load speed problem you can solve by aggressive caching of static files. On Aug 1, 8:25 pm, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi I would speed up loading time page so I would create only one javascript and load it at the bottom of page. Now I have this problem

Speed up load time page problem with Ajax Helper

2009-08-01 Thread marco.rizze...@gmail.com
Hi I would speed up loading time page so I would create only one javascript and load it at the bottom of page. Now I have this problem in this only one javascript I have also prototype and scriptaculous and in my page I use for example Ajax helper but obiusvly I get a javascript error if I load

Problem with $ajax-link

2009-01-09 Thread Rando
Hello! I create some ajax link which must load data and then show slide some div with this content. Here's my code: ?php $pid = $project['Project']['id']; echo $ajax-link('+', array('controller' = 'tasks', 'action' = 'add', $project ['Project']['id']), array

Re: - Problem with Ajax and encoding

2008-06-16 Thread Webrickco
Thanks to Spark and AD7six for their kind help. I figured it out (big part of the problem was in my local httpd.conf file). Let me just make a summary so that everybody keep in mind when dealing with UTF-8 encoding: How to display Portuguese encoding or general UTF8 encoding in Cake or dynamic

[Cake 1.2. RC1] - Problem with Ajax and encoding

2008-06-15 Thread Webrickco
Hi, I have a problem figuring out why the result of an Ajax execution is not in the correct encoding under cake. You can see the result at http://webrickco.com/caketest. Using the user/password david/test and clicking on the first link: Alterar a configuração dos menus. At this point the result

Cake 1.2. RC1 - Problem with Ajax and encoding

2008-06-15 Thread Webrickco
Hi, I have a test page made with cake 1.2 RC1 and everything is fine despite the lack of documentation on the matter. I have however a little problem on my production site that doesn't happen on local. The problem is with encoding. Everything looks fine until i fire an event calling Ajax and

Re: - Problem with Ajax and encoding

2008-06-15 Thread AD7six
On Jun 15, 11:33 am, Webrickco [EMAIL PROTECTED] wrote: Hi, I have a problem figuring out why the result of an Ajax execution is not in the correct encoding under cake. because you are not using UTF-8, ajax requests always use and expect UTF-8. You can see the result

Re: Cake 1.2. RC1 - Problem with Ajax and encoding

2008-06-15 Thread AD7six
On Jun 15, 12:13 pm, Webrickco [EMAIL PROTECTED] wrote: Hi, I have a test page made with cake 1.2 RC1 and everything is fine despite the lack of documentation on the matter. book.cakephp.org I have however a little problem on my production site that doesn't happen on local. The problem

Re: - Problem with Ajax and encoding

2008-06-15 Thread Webrickco
Thank for your answer. I was expecting you say something like this. Obviously i tryed UTF-8 as first place along with many other configuration of charset. Unfortunately, if i put $html- charset('UTF-8'); you can look at the result now at http://www.webrickco.com/caketest It's even worse!!! This

Re: - Problem with Ajax and encoding

2008-06-15 Thread AD7six
On Jun 15, 3:20 pm, Webrickco [EMAIL PROTECTED] wrote: Thank for your answer. I was expecting you say something like this. Obviously i tryed UTF-8 as first place along with many other configuration of charset. Unfortunately, if i put $html- charset('UTF-8'); you can look at the result now

Re: [Cake 1.2. RC1] - Problem with Ajax and encoding

2008-06-15 Thread Spark
database default collation is just a little part, and doesn't matter as much as you may think. database connection is far more important (you can change it in config/database.php), the file you are editing is, i'm almost for sure, wrongly encoded. Try To change it in Aptana or Eclipse (under the

Re: - Problem with Ajax and encoding

2008-06-15 Thread Webrickco
Thx for your kind answers. The point is that everything looks fine locally and when i put everything on the server the Ajax request fail to present data properly, however requests to the database and HTML presentation continue to work fine in ISO-8859-1, and unfortunately not in UTF-8. I would

Problem with ajax

2008-04-23 Thread mkaelkael
hello, I have this js function updateopt(id){ id= document.getElementById(id).innerthHTML; new Ajax.Updater('div2', '/listlevel.thtml', { parameters: { id: id }}); } listlevel.thtml is a views and in the same directory than the index.thml index.thtml h1Secteur/h1 ?php echo

Re: Problem with ajax

2008-04-23 Thread Davide
mkaelkael wrote: ... listlevel.thtml is a views and in the same directory than the index.thml Don't know if it's right to refer directly to a thtml file, but try remove the initial slash from /listlevel.. so linking to listlevel... Bye Davide -- Live life like you're gonna die. Because

Problem with $ajax-submit

2008-04-18 Thread MB
Here is my submit button -- print $ajax-submit('Save', array('url' = '/klasses/addlink', 'loaded'='closesubject()')); The save works but the 'closesubject()' function which is a javascript doesnt ever seem to get called. Here is the javascript: script type=text/javascript language=JavaScript

Re: Problem with $ajax-submit

2008-04-18 Thread b logica
Are you sure that 'loaded' is appropriate? Are you loading anything into the page? Try 'success' instead. On Fri, Apr 18, 2008 at 9:55 PM, MB [EMAIL PROTECTED] wrote: Here is my submit button -- print $ajax-submit('Save', array('url' = '/klasses/addlink', 'loaded'='closesubject()'));

Problem with AJAX form

2008-03-03 Thread iperich
Hi gurus, I have the following issue: I have a form that works ok processing /comments/add this way: form action=?php echo $html- url('/comments/add'); ? method=post. it works ok, but when i want to do the same with ajax, I do echo $ajax-form(array('action' = '/comments/add'), 'post',

Re: Problem with Ajax: observeField

2007-07-06 Thread minglee
I solved the problem. Use magic '$' function, and avoid using ajax to create the field. On Jul 5, 11:28 am, minglee [EMAIL PROTECTED] wrote: I use $Ajax-observeField, with Option['with'='type_id'], however, an error reported: Form.Element.Serializers[method] is not a function. But from the

Problem with Ajax: observeField

2007-07-04 Thread minglee
I use $Ajax-observeField, with Option['with'='type_id'], however, an error reported: Form.Element.Serializers[method] is not a function. But from the manual, to use Option['with'] of phpCake Ajax, only need to call by DOM ID, and in my case 'type_id' is. What is the problem? By the way, where can

paginator-numbers - problem with ajax ...

2007-06-24 Thread puatki
Hello ... ;) I have problem with $paginator-numbers. When I execute code: $paginator-sort('TOPIC', 'topic', array('url'= array('controller'='Projects', 'action'='sort'),'update'='list')); everything works ok and my site use ajax. When I try do the same with $paginator-numbers echo

RE: paginator-numbers - problem with ajax ...

2007-06-24 Thread Mariano Iglesias
://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de puatki Enviado el: Domingo, 24 de Junio de 2007 10:22 a.m. Para: Cake PHP Asunto: paginator-numbers - problem with ajax ... echo $paginator-numbers(array('url'= array('controller

Re: Problem with Ajax Chat and hosting

2007-04-26 Thread MattC
Hey jaimeed, I wrote the ajax chat plugin. You definitely don't need to do anything special on the server side. The error makes me think the url is wrong. I run all of my sites from the root domain so the path is always /chat/update. I would guess the problem is either the extra / cake

Re: Problem with Ajax Chat and hosting

2007-04-26 Thread jaimeed
Hi MattC. Thanks for your answer. I changed the url, and I tried another chat_id, but I get the same mistake...,, I have a question, I can't to enable the mod_rewrite in the webserver, and also I can't to change the httpd.conf for the production setup...maybe it causes the problem?

Problem with Ajax Chat and hosting

2007-04-24 Thread jaimeed
Hi folks! I have downloaded the ajax chat plugin and ran it in my site...In localhost it works perfectly but, when I upload it to the hosting I get this error: Forbidden You don't have permission to access /cake/chat/update/chat71 on this server. Additionally, a 404 Not Found error was

Problem with Ajax Chat and hosting

2007-04-24 Thread jaimeed
Hi folks! I have downloaded the ajax chat plugin and execute it in my site...In localhost it works perfectly but, when I upload it to the hosting I get this error: Forbidden You don't have permission to access /cake/chat/update/chat on this server. Additionally, a 404 Not Found error was

Re: newbie problem cakePHP/Ajax

2007-03-16 Thread Mike Griffin
On 3/5/07, Bart op de grote markt [EMAIL PROTECTED] wrote: I checked and in the taskscontroller I find: var $helpers = array('Html', 'Javascript', 'Ajax'); So it must be another problem, though the $html variable seems to work... Hi. Not sure if you managed to fix this problem yet, but what

Re: newbie problem cakePHP/Ajax

2007-03-16 Thread Bart op de grote markt
Hi. Not sure if you managed to fix this problem yet, but what I found was that I needed to add the following line after the link to scriptaculous: ?php print $javascript-link('controls.js') ? After this, all the javascript errors just melted away and it all worked. Mike. Hey thanks for

Re: newbie problem cakePHP/Ajax

2007-03-05 Thread Bart op de grote markt
Hello, I checked and in the taskscontroller I find: var $helpers = array('Html', 'Javascript', 'Ajax'); So it must be another problem, though the $html variable seems to work... This is the line (35) to which the error refers (see my first post). It's indeed the first place where the

newbie problem cakePHP/Ajax

2007-03-01 Thread Bart op de grote markt
Hello, I just installed WAMP-server (Apache/Php/Mysql) and cakePHP. I'm seeing the startpage that is mentioned on the cakePHP-site and the database-connection is also right. Now I was looking for some tutorials and I found this one: http://grahambird.co.uk/cake/tutorials/ajax.php. One of the

Re: newbie problem cakePHP/Ajax

2007-03-01 Thread Langdon Stevenson
Hi Bart It's hard to know what the problem is, but my guess would be that the javascript file/s are not being loaded. It would help if you posted the page source so that we can see what is on line 35, and what the link tags are outputting. Regards, Langdon I did everything as mentioned,

Re: newbie problem cakePHP/Ajax

2007-03-01 Thread John David Anderson (_psychic_)
On Mar 1, 2007, at 2:12 PM, Langdon Stevenson wrote: Hi Bart It's hard to know what the problem is, but my guess would be that the javascript file/s are not being loaded. It would help if you posted the page source so that we can see what is on line 35, and what the link tags are