﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Javascript Modal Popups</title>
    <link>http://www.modalpopups.com/blog</link>
    <description>Javascript Modal Popups</description>
    <copyright>Copyright (c) 2010 Javascript Modal Popups</copyright>
    <lastbuilddate>Thu, 29 Jul 2010 09:07:43 GMT</lastbuilddate>
    <ttl>5</ttl>
    <item>
      <title>ModalPopup library downloaded 8250 times!</title>
      <description>&lt;P&gt;We are very proud that the ModalPopup library has been downloaded 8250 times!&lt;/P&gt;
&lt;P&gt;We would like to ask you to show us your where you have used the library. And also feel free to send us your ideas or comments. &lt;/P&gt;
&lt;P&gt;Please inform us by sending an email to stolk_jan at hotmail dot com.&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <link>http://www.modalpopups.com/blog/default.aspx?id=18&amp;t=ModalPopup-library-downloaded-8250-times</link>
      <pubDate>Thu, 29 Jul 2010 10:39:00 GMT</pubDate>
    </item>
    <item>
      <title>Release, demo and download of version 0.2</title>
      <description>&lt;P&gt;With thanks to Glaucio Polzin de Oliveira some bugs have been fixed regarding IE6.&lt;/P&gt;
&lt;P&gt;We have added a demo page which can be viewed online or downloaded to use within your project or own environment.&lt;/P&gt;
&lt;P&gt;&lt;A href="/demos/0.2/demo.htm"&gt;Click here to view the demo page.&lt;/A&gt;&lt;BR&gt;&lt;A href="/download.ashx?file=ModalPopups_0_2.zip"&gt;Click here to download the demo page (and all requirements).&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <link>http://www.modalpopups.com/blog/default.aspx?id=17&amp;t=Release-demo-and-download-of-version-0</link>
      <pubDate>Fri, 26 Sep 2008 09:57:00 GMT</pubDate>
    </item>
    <item>
      <title>Demo and download of version 0.1</title>
      <description>&lt;P&gt;We have added a demo page which can be viewed online or downloaded to use within your project or own environment.&lt;/P&gt;
&lt;P&gt;&lt;A href="/demos/0.1/demo.htm"&gt;Click here to view the demo page.&lt;/A&gt;&lt;BR&gt;&lt;A href="/download.ashx?file=ModalPopups_0_1.zip"&gt;Click here to download the demo page (and all requirements).&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <link>http://www.modalpopups.com/blog/default.aspx?id=16&amp;t=Demo-and-download-of-version-01</link>
      <pubDate>Tue, 29 Jul 2008 15:39:00 GMT</pubDate>
    </item>
    <item>
      <title>Version 0.1 of the Javascript Modal Popups</title>
      <description>&lt;P&gt;The first release of the free javascript which contains commonly used functions like Alert, Confirm, Prompt. But also a YesNoCancel and a Indicator function.&lt;/P&gt;
&lt;P&gt;Click on the following links to see what i mean;&lt;/P&gt;
&lt;P&gt;&lt;A href="javascript:ModalsAlert()"&gt;Alert&lt;/A&gt;&lt;BR&gt;&lt;A href="javascript:ModalsConfirm()"&gt;Confirm&lt;/A&gt;&lt;BR&gt;&lt;A href="javascript:ModalsPrompt()"&gt;Prompt&lt;/A&gt;&lt;BR&gt;&lt;A href="javascript:ModalsYesNoCancel()"&gt;YesNoCancel&lt;/A&gt;&lt;BR&gt;&lt;A href="javascript:ModalsIndicator()"&gt;Indicator&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In my next article i will describe the HowTo's. Also more demo's will soon be available. Also bugs will be fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;SCRIPT language=javascript type=text/javascript&gt;
function ModalsAlert() {
  ModalPopups.Alert("jsAlert1",
    "Save address information",
    "&lt;div style='padding:25px;'&gt;The address information has been saved succesfully&lt;br/&gt;to the customer database...&lt;/div&gt;", {
                    okButtonText: "Close"
      }
    );
  }

function ModalsConfirm() {
ModalPopups.Confirm("idConfirm1",
    "Confirm delete address information",
    "&lt;div style='padding:25px;'&gt;You are about to delete this address information.&lt;br/&gt;&lt;br&gt;&lt;b&gt;Are you sure?&lt;/b&gt;&lt;/div&gt;", {
        yesButtonText: "Yes",
        noButtonText: "No",
        onYes: "ModalsConfirmYes()",
        onNo: "ModalsConfirmNo()"
        }
    );
}
        
function ModalsConfirmYes() {
    alert('You pressed Yes');
    //ToDo: Can i close?
    ModalPopups.Close("idConfirm1");
}
        
function ModalsConfirmNo() {
    alert('You pressed No');
    ModalPopups.Cancel("idConfirm1");
}

function ModalsYesNoCancel() {
    ModalPopups.YesNoCancel("idYesNoCancel1",
        "Confirm close of document",
        "&lt;div style='padding:25px;'&gt;&lt;p&gt;You are about to close this document.&lt;br/&gt;" + 
        "If you don't save this document, all information will be lost.&lt;/p&gt;" + 
        "&lt;p&gt;&lt;b&gt;Close document?&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;", {
            onYes: "ModalsYesNoCancelYes()",
            onNo: "ModalsYesNoCancelNo()",
            onCancel: "ModalsYesNoCancelCancel()"
        }
    );
}

function ModalsYesNoCancelYes() {
    alert('You pressed Yes');
    //ToDo: mag ik afsluiten?
    ModalPopups.Close("idYesNoCancel1");
}

function ModalsYesNoCancelNo() {
    alert('You pressed No');
    ModalPopups.Cancel("idYesNoCancel1");
}

function ModalsYesNoCancelCancel() {
    alert('You pressed Cancel');
    ModalPopups.Cancel("idYesNoCancel1");
}

function ModalsPrompt() {
    ModalPopups.Prompt("idPrompt1",
        "Prompt",
        "Please enter your ID number",  {
            width: 300,
            onOk: "ModalsPromptOk()",
            onCancel: "ModalsPromptCancel()"
        }
    );
}

function ModalsPromptOk()
{
    if(ModalPopups.GetPromptInput("idPrompt1").value == "") {
        ModalPopups.GetPromptInput("idPrompt1").focus();
        return;
    }
    alert('You pressed Ok');
    alert(ModalPopups.GetPromptInput("idPrompt1").value);
    
    //ToDo: mag ik afsluiten?
    ModalPopups.Close("idPrompt1");
}

function ModalsPromptCancel() {
    alert('You pressed Cancel');
    ModalPopups.Cancel("idPrompt1");
}

function ModalsIndicator() {
    ModalPopups.Indicator("jsIndicator1",
        "Please wait",
        "&lt;div style='padding:25px;'&gt;Saving address information... &lt;br/&gt;This may take 3 seconds&lt;/div&gt;", null);
    
    setTimeout('ModalPopups.Close(\"jsIndicator1\");', 3000);
}


&lt;/SCRIPT&gt;</description>
      <link>http://www.modalpopups.com/blog/default.aspx?id=15&amp;t=Version-01-of-the-Javascript-Modal-Popu</link>
      <pubDate>Wed, 23 Jul 2008 09:45:00 GMT</pubDate>
    </item>
  </channel>
</rss>
