Changeset 250 for trunk/common

Show
Ignore:
Timestamp:
12/07/07 21:52:56 (2 years ago)
Author:
ydnar
Message:

support URLs with existing query strings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/Client.js

    r220 r250  
    198198 
    199199Client.simpleRequest = function( url, params, callback ) { 
    200     url = url + "?" + String.encodeQuery( params ); 
     200    url = url + (url.match( /\?/ ) ? "&" : "?") + String.encodeQuery( params ); 
    201201    var transport = new XMLHttpRequest(); 
    202202    transport.onreadystatechange = function() {