ao fazer diversas solicitações do tipo
post com ajax no cake.
O que está acontecendo é o seguinte: tenho um validador de formulários
em js e ele faz um post em um arquivo php (cake) que responde true
ou false para o js. Quando a validação é feita individualmente,
ocorre perfeitamente
m in "session system" of the cake, since the id
of the session always changes with each request.
Since Now, I appreciate the help.
Fabrizio Marmitt escreveu:
ol!
estou com um problema no cake ao fazer diversas solicitaes do tipo
"post" com ajax no cake.
olá!
estou com um problema no cake ao fazer diversas solicitações do tipo
post com ajax no cake.
O que está acontecendo é o seguinte: tenho um validador de formulários
em js e ele faz um post em um arquivo php (cake) que responde true
ou false para o js. Quando a validação é feita
will choose your json
view and so on.
If I am totally of in the wrong direction, please provide some more
details and maybe I (or someone else) can help out more.
On Jun 4, 6:44 am, rocket justin...@gmail.com wrote:
I keep getting HTML in my AJAX callbacks in Cake 1.2. Does anyone know
why
I keep getting HTML in my AJAX callbacks in Cake 1.2. Does anyone know
why?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe
Hey!
I'm trying to figure out how I should use ajax with cake.
I'm able to create a page that sends out a ajax call.
The only problem I have is where to put this file that is called.
Regards
--~--~-~--~~~---~--~~
You received this message because you
No worries, glad to hear you got it all sorted. MooTools can have a
pretty steep learning curve, as it doesn't have as many one liners as
other libraries, but if you stick with it, there is a lot of power and
features under the hood. As for neat shortcuts, look at
Element.implement() you can
very cool, thanks for your help.
On Mar 11, 11:31 am, mark_story mark.st...@gmail.com wrote:
No worries, glad to hear you got it all sorted. MooTools can have a
pretty steep learning curve, as it doesn't have as many one liners as
other libraries, but if you stick with it, there is a lot of
Inside #about_desctriptioncontent you can add another div which you
will fade in :)
On Mar 9, 10:39 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:
Well it looks like I got it all working. Now I just need to figure out
how to add some kind of effect to it. If anyone has any advice on
that,
Not to be an ass, but mootools has tons of documentation, examples and
tutorials. You can find lots of information on how you use effects in
the mootools docss. Furthermore if you have more than one element
with the same ID don't expect anything to work properly. In addition
Element.load()
Also not to be an ass. But I have effects working, you are right there
is tons of documentation. I was just checking if anyone had any cool
ideas I hadn't thought of.
I also did get it working just fine with multiple elements of the same
name.
Copy and pasting can lead to a lot of issues with
Hi,
The fact that the page is loading instead of the Ajax request being
sent should signal that there's an error in your JS (if it were a Cake
err, you would have had weird responses).
Upon closer inspection, here is the problem:
$('ajax_replace').addEvent('click', function(
{
Yea, I'm sorry, I had fixed that problem a little while ago, that
isn't the solution to the problem, it's still not working, and the
page is still trying to load instead of working via AJAX.
This is my code for the buttons I am making if that makes a
difference.
echo
Also considering I am using multiple links I tried this as well:
url: $$('a.ajax_replace').get('href'),
and
$$('a.ajax_replace').addEvent('click', function()
and then changing the id's to classes. I was thinking this might work,
but alas, it did not either.
On Mar 9, 9:19 am, Arak Tai'Roth
Well I would start with seeing if the Selector is working? does the
click event even fire? I use mootools quite often, and there is
nothing in cake that prevents you from doing so. Why aren't you just
using Element.load() instead? If you only want to do a simple GET
request, I would just do
I don't want to do a simple GET request, I do want this as AJAX,
that's just the code I found. I am extremely new to MooTools, never
used it before this, in addition I am new to using AJAX period.
One thing I just realized and am slightly confused about. With the
code $('ajax_replace) I am under
So I completely revamped the code in my ajax file to this:
window.addEvent('domready', function()
{
$('ajax_replace').addEvent('click', function(event)
{
event.stop();
var req = new Request(
{
method: 'get',
Well it looks like I got it all working. Now I just need to figure out
how to add some kind of effect to it. If anyone has any advice on
that, that would be perfect.
On Mar 9, 11:43 am, Arak Tai'Roth nielsen.dus...@gmail.com wrote:
So I completely revamped the code in my ajax file to this:
Anyone able to help me with this issue?
I've tried googling anything where MooTools is used with CakePHP, but
there is almost nothing that I can find, and nothing with Ajax.
On Mar 7, 11:09 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote:
I am trying to update a div via ajax, however I am
Assuming your request is running - and i can see no reason why it
wouldnt as long as you have the correct html elements in use then i
suspect your problem lies here:
$this-autoRender = false;
exit();
By doing this your teling your controller not to render after the
action, and then your exiting
I tried that, and removed my autoRender and exit() lines and added in
$this-render(index); It didn't work.
The page is still loading, which it shouldn't be with an AJAX request
as far as I know.
In addition I added a $this-Session-setFlash('message'); inside the
isAjax() if statement and it
I am trying to update a div via ajax, however I am using MooTools, and
not the normal Prototype and Scriptaculous.
Here is the code that I have in my controller:
function view($id)
{
if ($this-RequestHandler-isAjax())
{
Citing Chris Hartjes, have everybody forgotten how to use Google?
Please, search before post, even in this group, there are at least 4
open threads about this isuue.
Cheers,
Martin Bavio
On Mar 8, 9:30 pm, Salam Fall [EMAIL PROTECTED] wrote:
Here is the piece of Code
and link to the
Hello
i have a selectbox which is populated with states when form is
loaded.
i want to populate the cities for the corresponding states in another
selectbox when i will select the
state from the selectbox
please help me by some example and code
thanks
Just search this group, this has been discussed so many times. There
is a really simple tutorial in devmoz blog. Just use google.
On Sat, Mar 8, 2008 at 8:20 AM, Rahulk [EMAIL PROTECTED] wrote:
Hello
i have a selectbox which is populated with states when form is
loaded.
i want to
Here is the piece of Code
and link to the tutorial http://www.grahambird.co.uk/cake/tutorials/ajax.php
?php
foreach ($data as $row)
{
$item = $row['Task'];
if ($item['done'] == 1)
{
print 'div class=task id=done_' . $item['id'] . '';
the CakePHP documentation is not on
the same level as Rails documentation, there is a manual which
explains quite a lot. The manual is at http://manual.cakephp.org for
Cake 1.1, and http://tempdocs.cakephp.org/#TOC12047 for Cake 1.2.
Here's the gist of Ajax in Cake.
1. Ajax updating of web pages
Hi everyone
I am looking for an example that shows how to set up Cake and Ajax so
that the following happens:
Valid Entry made:
1) user enters into a text field, and enters a valid entry [eg text]
2) user tabs to next control
3) no error is produced
Invalid Entry made [blank text box]:
1
Hi
Anybody knows how to use ajax in cake???
Yes I'm a newbie and i have no idea how to do it. Would you be so kind
as explain me how i can do it? Or where can i find a good tutorial?
Thanks a lot!!!
--~--~-~--~~~---~--~~
You received this message because you
http://grahambird.co.uk/cake/tutorials/ajax.php
On 8/25/06, carlosrg [EMAIL PROTECTED] wrote:
Hi
Anybody knows how to use ajax in cake???
Yes I'm a newbie and i have no idea how to do it. Would you be so kind
as explain me how i can do it? Or where can i find a good tutorial?
Thanks
30 matches
Mail list logo