title: getting an error "ns_error_unknown_protocol
body: <p>im getting an error "ns_error_unknown_protocol" when i run this code in firefox.whats the problem with my code?i run this in google chrome,but it runs without any problem.it doesnt display any error messages?please help me out.</p>
  
  <p>my javascript is</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function() 
      {
  var wrong="nnnn.htm";  
      var name = prompt("Please type in the password",''); 
      $.ajax({
      type: 'POST',
      dataType: 'json',
      url: 'password.php',
      data: {
      name: name
          },
      success: function(data) 
      {
          if (data.success == "good") 
               {
  
  
                   window.location.href =data.address;
  
               }    
          else 
               {
                   alert(data);
                  location.href=wrong
               }
      },
      error: function(data) 
      {
  
          location.href=wrong;
      },
          });
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>my php page is</p>
  
  <pre><code>&lt;?php
  $password="123";
  $prompt_password=$_POST['name'];
  $success="good";
  if($prompt_password==$password)
  {
  $output =  array('success'=&gt;'good',
            'address'=&gt;'itms-services://?action=download-   manifest&amp;url=http://feathersoft.net/projects/tests/Corelogic/Alert/AlertApp.plist');
  echo json_encode($output,JSON_FORCE_OBJECT);
  }
  else
  {
  echo "error";
  }
  
  ?&gt;
  </code></pre>