We use nested views in our Machii code base. This works great but I am having issues with jquery.
In my master.cfm I have all sorts of jquery includes and some jquery code .
I then have a sub page which has it's own jquery.....
Both contain a $(document).ready(){}
This the code in the sub page is running twice!!
Also I am wondering how where other people put their Javascript when dealing with nested views? Can't put it in the master page if its specific to the sub page because if the sub page is included in another file it will be missing dependancies.
The sub page needs to work completely independantly of the parent master page.
BUT
by doing this I get the error mentioned above and there is the possibility of confilicts (matching variable names, functions etc)
How do other developers deal with this issues?
thanks!