title: Why would javascript eval work in chrome, safari, but in firefox only when firebug on?
body: <p>Thanks to <a href="https://stackoverflow.com/questions/4333326/why-doesnt-javascript-execute-in-php-file-loaded-with-ext-ajax-request/4333374#4333374">this answer</a> I was able to get javascript to execute when being loaded via an ExtJS AJAX call.</p>
  
  <p>However, the following code does not work the same in all browsers (on mac):</p>
  
  <ul>
  <li>chrome: works, alert pops up</li>
  <li>safari: works, alert pops up</li>
  <li>firefox: works, <em>but only when Firebug is enabled</em>, when Firebug is not enabled, the script is ignored</li>
  </ul>
  
  <p><strong>How can I get javascript to execute via AJAX call in Firefox without having Firebug installed?</strong></p>
  
  <pre><code>Ext.onReady(function(){
  
      var menuItemStart = new Ext.Panel({
          id: 'panelStart',
          title: 'Start',
          html: 'This is the start menu item.',
          cls:'menuItem'
      });
  
      var menuItemApplication = new Ext.Panel({
          id: 'panelApplication',
          title: 'Application',
          html: 'this is the application page',
          cls:'menuItem'
      });
  
      var regionMenu = new Ext.Panel({
          region:'west',
          split:true,
          width: 210,
          layout:'accordion',
          layoutConfig:{
              animate:true
          },
          items: [ menuItemStart, menuItemApplication ]
      });
  
      var regionContent = new Ext.Panel({
          id: 'contentArea',
          region: 'center',
          padding:'10',
          autoScroll: true,
          html: 'this is the content'
      });
  
      new Ext.Viewport({
          layout: 'border',
          items: [ regionMenu, regionContent ]
      });
  
      menuItemStart.header.on('click', function() {
          Ext.Ajax.request({
              url: 'content/view_start.php',
              success: function(objServerResponse) {
                  regionContent.update(objServerResponse.responseText);
              }
          });
      });
  
      menuItemApplication.header.on('click', function() {             
          Ext.Ajax.request({
              url: 'content/view_application.php',
              success: function(objServerResponse) {
                  var responseText = objServerResponse.responseText;
                  console.log(responseText);
                  regionContent.update(responseText);
                  var scripts, scriptsFinder=/&lt;script[^&gt;]*&gt;([\s\S]+)&lt;\/script&gt;/gi;
                  while(scripts=scriptsFinder.exec(responseText)) {
                      eval(scripts[1]);
                  }
              }
          });
  
      });
  });
  </code></pre>
  
  <p>The base that is being loaded:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      alert('inside application view');
  &lt;/script&gt;
  &lt;?php
  echo 'this is the application view at ' . date('Y-m-d h:i:s');
  ?&gt;
  </code></pre>