﻿<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
  <title>Javascript Modal Popups</title>
  <link rel="alternate" type="text/html" href="http://www.modalpopups.com/blog" title="Javascript Modal Popups" />
  <tagline>Javascript Modal Popups</tagline>
  <id>http://www.modalpopups.com/feeds/atom.xml</id>
  <generator>Presstopia</generator>
  <copyright>Copyright (c) 2010 Javascript Modal Popups</copyright>
  <modified>2010-07-29T09:07:43Z</modified>
  <entry>
    <title>ModalPopup library downloaded 8250 times!</title>
    <link rel="alternate" type="text/html" href="http://www.modalpopups.com/blog/default.aspx?id=18&amp;t=ModalPopup-library-downloaded-8250-times" title="ModalPopup library downloaded 8250 times!" />
    <author>
      <name>Default Admin</name>
      <url>http://www.modalpopups.com/blog</url>
    </author>
    <id>http://www.modalpopups.com/blog/default.aspx?id=18&amp;t=ModalPopup-library-downloaded-8250-times</id>
    <modified>2010-07-29T09:07:43Z</modified>
    <issued>2010-07-29T10:39:00Z</issued>
    <created>2009-10-07T10:39:00Z</created>
    <content type="text/html" mode="escaped">&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;</content>
  </entry>
  <entry>
    <title>Release, demo and download of version 0.2</title>
    <link rel="alternate" type="text/html" href="http://www.modalpopups.com/blog/default.aspx?id=17&amp;t=Release-demo-and-download-of-version-0" title="Release, demo and download of version 0.2" />
    <author>
      <name>Jan Stolk</name>
      <url>http://www.modalpopups.com/blog</url>
    </author>
    <id>http://www.modalpopups.com/blog/default.aspx?id=17&amp;t=Release-demo-and-download-of-version-0</id>
    <modified>2008-10-01T21:09:50Z</modified>
    <issued>2008-09-26T09:57:00Z</issued>
    <created>2008-09-26T09:58:10Z</created>
    <content type="text/html" mode="escaped">&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;</content>
  </entry>
  <entry>
    <title>Demo and download of version 0.1</title>
    <link rel="alternate" type="text/html" href="http://www.modalpopups.com/blog/default.aspx?id=16&amp;t=Demo-and-download-of-version-01" title="Demo and download of version 0.1" />
    <author>
      <name>Jan Stolk</name>
      <url>http://www.modalpopups.com/blog</url>
    </author>
    <id>http://www.modalpopups.com/blog/default.aspx?id=16&amp;t=Demo-and-download-of-version-01</id>
    <modified>2008-10-01T21:10:04Z</modified>
    <issued>2008-07-29T15:39:00Z</issued>
    <created>2008-07-29T15:43:36Z</created>
    <content type="text/html" mode="escaped">&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;</content>
  </entry>
  <entry>
    <title>Version 0.1 of the Javascript Modal Popups</title>
    <link rel="alternate" type="text/html" href="http://www.modalpopups.com/blog/default.aspx?id=15&amp;t=Version-01-of-the-Javascript-Modal-Popu" title="Version 0.1 of the Javascript Modal Popups" />
    <author>
      <name>Jan Stolk</name>
      <url>http://www.modalpopups.com/blog</url>
    </author>
    <id>http://www.modalpopups.com/blog/default.aspx?id=15&amp;t=Version-01-of-the-Javascript-Modal-Popu</id>
    <modified>2008-10-01T21:09:35Z</modified>
    <issued>2008-07-23T09:45:00Z</issued>
    <created>2008-07-23T09:45:51Z</created>
    <content type="text/html" mode="escaped">&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;</content>
  </entry>
</feed>
