- Timestamp:
- 05/07/10 15:18:57 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js
r2728 r2736 1943 1943 * Status of storage attempt 1944 1944 */ 1945 this.setData = function(vars) { 1946 if (typeof(TROPHYIM_JSON_STORE) != undefined) { 1947 Strophe.debug("Storing JSONStore data"); 1945 this.setData = function(vars) 1946 { 1947 if ( typeof(TROPHYIM_JSON_STORE) != undefined ) 1948 { 1948 1949 var senddata = "set=" + JSON.stringify(vars); 1949 1950 var xhr = this._newXHR(); 1950 try { 1951 try 1952 { 1951 1953 xhr.open("POST", TROPHYIM_JSON_STORE, false); 1952 } catch (e) { 1954 } 1955 catch (e) 1956 { 1953 1957 Strophe.error("JSONStore open failed."); 1954 1958 return false; … … 1967 1971 } 1968 1972 } 1973 1969 1974 var testData = true; 1975 1970 1976 if (this.setData({testData:testData})) { 1971 1977 var testResult = this.getData(['testData']);
Note: See TracChangeset
for help on using the changeset viewer.