title: AJAX and NS_ERROR_DOM_BAD_URI error
body: <p>I have been having the following problem, i think it's probably due to the fact that my approach may be misguided, but hopefully with your help i can sort this out!</p>
  
  <p>Basically, for my site i have a search provider (who has been paid, so i am not breaking any terms of use). When the search form is subbmitted i am directed to their domain where the results are displayed.</p>
  
  <p>Whilst i can customise the look of the returned results, there is only so far i can take this, and will never get it fitting in fully with the look and feel of my site.</p>
  
  <p>So, i thought, instead of doing the regular GET via the form, i would do an AJAXified GET and then inject the returned response into a div on the page - allowing me to maintain the look and feel and never leave our domain.</p>
  
  <p>This works fine in IE but in firefox i get "<code>text/html (NS_ERROR_DOM_BAD_URI)</code>" as an error. Having done some research i have discovered this is due to the AJAX request hitting a site outside of our domain.</p>
  
  <p>Thus, is there a better approach i can take to achieve the same effect? or is there a way i can get firefox and my AJAX request to play nice? What is really strange is that if i observe the request in the HttpFox (a neat FF add on), it reports the above error, but looking at the content returned it is all there as expected - so why can't i access it!!</p>
  
  <p>I would really like to get this to work as it is a whole lot simpler than rewriting all our CSS and stuff to get their results page looking almost like our site. Any help in this area would be much appreciated.</p>