includes/clientside/static/ajax.js
changeset 133 af0f6ec48de3
parent 118 0c5efda996bf
child 169 250aeb408ed7
equal deleted inserted replaced
132:0ae1b281a884 133:af0f6ec48de3
    41   ajax.setRequestHeader("Connection", "close");
    41   ajax.setRequestHeader("Connection", "close");
    42   ajax.send(parms);
    42   ajax.send(parms);
    43 }
    43 }
    44 
    44 
    45 function ajaxEscape(text)
    45 function ajaxEscape(text)
       
    46 {
       
    47   /*
       
    48   text = escape(text);
       
    49   text = text.replace(/\+/g, '%2B', text);
       
    50   */
       
    51   text = window.encodeURIComponent(text);
       
    52   return text;
       
    53 }
       
    54 
       
    55 function ajaxAltEscape(text)
    46 {
    56 {
    47   text = escape(text);
    57   text = escape(text);
    48   text = text.replace(/\+/g, '%2B', text);
    58   text = text.replace(/\+/g, '%2B', text);
    49   return text;
    59   return text;
    50 }
    60 }