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
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
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
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
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,
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
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
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
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
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
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.
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'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
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
-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
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
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
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
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
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 Good Morning All,
I am using Ajax submit button like
?php
echo $ajax-submit('Search',array(
'url'= array(
'controller'='reports',
'action'='activitysearch'),
'update' = 'activitydiv'));
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
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){
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
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
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
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,
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
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,
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',
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
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
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),
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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()'));
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',
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
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
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
://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
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
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?
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
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
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
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
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
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
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,
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
65 matches
Mail list logo