Permalink
Browse files

fixes for ie8

  • Loading branch information...
1 parent f6122df commit c3a513f38708599970551bc0a532e6407ecec83f @substack committed Jun 16, 2012
Showing with 14 additions and 11 deletions.
  1. +1 −0 example/form/server.js
  2. +12 −6 example/form/test.js
  3. +0 −2 index.js
  4. +1 −1 package.json
  5. +0 −2 proxy.js
View
@@ -13,6 +13,7 @@ http.createServer(function (req, res) {
req.on('end', function () {
res.setHeader('content-type', 'text/html');
var params = qs.parse(data);
+console.log('POST ' + JSON.stringify(params));
if (params.login === 'testling' && params.passw === 'qwerty') {
fs.createReadStream(formDir + '/success.html').pipe(res);
}
View
@@ -6,7 +6,8 @@ domready(function () {
var elem = document.getElementById('console');
return function (msg) {
var div = document.createElement('div');
- div.textContent += msg;
+ var txt = document.createTextNode(msg);
+ div.appendChild(txt);
elem.appendChild(div);
};
})();
@@ -15,15 +16,20 @@ domready(function () {
var bus = schoolbus(uri, function (win, $) {
log('href[0]=' + win.location.href);
- var form = $('#form')[0];
- $('input[name=login]').val('testling');
- $('input[name=passw]').val('qwerty');
- $('form').submit();
+ $(function () {
+ var form = $('#form')[0];
+ $('input[name=login]').val('testling');
+ $('input[name=passw]').val('qwerty');
+ $('#form').submit();
+ });
}, { log : log });
bus.next(function (win, $) {
log('href[1]=' + win.location.href);
- log($('#welcome p:first').text());
+
+ $(function () {
+ log($('#welcome p:first').text());
+ });
});
bus.appendTo(document.body);
View
@@ -26,9 +26,7 @@ function Driver (opts, vars) {
var queue = self.queue = { next : [], remote : [] };
self.client = proto(function (remote, conn) {
-console.log('proto!!!');
conn.on('ready', function () {
-console.log('ready!!!');
if (queue.next.length) {
var cb = queue.next.shift();
remote.run(String(cb), vars);
View
@@ -9,7 +9,7 @@
"test" : "test"
},
"dependencies" : {
- "dnode-protocol" : "~0.1.4",
+ "dnode-protocol" : "~0.1.5",
"postmessage" : "~0.1.3",
"jquery-browserify" : "*",
"jsonify" : "~0.0.0"
View
@@ -31,7 +31,6 @@ var client = proto(function (remote, conn) {
}).create();
client.on('request', function (req) {
-console.log('request ' + json.stringify(req));
bus.postMessage(
json.stringify([ '__testling_message', req ]),
'*',
@@ -41,7 +40,6 @@ console.log('request ' + json.stringify(req));
if (window.parent !== window) {
bus.receiveMessage(function (ev) {
-console.log('recv ' + ev.data);
try {
var msg = json.parse(ev.data);
if (msg[0] === '__testling_message') client.handle(msg[1]);

0 comments on commit c3a513f

Please sign in to comment.