Alex Tech Adventures The webs best tutorials!

Welcome, Guest
Please Login or Register.    Lost Password?

AJAX requests with Zend Framework
(1 viewing) (1) Guest
Go to bottomPage: 12345
TOPIC: AJAX requests with Zend Framework
#128
AJAX requests with Zend Framework 2 Years, 3 Months ago Karma: 16
** This thread discusses the content article: AJAX requests with Zend Framework **

alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
#129
Re:AJAX requests with Zend Framework 2 Years, 3 Months ago Karma: 0
In the end you change div#books to #bookResponse and you append div#book inside #bookResponse in the loop. Doesn't that mean you have multiple div#books ? That would mean you have the same ID more than once, which isn't really correct...
Yorian
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#130
Re:AJAX requests with Zend Framework 2 Years, 3 Months ago Karma: 16
AAAAAA!!!
Can't believe I did that. Thank you for noting.
I will make an adjustment in the article and update the source.
alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
#137
AJAX requests with Zend Framework 2 Years, 3 Months ago Karma: 0
I've being checking your site if you added new tutorial. This Ajax requests one looks very good except the sound quality (my office was really noisy ).
Actually, I really don't know much about JavaScript and Ajax.
After this tutorial, I got this tutorial will not work on IE6/7 and Firefox 3.0 or above unless if we include JavaScrip JSON parser script. If you have time please consider how we can include and use jQuery JSON parser. And you didn't mention how it would be on Google Chrome.

Actually, it is a little bit difficult to see the javascript code. Is there any simple and Zend-like way to use Ajax without duplicating many things you mentioned?
beregu
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#139
Re:AJAX requests with Zend Framework 2 Years, 3 Months ago Karma: 16
For non JSON compatible browsers, just include json parser JS file, which is found on json.org/json2.js, in the head.

ZF doesnt provide much actual ajax functionalities. Zend_Dojo and ZendX_JQuery are there to asist with common front end tasks like controllers, forms etc. If you want to do anything advanced, like parse data or more complex user interaction, you still have to get down to JS development. Often, even the default Zend_Dojo and JQuery functions are not enough: they are either simplified versions or do not have certain parts altogether. Creating JavaScript functions for things like data parsing is something completly beyond zend.

I am not sure about chrome. Can't test it without windows atm. I cannot find any references on chrome and json. Can anyone confirm?
alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
#142
AJAX requests with Zend Framework 2 Years, 3 Months ago Karma: 0
Thank you Alex.

I'm on Windows. I just extracted and tried to run the application after creating the db and tables, but it is not working on both firefox and chrome. Firefox shows only empty page and Chrome shows an empty page with 403 Forbidden, in the browser title.

I'm using wamp on my windows. All other projects are working properly with the following vhost record:

NameVirtualHost *:80


ServerName xet
DocumentRoot "G:/Profiles/BEREGU/Projects/Web Projects/Active Projects/xet/public"


Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
beregu
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12345
Moderators: alexanderrv
You are here: Home Forum

Statistics

Members : 1401
Content : 42
Web Links : 1
Content View Hits : 191192

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 55 guests online