Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredj authored and phiggins42 committed Nov 20, 2011
1 parent 479e897 commit 3445be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo/withDoc.rst
Expand Up @@ -53,12 +53,12 @@ Example 1: Using dojo.withDoc alter documents in an iFrame.
dojo.require("dijit.form.Button");
function changeStyles() {
//Look up the node we'll stick the text under.
var button = dijit.byId("changeStyles");
dojo.connect(button, "onClick", function() {
//Apply styles to the document contained by the iframe
var frameDoc = dojo.byId("simpleFrame").contentWindow.document;
dojo.withDoc(frameDoc, function() {
console.debug(dojo.doc);
var tds= dojo.query("td");
dojo.forEach(tds, function(cell) {
dojo.style(cell, "color", "red");
Expand Down

0 comments on commit 3445be1

Please sign in to comment.