Revision: 4405
Author: jasvir
Date: Wed Mar 23 13:16:30 2011
Log: es53.html needs to be relative to the caja server
http://codereview.appspot.com/4280062
es53.html is used not only by the playground but also by trycaja which is
hosted in a subdirectory. Til
the switch to caja.js, the loading of es53.html cannot be relative
[email protected]
http://code.google.com/p/google-caja/source/detail?r=4405
Modified:
/trunk/src/com/google/caja/demos/playground/taming.js
=======================================
--- /trunk/src/com/google/caja/demos/playground/taming.js Thu Mar 17
19:42:12 2011
+++ /trunk/src/com/google/caja/demos/playground/taming.js Wed Mar 23
13:16:30 2011
@@ -78,7 +78,7 @@
var hiddenDiv = document.getElementById("es53frames");
var currentFrame = document.createElement('iframe');
- currentFrame.src = "es53.html?rnd=" + Math.floor(Math.random() *
10000);
+ currentFrame.src = "/es53.html?rnd=" + Math.floor(Math.random() *
10000);
currentFrame.id = "es53frame";
onReadyCallbacks___.push(function(api, childFrame) {