I tried a simple ajax aplication using jquery, where i had my php file in an separate folder in my root and it is working.
Is there any other way to use ajax in a zend framework?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are some ways you can do it
Use ZendX_JQuery. They have helper called ajax_link, with which you can use make ajax call directly from a link.
Embed a js file, in your file and use ajax there. Use something like:
You might have to import the JQuery file like this, if you have not enabled this, using the ZendX_JQuery helper.
Directly feed script content like
<script>...</script>like you would raw htmlHowever, JQuery helper might take a bit to fully understand. If you are already familier with JQuery, and know how to use it properly. Go with option number 2.
🙂