Can you send us the real URL? Maybe someone can get an idea on the problem.
T.J. Crowder wrote: > Hi, > > Please don't bump-post. If anyone has any ideas, they'll see the > thread and reply. > -- > T.J. Crowder > tj / crowder software / com > www.crowdersoftware.com > > > On Sep 15, 11:46 am, adster<[email protected]> wrote: > >> Anyone got any ideas on this one? >> >> Thanks, >> >> Adam >> >> On Sep 14, 1:17 pm, adster<[email protected]> wrote: >> >> >> >> >>> 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"<[email protected]> >>> 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"<[email protected]> >>>> To: "Prototype& script.aculo.us"<[email protected]> >>>> 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<[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
