br0ken Posted February 7, 2010 Share Posted February 7, 2010 I'm using some software tha combines JS using PHP. This works fine except in IE6. In IE6 the file isn't treated as Javascript; instead it is opened as a PHP file to download. Beacuse of this the JS isn't parsed and therefore doesn't work! Can any one help? Link to comment https://forums.phpfreaks.com/topic/191259-combine-js-with-php/ Share on other sites More sharing options...
Buddski Posted February 7, 2010 Share Posted February 7, 2010 So you have a PHP file that outputs Javascript, yes? How are you accessing the file in IE6 (shudders)? It sounds to me like you arent processing the file with a PHP server... Link to comment https://forums.phpfreaks.com/topic/191259-combine-js-with-php/#findComment-1008439 Share on other sites More sharing options...
br0ken Posted February 7, 2010 Author Share Posted February 7, 2010 It's definitely a PHP server as I'm running a PHP eCommerce site on the server. Here is the code copied from the source. <script type="text/javascript" src="http://www.sunglassessave.com/js/index.php?c=auto&f=,prototype/prototype.js,prototype/validation.js,scriptaculous/builder.js,scriptaculous/effects.js,scriptaculous/dragdrop.js,scriptaculous/controls.js,scriptaculous/slider.js,varien/js.js,varien/form.js,varien/menu.js,mage/translate.js,mage/cookies.js,js/effects.js,jquery/jquery-1.4.1.min.js" ></script> If I include each file separately it works fine and it works fine in Firefox. Link to comment https://forums.phpfreaks.com/topic/191259-combine-js-with-php/#findComment-1008444 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.