Ignore:
Timestamp:
04/09/10 16:01:19 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Correção de problemas no ExpressoContacts? ao exibir contatos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contactcenter/js/connector.js

    r2473 r2474  
    111111                        catch (e) 
    112112                        { 
     113                                delete _this.requests[id]; 
    113114                                //showMessage(e); 
    114115                        } 
     
    117118                try 
    118119                {  
    119                         target += '&BackgroundRequest=' + Date.parse( new Date ); 
    120                         if (method == '' || method == 'GET') 
     120                        if ( method != 'POST') 
     121                                method = 'GET'; 
     122                        oxmlhttp.open( method, target, true); 
     123                        oxmlhttp.setRequestHeader( 'BackgroundRequest', Date.parse( new Date ) ); 
     124                        if ( method == 'GET') 
    121125                        { 
    122126                                if (typeof(handler) == 'function') 
     
    124128                                        oxmlhttp.onreadystatechange = sub_handler; 
    125129                                } 
    126                                 oxmlhttp.open("GET",target,true); 
    127130                                oxmlhttp.send(null); 
    128131                        } 
     
    133136                                        oxmlhttp.onreadystatechange = sub_handler; 
    134137                                } 
    135                                 oxmlhttp.open("POST",target, true); 
    136138                                oxmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 
    137139                                oxmlhttp.send(data); 
Note: See TracChangeset for help on using the changeset viewer.