Becouse this
>                 async: false -->> ,  <<---});

In IE, the objects definitions must be perfectly make. (sorry for my
english)

Good:
{
 a: "b",
 c: "d"
}
WRONG:
{
 a: "b",
 c: "d",
}

the second definition, in Firefox or Saphari is good becouse, the
internal interpreter fix it, but IE not and result in a broken script.



On 15 feb, 00:36, cindy <ypu01...@yahoo.com> wrote:
> Following code works in firefox, but doesn't work in IE.  why?
>
> sendRequest:function(mode, request, argument)
>         {
>                 if(mode=="prototype")
>                 return $.ajax({
>                 url: "xml/"+request+".xml",
>                 error: function(){
>                         alert('Error loading xml');
>                         },
>                 async: false,});
>
>                 else
>                 {
>                  var queryStr='';
>                  if(request=="summary")
>                         queryStr='opcode=get_data&type=8';
>                  else if(request=="connectivity")
>                         queryStr='opcode=get_data&type=4';
>                  else if(request=="ping")
>                     queryStr='opcode=execute&cmd=ping&argument=' + argument;
>                  return $.ajax({
>                         type: "get",
>                 url: rap_util.urlroot,
>                 data: queryStr,
>                 error: function(){
>                         alert('Error loading '+request);
>                         },
>                 async: false,
>                 dataType: 'xml'});
>                 }
>         },

Reply via email to