<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" version="2.0">
  <channel>
    <title>Recent Posts by frer | Prototype UI</title>
    <link>http://forums.prototype-ui.com/users/102/posts</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <atom:link rel="search" type="application/opensearchdescription+xml" href="http://forums.prototype-ui.com/open_search.xml"/>
    <item>
      <title>Selenium-Rc conflict? replied by frer @ Tue, 06 May 2008 16:45:44 -0000</title>
      <description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;


	&lt;p&gt;I debugged a little further and think the problem might come from the fact that selenium uses Prototype 1.5 whereas window.js (and my application) uses prototype 1.6.  I have posted a thread in selenium to see if there&amp;#8217;s a workaround or a plan to move to prototype 1.6.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://clearspace.openqa.org/thread/13712"&gt;http://clearspace.openqa.org/thread/13712&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ll keep you posted.&lt;/p&gt;</description>
      <pubDate>Tue, 06 May 2008 16:45:44 -0000</pubDate>
      <guid isPermaLink="false">forums.prototype-ui.com:2:132:380</guid>
      <author>frer</author>
      <link>http://forums.prototype-ui.com/forums/2/topics/132</link>
    </item>
    <item>
      <title>Selenium-Rc conflict? replied by frer @ Mon, 05 May 2008 21:57:28 -0000</title>
      <description>&lt;p&gt;Hi,&lt;/p&gt;


	&lt;p&gt;I have quite a weird problem.  When I use the window.js library normally for my application it works great.&lt;/p&gt;


	&lt;p&gt;When I try to use it through my test framework though it fails (I use selenium-rc to do my integration tests).  I get an exception in firebug that says: [Exception&amp;#8230; &amp;#8221;&amp;#8217;Permission denied to get property Location.hash&amp;#8217; when calling method: [nsIDOMEventListener::handleEvent]&amp;#8221; nsresult: &amp;#8220;0&amp;#215;8057001e (NS_ERROR_XPC_JS_THREW_STRING)&amp;#8221; location: &amp;#8220;JS frame :: &lt;a href="https://localhost:8443/totaltest/static/js/prototype/prototype.js"&gt;https://localhost:8443/totaltest/static/js/prot&amp;#8230;&lt;/a&gt; :: anonymous :: line 3974&amp;#8221; data: no].&lt;/p&gt;


	&lt;p&gt;Selenium-RC is a test framework that allows to inject html commands to your website to simulate user interaction (i.e. button clicks, etc.). It works for all my widgets except the window.js (and it used to work for the old version of the window.js framework).  To do so Selenium opens a window in the browser and opens the application in a frame and injects the html commands through that frame.&lt;/p&gt;


	&lt;p&gt;Any idea at all of why this occurs?&lt;/p&gt;


	&lt;p&gt;I know this might not be enough information to help you help me but let me know what information could be of help.&lt;/p&gt;


	&lt;p&gt;Thank you very much,&lt;/p&gt;


	&lt;p&gt;Fran&#231;ois&lt;/p&gt;</description>
      <pubDate>Mon, 05 May 2008 21:57:28 -0000</pubDate>
      <guid isPermaLink="false">forums.prototype-ui.com:2:132:374</guid>
      <author>frer</author>
      <link>http://forums.prototype-ui.com/forums/2/topics/132</link>
    </item>
    <item>
      <title>Multiple Overlays replied by frer @ Mon, 05 May 2008 21:49:58 -0000</title>
      <description>&lt;p&gt;Thank you.  That&amp;#8217;s exactly what I was looking for&lt;/p&gt;</description>
      <pubDate>Mon, 05 May 2008 21:49:58 -0000</pubDate>
      <guid isPermaLink="false">forums.prototype-ui.com:2:128:373</guid>
      <author>frer</author>
      <link>http://forums.prototype-ui.com/forums/2/topics/128</link>
    </item>
    <item>
      <title>'this.windowManager' is Null or not an object replied by frer @ Thu, 01 May 2008 20:20:23 -0000</title>
      <description>&lt;p&gt;Hi,&lt;/p&gt;


	&lt;p&gt;I have a very similar problem (&amp;#8220;this.windowManager is undefined&amp;#8221;).   I have read the thread but am not sure to understand how to fix it.  Do I need to use &amp;#8220;document.whenReady()&amp;#8221; everytime I want to open a new UI.Window or UI.Dialog?&lt;/p&gt;


	&lt;p&gt;I am asking because this would cause me problem since I need to have the code executed sequentially (i.e. not through a callback) because the calling method needs a reference on the window.&lt;/p&gt;


	&lt;p&gt;Thank you,&lt;/p&gt;


	&lt;p&gt;Fran&#231;ois&lt;/p&gt;</description>
      <pubDate>Thu, 01 May 2008 20:20:23 -0000</pubDate>
      <guid isPermaLink="false">forums.prototype-ui.com:2:55:363</guid>
      <author>frer</author>
      <link>http://forums.prototype-ui.com/forums/2/topics/55</link>
    </item>
    <item>
      <title>Multiple Overlays replied by frer @ Thu, 01 May 2008 19:56:53 -0000</title>
      <description>&lt;p&gt;Hi,&lt;/p&gt;


	&lt;p&gt;I love the framework.  I am having a small problem though.  When I try to create multiple windows with different z-indexes, the z-indexes that are set are changed when I create a new window.&lt;/p&gt;


	&lt;p&gt;Here is my code sample: &lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;var win = new UI.Window({
    theme: style,
    close: function(win) {
        alert("hello");
        win.destroy();
    }
});
win.setSize(309, 140);
win.setHeader("&lt;div class="title"&gt;Window1&lt;/div&gt;");
win.setContent($('content'));
win.center().show(true);
win.setZIndex(1000);&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;var win2 = new UI.Window({
    theme: style,
    close: function(win) {
        alert("hello");
        win.destroy();
    }
});
win2.setSize(309, 140);
win2.setHeader("&lt;div class="title"&gt;Window2&lt;/div&gt;");
win2.setContent($('content'));
win2.center().show(true);
win2.setZIndex(1001);&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;When I create the first window (if I put a breakpoint before creating the second window), I see that the zIndex is of 1000 and the zIndex of the overlay is 0.&lt;/p&gt;


	&lt;p&gt;When the second window is created, the zIndex of the firstWindow changes to 1, the overlay to 14 and the second window to 1001.&lt;/p&gt;


	&lt;p&gt;Maybe I&amp;#8217;m not using it correctly but I&amp;#8217;d like to be able to manage the zIndexes so that they are always more than 1000.  In fact, the rest of my web application uses zIndexes from 0-999 so if I want to make sure that the windows are on top of that, the zIndexes must be higher than 1000.&lt;/p&gt;


	&lt;p&gt;Is there a workaround for this (or an option I did not see)?&lt;/p&gt;


	&lt;p&gt;Thanks for your help,&lt;/p&gt;


	&lt;p&gt;Fran&#231;ois&lt;/p&gt;


	&lt;p&gt;If I then create another window (same code but changing zIndex to 1001), the new window has a zIde&lt;/p&gt;</description>
      <pubDate>Thu, 01 May 2008 19:56:53 -0000</pubDate>
      <guid isPermaLink="false">forums.prototype-ui.com:2:128:362</guid>
      <author>frer</author>
      <link>http://forums.prototype-ui.com/forums/2/topics/128</link>
    </item>
  </channel>
</rss>
