context: Freja.View.Renderer.RemoteXSLTransformer.prototype.transform = function(model, view) {        var d = new MochiKit.Async.Deferred();	// prepare posted data  (no need to send the XSL document, just its url)	var xslUrl = view.url;	var postedData = "xslFile=" + encodeURIComponent(xslUrl) + "&xmlData=" + encodeURIComponent(Sarissa.serialize(model.document));//	if (xslParams)//		postedData  = postedData + "&xslParam=" + encodeURIComponent(xslParams.toString());	// send request to the server-side XSL transformation service	var req = new XMLHttpRequest();	req.onreadystatechange = function() {		if (req.readyState == 4) {			if (req.status == 200) {				d.callback(req.responseText);			} else {				d.errback(req.responseText);			}		}	}	req.open("POST", Freja.AssetManager.XSLT_SERVICE_URL, true);	req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");	if (Freja.AssetManager.USERNAME && Freja.AssetManager.PASSWORD) {		var auth = "Basic " + Freja.Base64.encode(Freja.AssetManager.USERNAME + ":" + Freja.AssetManager.PASSWORD);		req.setRequestHeader("Authorization", auth);	}	req.send(postedData);	return d;}
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/Freja.js/buggy/trunk/lib/Freja.js