Hey Benjamin,

I haven't thought it through 100% yet, but essentially I'm thinking along
the lines of dynamically including javascript based on naming conventions
(pairing with the similarly named view script). I'm also thinking of doing
the same sort of thing when including various classes that might require
javascript files of their own.

I imagine I will dynamically add them to the javascript stack in ZF if they
(they being a .js file with a matching path or name) exist in the expected
location. Then I think we will override the default action for printing out
the script tags and minify/compress the scripts.

The questions remaining are:
1) where to store the js file (does it make sense for them to reside in the
same directory as the view script with the same name but a .js extension or
in a seperate js folder with matching directory structure... same sort of
idea for the classes)
2) where to store reusable JS code files that aren't tied to any specific
view or class
3) where to implement the dynamic inclusion of js files (view helper?)

I will take a lot of this thinking to our in-house ZF expert as I'm more of
a top stack guy. Any suggestions would be great.

Thanks,
Robert



beberlei wrote:
> 
> Hello Robert, Hello Josh,
> 
> thanks for the comments on jQuery. I do see the point in your criticism
> and 
> share it a bit. Personally I think when the jQuery integration plays best
> is 
> when you are using it for prototyping, admin areas and scaffolding
> generation.
> 
> If you want to use the jQuery or Dojo for a community like website or very 
> heavy workflow optimized behaviour website (like modern enterprise 
> applications) you probably always have to get your hands dirty with js
> code 
> yourself. From my personal experience I can say this gives very good
> results 
> with jQuery although i am a very bad frontend programmer. :-)
> 
> @Robert: What are your thoughts about javascript/view coupling? Any more 
> comments on your idea? Maybe its worth integrating.
> 
> greetings,
> Benjamin
> 

-- 
View this message in context: 
http://www.nabble.com/Is-javascript-framework-integration-into-ZF-really-that-beneficial--tp21298769p21301530.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to