OK,  Symfony 1.0.9

I want to use the javascript library ModalBox.  It requires 3  
libraries, 2 external, and it's own.

The libraries it wants to use  are these and they need to be loaded in  
this order.

prototype.js
scriptaculous.js
modalbox.js

On one page, the other developer I am working with is using  
JavascriptHelper for some AJAX calls.  JavascriptHelper installs  
prototype.js into the HTML so that it can use it, which is all fine  
and good, until I try to use ModalBox on the same page as the page  
that uses JavascriptHelper.

prototype.js
scriptaculous.js
modalbox.js
prototype.js

What we have now is for calls for js libraries, 2 of them being the  
same one.    It's easy enough for me to remove mine, but then they are  
out of order

scriptaculous.js
modalbox.js
prototype.js

I then thought well I could not remove mine and just remove the  
helper, but that doesn't work because I lose the php functions to do  
what the helper is suppose to do.

I've tried a few other things.  I created a helper of my own to make  
writing the links easier as when I downloaded and tried sfModal it  
didn't work, anywho.....   In my helper I used

                sfContext::getInstance()->getResponse()- 
 >addJavascript(sfConfig::get('sf_prototype_web_dir').'/js/prototype');
                sfContext::getInstance()->getResponse()->addJavascript('/js/ 
scriptaculous.js?load=effects');
                sfContext::getInstance()->getResponse()->addJavascript('/js/ 
modalbox');

to and it was great because now all the javascripts were in the right  
order.  The problem this caused was based on the version of  
prototype.js, symfony 1.0.9 comes with 1.5.0 and scriptaculous.js  
requires 1.6.0   I even checked the API to see if there was a way I  
could remove prototype.js from the list so I could just add my own  
when I needed it,  but I see nothing in sfWebResponse to remove a  
script from the config list.

Suggestions?  I'm at a loss at this point.

Thanks,
James






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to