<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JavaScript dialog box</title>
	<atom:link href="http://www.redips.net/javascript/dialog-box/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redips.net/javascript/dialog-box/</link>
	<description>Techniques and Web Technologies</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:29:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/</generator>
	<item>
		<title>By: Yoni</title>
		<link>http://www.redips.net/javascript/dialog-box/comment-page-3/#comment-5009</link>
		<dc:creator>Yoni</dc:creator>
		<pubDate>Fri, 03 Feb 2012 13:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=86#comment-5009</guid>
		<description>Hi, 
I need to hide the dialog on timer event if no button clicked in dialog.
I called the hide event and got an error. How can I impleent this ? Could you embed a timer parameter
and close the dialog if no button pressed ?
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I need to hide the dialog on timer event if no button clicked in dialog.<br />
I called the hide event and got an error. How can I impleent this ? Could you embed a timer parameter<br />
and close the dialog if no button pressed ?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/javascript/dialog-box/comment-page-3/#comment-4554</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Sun, 16 Oct 2011 07:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=86#comment-4554</guid>
		<description>@ashok kumar rathore - Here is example of initialization code for using REDIPS.dialog library. You should include REDIPS.dialog on you page:
&lt;pre class=&quot;brush:text&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;redips-dialog-min.js&quot;&gt;&lt;/script&gt;
&lt;/pre&gt;

and execute initialization:

&lt;pre class=&quot;brush:js&quot;&gt;
// define redips_init variable
var redips_init;

// dialog box initialization (called from event)
redips_init = function () {
    REDIPS.dialog.init();
    REDIPS.dialog.op_high = 60;
    REDIPS.dialog.fade_speed = 18;
    //REDIPS.dialog.close_button = &#039;Z&#039;;
}

// add onload event listener
if (window.addEventListener) {
    window.addEventListener(&#039;load&#039;, redips_init, false);
}
else if (window.attachEvent) {
    window.attachEvent(&#039;onload&#039;, redips_init);
}
&lt;/pre&gt;

With these two steps REDIPS.dialog should work and you will be able to show dialogs.
Cheers!</description>
		<content:encoded><![CDATA[<p>@ashok kumar rathore - Here is example of initialization code for using REDIPS.dialog library. You should include REDIPS.dialog on you page:</p>
<pre class="brush:text">
&lt;script type="text/javascript" src="redips-dialog-min.js">&lt;/script>
</pre>
<p>and execute initialization:</p>
<pre class="brush:js">
// define redips_init variable
var redips_init;

// dialog box initialization (called from event)
redips_init = function () {
    REDIPS.dialog.init();
    REDIPS.dialog.op_high = 60;
    REDIPS.dialog.fade_speed = 18;
    //REDIPS.dialog.close_button = 'Z';
}

// add onload event listener
if (window.addEventListener) {
    window.addEventListener('load', redips_init, false);
}
else if (window.attachEvent) {
    window.attachEvent('onload', redips_init);
}
</pre>
<p>With these two steps REDIPS.dialog should work and you will be able to show dialogs.<br />
Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashok kumar rathore</title>
		<link>http://www.redips.net/javascript/dialog-box/comment-page-3/#comment-4545</link>
		<dc:creator>ashok kumar rathore</dc:creator>
		<pubDate>Wed, 12 Oct 2011 21:14:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=86#comment-4545</guid>
		<description>How can use redips in our .net application ...

It shows the error undefine var redips.</description>
		<content:encoded><![CDATA[<p>How can use redips in our .net application ...</p>
<p>It shows the error undefine var redips.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/javascript/dialog-box/comment-page-3/#comment-4433</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Tue, 06 Sep 2011 06:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=86#comment-4433</guid>
		<description>@Aaron - It seems like a code page problem. Anyway, in a new &lt;strong&gt;1.5.1&lt;/strong&gt; version you can define a character for close button. Here is example how to define &lt;strong&gt;Z&lt;/strong&gt; instead of default character:
&lt;pre class=&quot;brush:js&quot;&gt;
// close button definition
REDIPS.dialog.close_button = &#039;Z&#039;;
&lt;/pre&gt;
Please download new version and try. Hope this improvement will help.
Cheers!</description>
		<content:encoded><![CDATA[<p>@Aaron - It seems like a code page problem. Anyway, in a new <strong>1.5.1</strong> version you can define a character for close button. Here is example how to define <strong>Z</strong> instead of default character:</p>
<pre class="brush:js">
// close button definition
REDIPS.dialog.close_button = 'Z';
</pre>
<p>Please download new version and try. Hope this improvement will help.<br />
Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.redips.net/javascript/dialog-box/comment-page-2/#comment-4421</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Sun, 04 Sep 2011 00:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=86#comment-4421</guid>
		<description>I got what Emanuele got ---&gt; http://imageshack.us/photo/my-images/217/mozillafirefox201108101.png/

How do I fix it?</description>
		<content:encoded><![CDATA[<p>I got what Emanuele got ---&gt; <a href="http://imageshack.us/photo/my-images/217/mozillafirefox201108101.png/" rel="nofollow">http://imageshack.us/photo/my-images/217/mozillafirefox201108101.png/</a></p>
<p>How do I fix it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcin</title>
		<link>http://www.redips.net/javascript/dialog-box/comment-page-2/#comment-4365</link>
		<dc:creator>Marcin</dc:creator>
		<pubDate>Thu, 18 Aug 2011 20:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=86#comment-4365</guid>
		<description>@dbunic - thx for solution. I&#039;m changed init function in niceforms.js:
&lt;pre class=&quot;brush:js&quot;&gt;
// Initialization function
function NFInit() {
    try {
        document.execCommand(&#039;BackgroundImageCache&#039;, false, true);
    } catch(e) {}
    if(!document.getElementById) {return false;}
    // initialize dialog box
    REDIPS.dialog.init();
    REDIPS.dialog.op_high = 60;
    REDIPS.dialog.fade_speed = 18;
    //alert(&quot;click me first&quot;);
    NFDo(&#039;start&#039;);
}
&lt;/pre&gt;
and I deleted:
&lt;pre class=&quot;brush:js&quot;&gt;
// initialize dialog box
window.onload = function () {
REDIPS.dialog.init();
REDIPS.dialog.op_high = 60;
REDIPS.dialog.fade_speed = 18;
}
&lt;/pre&gt;
from header of my page.

Now it&#039;s working gr8.</description>
		<content:encoded><![CDATA[<p>@dbunic - thx for solution. I'm changed init function in niceforms.js:</p>
<pre class="brush:js">
// Initialization function
function NFInit() {
    try {
        document.execCommand('BackgroundImageCache', false, true);
    } catch(e) {}
    if(!document.getElementById) {return false;}
    // initialize dialog box
    REDIPS.dialog.init();
    REDIPS.dialog.op_high = 60;
    REDIPS.dialog.fade_speed = 18;
    //alert("click me first");
    NFDo('start');
}
</pre>
<p>and I deleted:</p>
<pre class="brush:js">
// initialize dialog box
window.onload = function () {
REDIPS.dialog.init();
REDIPS.dialog.op_high = 60;
REDIPS.dialog.fade_speed = 18;
}
</pre>
<p>from header of my page.</p>
<p>Now it's working gr8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/javascript/dialog-box/comment-page-2/#comment-4360</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Thu, 18 Aug 2011 13:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=86#comment-4360</guid>
		<description>@Marcin - The problem is in window.onload. If you open main.js, you will find line:
&lt;pre class=&quot;brush:js&quot;&gt;
window.onload = init;
&lt;/pre&gt;
REDIPS.drag also needs to be initialized, so dialog demo uses the same event for initialization. In your case, first definition of window.onload is overwritten with second. Solution to this problem is to move REDIPS.dialog initialization to the main.js file. Here is how:
&lt;pre class=&quot;brush:js&quot;&gt;
function init() {
    if(!document.getElementById) {return false;}
    try {
        document.execCommand(&#039;BackgroundImageCache&#039;, false, true);
    } catch(e) {}
    if(document.getElementsByTagName(&quot;body&quot;)[0].className == &quot;project&quot;) {stopShow = document.getElementById(&quot;stopShow&quot;); startShow();}
    if((document.getElementsByTagName(&quot;body&quot;)[0].className == &quot;home&quot;) &#124;&#124; (document.getElementsByTagName(&quot;body&quot;)[0].className == &quot;about awards&quot;)) {doTransitions();}
    if(document.getElementsByTagName(&quot;body&quot;)[0].className == &quot;projects weekly&quot;) {fixFloats();}
    doRollovers();
    emailCloak();
    // initialize dialog box
    REDIPS.dialog.init();
    REDIPS.dialog.op_high = 60;
    REDIPS.dialog.fade_speed = 18;
}
&lt;/pre&gt;
... and don&#039;t forget to delete window.onload initially used by REDIPS.drag lib. Your page should have only one definition of windows.onload event.</description>
		<content:encoded><![CDATA[<p>@Marcin - The problem is in window.onload. If you open main.js, you will find line:</p>
<pre class="brush:js">
window.onload = init;
</pre>
<p>REDIPS.drag also needs to be initialized, so dialog demo uses the same event for initialization. In your case, first definition of window.onload is overwritten with second. Solution to this problem is to move REDIPS.dialog initialization to the main.js file. Here is how:</p>
<pre class="brush:js">
function init() {
    if(!document.getElementById) {return false;}
    try {
        document.execCommand('BackgroundImageCache', false, true);
    } catch(e) {}
    if(document.getElementsByTagName("body")[0].className == "project") {stopShow = document.getElementById("stopShow"); startShow();}
    if((document.getElementsByTagName("body")[0].className == "home") || (document.getElementsByTagName("body")[0].className == "about awards")) {doTransitions();}
    if(document.getElementsByTagName("body")[0].className == "projects weekly") {fixFloats();}
    doRollovers();
    emailCloak();
    // initialize dialog box
    REDIPS.dialog.init();
    REDIPS.dialog.op_high = 60;
    REDIPS.dialog.fade_speed = 18;
}
</pre>
<p>... and don't forget to delete window.onload initially used by REDIPS.drag lib. Your page should have only one definition of windows.onload event.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcin</title>
		<link>http://www.redips.net/javascript/dialog-box/comment-page-2/#comment-4350</link>
		<dc:creator>Marcin</dc:creator>
		<pubDate>Wed, 17 Aug 2011 15:29:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=86#comment-4350</guid>
		<description>Hi,
when I&#039;m trying use redips dialog with niceforms (http://www.emblematiq.com/lab/niceforms/) javascript catch exception, and niceforms doesn&#039;t work.
If I delete excerpt:
&lt;pre class=&quot;brush:js&quot;&gt;
// initialize dialog box
window.onload = function () {
    REDIPS.dialog.init();
    REDIPS.dialog.op_high = 60;
    REDIPS.dialog.fade_speed = 18;
}
&lt;/pre&gt;
niceforms works correct.

Anyone have any idea how to use redips dialog with niceforms?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
when I'm trying use redips dialog with niceforms (<a href="http://www.emblematiq.com/lab/niceforms/" rel="nofollow">http://www.emblematiq.com/lab/niceforms/</a>) javascript catch exception, and niceforms doesn't work.<br />
If I delete excerpt:</p>
<pre class="brush:js">
// initialize dialog box
window.onload = function () {
    REDIPS.dialog.init();
    REDIPS.dialog.op_high = 60;
    REDIPS.dialog.fade_speed = 18;
}
</pre>
<p>niceforms works correct.</p>
<p>Anyone have any idea how to use redips dialog with niceforms?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/javascript/dialog-box/comment-page-2/#comment-4324</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Wed, 10 Aug 2011 19:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=86#comment-4324</guid>
		<description>@Emanuele - I&#039;m glad you solved the problem and thank you for using &lt;strong&gt;REDIPS.dialog&lt;/strong&gt; library.

Cheers!</description>
		<content:encoded><![CDATA[<p>@Emanuele - I'm glad you solved the problem and thank you for using <strong>REDIPS.dialog</strong> library.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emanuele</title>
		<link>http://www.redips.net/javascript/dialog-box/comment-page-2/#comment-4323</link>
		<dc:creator>Emanuele</dc:creator>
		<pubDate>Wed, 10 Aug 2011 18:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=86#comment-4323</guid>
		<description>Solved!! I don&#039;t know how but now it works :)</description>
		<content:encoded><![CDATA[<p>Solved!! I don't know how but now it works <img src='http://www.redips.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

