Page 1 of 1

Zend FrameWork & jQuery - downgrade gracefully

Posted: Mon Jun 08, 2009 10:22 am
by jaoudestudios
i am not sure if this is the correct place to post this, so I am sure it will get moved if required.

i am using Zend FrameWork and I usually use jQuery for fancy animation, ajax etc. However I have not mixed the 2 before. I know ZF has a helper for jQuery, however it appears that it will not downgrade gracefully. So i would like to add the jQuery on afterwards, so I can continue to progressively enhance my site. Is there a neat and tidy way of doing this? or do I need to still make separate php files that jquery calls in for ajax stuff?

Re: Zend FrameWork & jQuery - downgrade gracefully

Posted: Mon Jun 08, 2009 1:07 pm
by Christopher
Can you give us a code example. Typically the enhancements would call separate controller methods that would return either View partials or just data from the Model in XML/JSON.

Re: Zend FrameWork & jQuery - downgrade gracefully

Posted: Mon Jun 08, 2009 11:46 pm
by jaoudestudios
arborint wrote:Typically the enhancements would call separate controller methods that would return either View partials or just data from the Model in XML/JSON.
Ah ha, that is what I was going to try and do, but was not sure if it was right. I will put together an example.

Cheers bud!