<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.hyperstruct.net/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.hyperstruct.net/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0" xml:base="http://hyperstruct.net">
<channel>
 <title>hyperstruct - Comments</title>
 <link>http://hyperstruct.net</link>
 <description>Comments</description>
 <language>en</language>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.hyperstruct.net/hyperstruct_comments" type="application/rss+xml" /><item>
 <title>Yes, it's not</title>
 <link>http://hyperstruct.net/content/mozrepl#comment-181</link>
 <description>&lt;p&gt;Yes, it's not MozRepl-specific, but to listen for web page loads when you are in chrome (like you are when you're using MozRepl) one way might be:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;
getBrowser().addEventListener('load', function(event) {
    myOnLoadHandler(event); 
}, true);
&lt;/code&gt;
&lt;/pre&gt;&lt;p&gt;
Keep in mind that myOnLoadHandler will be invoked on every page load, not just the next one.&lt;/p&gt;
&lt;p&gt;You can probably find useful snippets on &lt;a href="http://developer.mozilla.org" title="http://developer.mozilla.org"&gt;http://developer.mozilla.org&lt;/a&gt; and perhaps something in the archive of &lt;a href="http://groups.google.com/group/mozlab" title="http://groups.google.com/group/mozlab"&gt;http://groups.google.com/group/mozlab&lt;/a&gt;.&lt;/p&gt;
</description>
 <pubDate>Thu, 15 May 2008 23:18:02 +0000</pubDate>
 <dc:creator>bard</dc:creator>
 <guid isPermaLink="false">comment 181 at http://hyperstruct.net</guid>
</item>
<item>
 <title>Hi Kevin,
to the best of my</title>
 <link>http://hyperstruct.net/projects/mozrepl/tutorial#comment-180</link>
 <description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;to the best of my knowledge putty works (or so it has been reported).  Under cygwin I have used netcat (nc).  rlwrap (if you manage to find it) + netcat is probably the optimal solution as it also gives you command history.&lt;/p&gt;
</description>
 <pubDate>Thu, 15 May 2008 23:12:17 +0000</pubDate>
 <dc:creator>bard</dc:creator>
 <guid isPermaLink="false">comment 180 at http://hyperstruct.net</guid>
</item>
<item>
 <title>Telnetted raw with Putty,</title>
 <link>http://hyperstruct.net/projects/mozrepl/tutorial#comment-179</link>
 <description>&lt;p&gt;Telnetted raw with Putty, and now it accepts a line of characters, but nothing evaluates.&lt;/p&gt;
</description>
 <pubDate>Thu, 15 May 2008 14:36:12 +0000</pubDate>
 <dc:creator>Kevin Prichard</dc:creator>
 <guid isPermaLink="false">comment 179 at http://hyperstruct.net</guid>
</item>
<item>
 <title>I managed to get the click</title>
 <link>http://hyperstruct.net/content/mozrepl#comment-178</link>
 <description>&lt;p&gt;I managed to get the click event handler on the dom using custom script (basically the custom script is only used to shorten the typing in repl.&lt;/p&gt;
&lt;p&gt;Soon after finishing it, I finally managed to run tru my application entirely via repl. But I encounter issue with page loading.&lt;/p&gt;
&lt;p&gt;Currently when there is javascript/links that we click/execute that changes the documents of a certain pages (e.g. from &lt;a href="http://www.google.com" title="www.google.com"&gt;www.google.com&lt;/a&gt; going to &lt;a href="http://www.yahoo.com" title="www.yahoo.com"&gt;www.yahoo.com&lt;/a&gt;), the call return directly even though the latter pages is not yet displayed.&lt;/p&gt;
&lt;p&gt;Not sure this is the right place to ask, it more sounded like the mozilla things, but just to keep everything in one place, how do we listen to the page load? how do repl console get notify when pages are finish loading? &lt;/p&gt;
&lt;p&gt;For information, I am scripting using telnet as interface, connected tru repl to control pages in my application.&lt;/p&gt;
</description>
 <pubDate>Thu, 15 May 2008 10:36:57 +0000</pubDate>
 <dc:creator>dejavucat</dc:creator>
 <guid isPermaLink="false">comment 178 at http://hyperstruct.net</guid>
</item>
<item>
 <title>Something's missing from</title>
 <link>http://hyperstruct.net/projects/mozrepl/tutorial#comment-177</link>
 <description>&lt;p&gt;Something's missing from this tutorial or the docs - when I type anything, such as the tut's first line, "repl.whereAmI()", I get the following message at every keystroke-&lt;/p&gt;
&lt;p&gt;!!! RefernceError: r is not defined&lt;br /&gt;
!!! RefernceError: e is not defined&lt;br /&gt;
!!! RefernceError: p is not defined&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;Is there some implied mode MozRepl wakes up in, or another mode one need enter in order to enter expressions for evaluation?&lt;/p&gt;
&lt;p&gt;Oh, and when I start a new telnet session, first thing it sez is, "Current input mode is: syntax."  Also, I did try "set mode console" but no difference.  (I'm using cygwin, but telnet's provided by windoze.)&lt;/p&gt;
&lt;p&gt;Is there perhaps a list of special keys for switching modes, for typing things other than expressions??  Also, it looks like newlines are getting sent but not carriage returns.  That really messes up cygwin/telnet on win.&lt;/p&gt;
&lt;p&gt;Thanks - it's an awesome project, and I look forward to learning how to make it work.&lt;/p&gt;
</description>
 <pubDate>Wed, 14 May 2008 23:54:49 +0000</pubDate>
 <dc:creator>Kevin Prichard</dc:creator>
 <guid isPermaLink="false">comment 177 at http://hyperstruct.net</guid>
</item>
<item>
 <title>I found the way to do it,</title>
 <link>http://hyperstruct.net/content/mozrepl#comment-176</link>
 <description>&lt;p&gt;I found the way to do it, via the frames arrays to access the frames documents.&lt;/p&gt;
&lt;p&gt;Here is another question, can we possible to control an event for a particular dom element? e.g. I would like to click on a button, or click on a link etc. etc.&lt;/p&gt;
&lt;p&gt;Do we need to write the custom function (I believed jquery is doing it) for repl? or it is supported by itself?&lt;/p&gt;
&lt;p&gt;thanks in advance.&lt;/p&gt;
</description>
 <pubDate>Wed, 14 May 2008 07:20:00 +0000</pubDate>
 <dc:creator>dejavucat</dc:creator>
 <guid isPermaLink="false">comment 176 at http://hyperstruct.net</guid>
</item>
<item>
 <title>Thks bard, it do provide a</title>
 <link>http://hyperstruct.net/content/mozrepl#comment-174</link>
 <description>&lt;p&gt;Thks bard, it do provide a good pointer.&lt;/p&gt;
&lt;p&gt;however, i am still abit lost, Probably this is due to the dom object modeling inside firefox get me confused.&lt;/p&gt;
&lt;p&gt;using javascript, if we wanted to get reference to the frames, we can do it just by typing:&lt;br /&gt;
document.FRAME_NAME.etc.etc&lt;/p&gt;
&lt;p&gt;I tried to do it using repl, but it can't dump the frame documents. am I doing the right way?&lt;/p&gt;
&lt;p&gt;thks in advance.&lt;/p&gt;
</description>
 <pubDate>Tue, 13 May 2008 07:31:00 +0000</pubDate>
 <dc:creator>dejavu-cat</dc:creator>
 <guid isPermaLink="false">comment 174 at http://hyperstruct.net</guid>
</item>
<item>
 <title>You can get a document dump</title>
 <link>http://hyperstruct.net/content/mozrepl#comment-172</link>
 <description>&lt;p&gt;You can get a document dump using something like:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
var dump = (new XMLSerializer()).serializeToString(document);&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For iframes, the containing document only has the  tag, so you'd have to get and dump the frame documents separately.&lt;/p&gt;
</description>
 <pubDate>Thu, 08 May 2008 09:12:26 +0000</pubDate>
 <dc:creator>bard</dc:creator>
 <guid isPermaLink="false">comment 172 at http://hyperstruct.net</guid>
</item>
<item>
 <title>If I want to get the entire</title>
 <link>http://hyperstruct.net/content/mozrepl#comment-168</link>
 <description>&lt;p&gt;If I want to get the entire page html dump (including those in IFrame, Frame &amp;amp; those that is generated by the javascript), is it possible with REPL?&lt;/p&gt;
</description>
 <pubDate>Fri, 02 May 2008 03:29:28 +0000</pubDate>
 <dc:creator>dejavu-cat</dc:creator>
 <guid isPermaLink="false">comment 168 at http://hyperstruct.net</guid>
</item>
<item>
 <title>Quoting from the</title>
 <link>http://hyperstruct.net/content/mozrepl#comment-159</link>
 <description>&lt;p&gt;Quoting from the troubleshooting page:&lt;/p&gt;
&lt;p&gt;&lt;cite&gt;&lt;br /&gt;
On Windows, telnet will probably start in character-at-a-time mode. To put it into line-at-a-time mode, press the escape combination (usually Control+]) and enter the command:&lt;br /&gt;
set mode console&lt;br /&gt;
Windows 2000 telnet has been reported to have no such option. If that is the case, try putty instead.&lt;br /&gt;
&lt;/cite&gt;&lt;/p&gt;
</description>
 <pubDate>Sun, 13 Apr 2008 15:58:38 +0000</pubDate>
 <dc:creator>bard</dc:creator>
 <guid isPermaLink="false">comment 159 at http://hyperstruct.net</guid>
</item>
<item>
 <title>I am also experiencing the</title>
 <link>http://hyperstruct.net/content/mozrepl#comment-158</link>
 <description>&lt;p&gt;I am also experiencing the problem described by Steveorevo, every key stroke is getting the Reference error despite entering a ; as the first character or last or anywhere in between, what can solve this?&lt;/p&gt;
</description>
 <pubDate>Thu, 10 Apr 2008 20:43:30 +0000</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 158 at http://hyperstruct.net</guid>
</item>
<item>
 <title>Hi,
check out  the first</title>
 <link>http://hyperstruct.net/content/mozrepl#comment-124</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;check out  the first item on the &lt;a href="/projects/mozrepl/troubleshooting"&gt;page about troubleshooting&lt;/a&gt;.&lt;/p&gt;
</description>
 <pubDate>Thu, 20 Mar 2008 12:04:00 +0000</pubDate>
 <dc:creator>bard</dc:creator>
 <guid isPermaLink="false">comment 124 at http://hyperstruct.net</guid>
</item>
<item>
 <title>I would have loved to have</title>
 <link>http://hyperstruct.net/content/mozrepl#comment-123</link>
 <description>&lt;p&gt;I would have loved to have used this, but on XP after I telnet in, it just attempts to process every keystroke I type in the telnet session vs waiting for a cr/lf, is there something I'm doing wrong? Seems like I can't type a single word, as each keystroke gets processed, i.e. if I try to type quit&lt;/p&gt;
&lt;p&gt;repl&amp;gt; q @data:application/x-javascript,q:1 !!! ReferenceError: d is not defined&lt;/p&gt;
&lt;p&gt;repl&amp;gt; u @data:application/x-javascript,u:1 !!! ReferenceError: d is not defined&lt;/p&gt;
&lt;p&gt;repl&amp;gt; i @data:application/x-javascript,i:1 !!! ReferenceError: d is not defined&lt;/p&gt;
&lt;p&gt;repl&amp;gt; t @data:application/x-javascript,t:1 !!! ReferenceError: d is not defined&lt;/p&gt;
</description>
 <pubDate>Thu, 20 Mar 2008 06:36:36 +0000</pubDate>
 <dc:creator>Steveorevo</dc:creator>
 <guid isPermaLink="false">comment 123 at http://hyperstruct.net</guid>
</item>
<item>
 <title>Instructions how to get it</title>
 <link>http://hyperstruct.net/projects/spock#comment-122</link>
 <description>&lt;p&gt;Instructions how to get it work on FC8.  The xslt binding for Ruby does not appear to be available as a rpm. (At least I wasn't able to find it, even after yum install '*ruby*')&lt;/p&gt;
&lt;p&gt;You have to download &lt;a href="http://gregoire.lejeune.free.fr/ruby-xslt_0.9.3.tar.gz" title="http://gregoire.lejeune.free.fr/ruby-xslt_0.9.3.tar.gz"&gt;http://gregoire.lejeune.free.fr/ruby-xslt_0.9.3.tar.gz&lt;/a&gt;&lt;br /&gt;
Follow instructions there (ruby extconf.rb; make; make doc; make install)&lt;br /&gt;
This will leave xslt.rb in /usr/lib/ruby/site_ruby/1.8/xml/xslt.rb&lt;/p&gt;
&lt;p&gt;Apparently, Ruby needs libxslt.rb there, so do:&lt;br /&gt;
sudo mv /usr/lib/ruby/site_ruby/1.8/xml/xslt.rb /usr/lib/ruby/site_ruby/1.8/xml/libxslt.rb&lt;/p&gt;
&lt;p&gt;Subsequently, spock runs.&lt;/p&gt;
</description>
 <pubDate>Thu, 20 Mar 2008 03:45:28 +0000</pubDate>
 <dc:creator>Godmar</dc:creator>
 <guid isPermaLink="false">comment 122 at http://hyperstruct.net</guid>
</item>
<item>
 <title>Thanks a lot, this is</title>
 <link>http://hyperstruct.net/2007/1/6/give-presentations-over-the-web-in-real-time-with-sameplace-and-s5#comment-119</link>
 <description>&lt;p&gt;Thanks a lot, this is exactly what i was looking for!&lt;/p&gt;
</description>
 <pubDate>Tue, 18 Mar 2008 11:33:43 +0000</pubDate>
 <dc:creator>jbj</dc:creator>
 <guid isPermaLink="false">comment 119 at http://hyperstruct.net</guid>
</item>
</channel>
</rss>
