Yep - the error I see via the Chrome Javascript console is:

Refused to get unsafe header "X-JSON"

And then second time round (i.e. refresh the page) it gives:

XHR finished loading: "http://127.0.0.1/search-results.cfm?ajax=true";.
search-results.cfm Resource interpreted as other but transferred with
MIME type text/html.

Generally works OK in Firefox.

I have a form which submits to /search-hotels which is where the ajax
call takes place. I am using ISAPI rewrite to make the url /search-
results.cfm into /search-hotels but the same thing happens even if I
browse to /search-results.cfm.

Any ideas?




On Sep 14, 1:01 pm, "Alex McAuley" <webmas...@thecarmarketplace.com>
wrote:
> Cant see "The above error" as described in your post ?
> Can you post the error?
>
> Alex Mcauleyhttp://www.thevacancymarket.com
>
> ----- Original Message -----
> From: "adster" <a...@littledonkey.net>
> To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
> Sent: Monday, September 14, 2009 12:44 PM
> Subject: [Proto-Scripty] Re: Refused to get unsafe header "X-JSON"
>
> Scrub that - it doesn't work first time in IE7 either.
>
> On Sep 14, 10:42 am, adster <a...@littledonkey.net> wrote:
> > Hi All,
>
> > I'm getting the above error message in Chrome (and Safari) but not in
> > Firefox or IE. However, on a page refresh it does work. How can it not
> > work first time around and then decide to work on a page refresh?
>
> > I think this is a security issue thing...any help much appreciated.
>
> > The code is:
>
> > function search() {
> > working();
> > var parameters = 'ajax=true';
> > var search_url = 'search-results.cfm';
> > // Do ajax request
> > try {
> > myAjax = new Ajax.Updater(
> > 'searchResults',
> > search_url,
> > {
> > method: 'post',
> > parameters: parameters,
> > onComplete: done
> > }
> > );
> > } catch(err) {
> > console.log(err);
> > alert(err.description);
> > }
>
> > } // EOF
>
> > window.onload = function() {
> > //$('country_select').focus();
> > //alert('loaded');
> > search();
>
> > }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to