Subversion Repositories Applications.papyrus

Rev

Rev 1318 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1318 Rev 1422
Line 3... Line 3...
3
 
3
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<head>
5
<head>
6
	<title></title>
6
	<title></title>
-
 
7
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
7
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
8
	<!-- Security protection: uncomment the script tag to enable. -->
8
	<script type="text/javascript">
9
	<!-- script type="text/javascript" -->
9
	// <!--
10
	// <!--
10
	/*
11
	/*
11
	This file is really focused on just sending one message to the server, and
12
	This file is really focused on just sending one message to the server, and
12
	receiving one response. The code does not expect to be re-used for multiple messages.
13
	receiving one response. The code does not expect to be re-used for multiple messages.
Line 220... Line 221...
220
 
221
 
Line 221... Line 222...
221
		xipStateId = config.id;
222
		xipStateId = config.id;
222
 
223
 
-
 
224
		//Remove the query param for the IE7 recursive case.
-
 
225
		xipServerUrl = fixServerUrl(config.server).replace(/(\?|\&)dojo\.fr\=1/, "");
-
 
226
		
-
 
227
		//Make sure we don't have a javascript: url, just for good measure.
-
 
228
		if(xipServerUrl.split(":")[0].match(/javascript/i)){
-
 
229
			throw "Invalid server URL";
223
		//Remove the query param for the IE7 recursive case.
230
		}
Line 224... Line 231...
224
		xipServerUrl = fixServerUrl(config.server).replace(/(\?|\&)dojo\.fr\=1/, "");
231
 
225
		xipUseFrameRecursion = config["fr"];
232
		xipUseFrameRecursion = config["fr"];
226
		
233
		
Line 232... Line 239...
232
		
239
		
233
		//Start counter to inspect hash value.
240
		//Start counter to inspect hash value.
Line 234... Line 241...
234
		setInterval(pollHash, 10);
241
		setInterval(pollHash, 10);
235
 
242
 
-
 
243
		var clientUrl = window.location.href.split("#")[0];
236
		var clientUrl = window.location.href.split("#")[0];
244
		var iframeNode = document.getElementsByTagName("iframe")[0];
237
		document.getElementById("iframeHolder").innerHTML = '<iframe src="'
245
		iframeNode.id = xipStateId + "_frame";
238
			+ makeServerUrl("init", 'id=' + xipStateId + '&client=' + encodeURIComponent(clientUrl)
-
 
239
			+ '&fr=' + xipUseFrameRecursion) + '" id="' + xipStateId + '_frame"></iframe>';
-
 
240
			
246
		iframeNode.src = makeServerUrl("init", 'id=' + xipStateId + '&client='
Line 241... Line 247...
241
		
247
			+ encodeURIComponent(clientUrl) + '&fr=' + xipUseFrameRecursion);
242
	}
248
	}
243
 
249
 
Line 254... Line 260...
254
	<h4>The Dojo Toolkit -- xip_client.html</h4>
260
	<h4>The Dojo Toolkit -- xip_client.html</h4>
Line 255... Line 261...
255
 
261
 
256
	<p>This file is used for Dojo's XMLHttpRequest Iframe Proxy. This is the "client" file used
262
	<p>This file is used for Dojo's XMLHttpRequest Iframe Proxy. This is the "client" file used
Line 257... Line 263...
257
	internally by dojo.io.XhrIframeProxy.</p>
263
	internally by dojo.io.XhrIframeProxy.</p>
258
	
264
	
259
	<span id="iframeHolder"></span>
265
	<iframe src="javascript:false"></iframe>