Hello all,
I am using Symfony 1.2.2 with doctrine plugin. I am trying the small
example given in Symfony documentation, about the link_to_remote and
submit_to_remote helpers.
The page loads perfectly but when I click, in Firefox, firebug
displays this error....
Ajax is not defined
[Break on this error] new (Ajax.Updater)("update_location", "/
frontend_dev.php/item/add", {asynchronous: true, evalScripts: false,
parameters: Form.serialize(this.form)});
This is my code when calling the helper in my view...
<?php if_javascript(); ?>
<?php echo submit_to_remote(
'add_ajax',
'Add using Ajax',
array(
'update' => 'update_location',
'url' => 'item/add'
)
) ?>
<?php end_if_javascript(); ?>
I know that this Ajax.Updater is defined in the prototype library and
since I am using Symfony 1.2.2 so it is there inside the sfProtoculous
plugin. I have already published that plugin, so I have /web/
sfProtoculousPlugin/js containing all the necessary libraries. Is
there something that I am missing?
Thanks and Regards
Vikram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---