Cant see "The above error" as described in your post ?
Can you post the error?


Alex Mcauley
http://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