logo       

[symfony-users] Problems with Ajax: msg#00868

symfony-users

Subject: [symfony-users] Problems with Ajax


Hello everyone, I am reading the Symfony Book on the Web, specifically
Chapter 11. "Ajax Integration", and I am trying to implement some of
the examples. I am trying to use the helper remote_function(), I had
created a module "main" with two actions, "index" and "greet" at
indexSuccess.php I wrote the following:

<?php use_helper('Javascript') ?>
<div id="greet"></div>
<?php echo javascript_tag(
remote_function(array(
'update' => 'greet',
'url' => 'main/greet',
))
) ?>

and at greetSuccess.php:

<?php echo "Hello, I am Ajax!"?>

When I execute: http://localhost/easyajax/web/main

nothing happend, Am I doing something wrong?

Thanks...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-users@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
symfony-users+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise