Web content/HTML5 animations cancelling buttons out-

Has anyone experienced button failure when place under or over HTML5 animations? It's weird as I have a sweet little Wallaby created pulsing animation which has a button underneath it which actions just fine but have just brought in an animation from HYPE and placed a button under and over to test and both do not function?

Neil, can you even say how long it takes? ... We are currently working on a magazine app for an international car manufacturers and hope that we can publish it without loading time.
Thanks for your support!
Mike

Similar Messages

  • Loading times web view / html5 animations / edge hype

    Hi,
    I have been working with iPad publishing software quite a while now and have experienced Woodwing as well as DPS. I have come across an issue  with DPS which I can't find a solution for. When creating web view content, I mean either normal websites or Html5 animations the loading times with DPS are to long and there is the issue of the spinning loading.gif.
    Is there some way to speed up the loading time for everything which is loaded within the web view window? How would I for example speed up the time to load animations from Edge or from Hype?
    From my point of view this is a crucial thing to be solved.
    Also I know from working with Woodwing that they solved that issue and things regarding the loading time of web content/animations are running a lot smoother. ( and no I can't  just use Woodwing I need to solve this with DPS )
    Solutions welcome and info on when stuff like this will be solved as well.
    Thank you,
    Alex

    Neil, can you even say how long it takes? ... We are currently working on a magazine app for an international car manufacturers and hope that we can publish it without loading time.
    Thanks for your support!
    Mike

  • Out of alignment web content created in FW CS6

    Hello everyone
    I have designed an entire web page in Fireworks CS6, sliced up individual components of the page and exported them as HTML and image. The page displays in Chrome and Firefox beautifully but not in IE9. In IE9, some web content appears out of alingment exposing light blue spacers as below:
    Here is a copy of the sourcecode. I am also wondering how you could export a file in HTML5 because it always deafults to XHTML1.0. Any advice would be appreciated.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <!--Fireworks CS6 Dreamweaver CS6 target.  Created Wed Jan 09 10:39:47 GMT+0900 2013-->
    <link href="css/standard.css" rel="stylesheet" type="text/css" />
    </head>
    <body bgcolor="#99ccff">
    <table width="800" border="0" cellpadding="0" cellspacing="0" bgcolor="#99ccff" style="display: inline-table;" >
    <!-- fwtable fwsrc="euronet.jp.fw.png" fwpage="Home" fwbase="index.jpg" fwstyle="Dreamweaver" fwdocid = "1679326314" fwnested="0" -->
      <tr>
       <td><img src="images/index/spacer.gif" width="50" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="99" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="100" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="34" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="2" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="31" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="32" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="101" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="68" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="31" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="71" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="29" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="97" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="3" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="49" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="1" alt=""></td>
      </tr>
      <tr>
       <td colspan="18"><img name="body" src="images/index/body.jpg" width="800" height="15" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="15" alt=""></td>
      </tr>
      <tr>
       <td rowspan="12"><img name="index_r2_c1" src="images/index/index_r2_c1.jpg" width="50" height="1040" alt=""></td>
       <td rowspan="3" colspan="5"><img name="index_r2_c2" src="images/index/index_r2_c2.jpg" width="266" height="146" alt=""></td>
       <td colspan="12"><img name="index_r2_c7" src="images/index/index_r2_c7.jpg" width="484" height="5" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="5" alt=""></td>
      </tr>
      <tr>
       <td rowspan="3" colspan="6"><img name="index_r3_c7" src="images/index/index_r3_c7.jpg" width="304" height="149" alt=""></td>
       <td colspan="2"><img name="index_r3_c13" src="images/index/index_r3_c13.jpg" width="126" height="17" alt=""></td>
       <td rowspan="3" colspan="4"><img name="index_r3_c15" src="images/index/index_r3_c15.jpg" width="54" height="149" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="17" alt=""></td>
      </tr>
      <tr>
       <td rowspan="2" colspan="2"><img name="index_r4_c13" src="images/index/index_r4_c13.jpg" width="126" height="132" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="124" alt=""></td>
      </tr>
      <tr>
       <td colspan="5"><img name="index_r5_c2" src="images/index/index_r5_c2.jpg" width="266" height="8" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="8" alt=""></td>
      </tr>
      <tr>
       <td><a href="index.html" alt="Home"><img name="homebutton" src="images/index/home-button.jpg" width="99" height="29" alt="link to Home"></a></td>
       <td><a href="profile.html" alt="Who We Are"><img name="index_r6_c3" src="images/index/index_r6_c3.jpg" width="100" height="29" alt="link to Who We Are"></a></td>
       <td colspan="4"><a href="vision.html" "Our Vision"><img name="index_r6_c4" src="images/index/index_r6_c4.jpg" width="99" height="29" alt="link to Our Vision"></a></td>
       <td><a href="services.html" alt="link to Our Vision"><img name="index_r6_c8" src="images/index/index_r6_c8.jpg" width="101" height="29" alt="Our Services"></a></td>
       <td colspan="3"><a href="faq.html" alt="FAQ"><img name="index_r6_c9" src="images/index/index_r6_c9.jpg" width="100" height="29" alt="link to FAQ"></a></td>
       <td colspan="2"><a href="contact.html" alt="Contact Us"><img name="index_r6_c12" src="images/index/index_r6_c12.jpg" width="100" height="29" alt="link to contact us"></a></td>
       <td colspan="2"><a href="quote.html"><img name="index_r6_c14" src="images/index/index_r6_c14.jpg" width="100" height="29" alt="link to Get a Quote"></td>
       <td rowspan="4" colspan="3"><img name="index_r6_c16" src="images/index/index_r6_c16.jpg" width="51" height="374" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="29" alt=""></td>
      </tr>
      <tr>
       <td colspan="14"><img name="index_r7_c2" src="images/index/index_r7_c2.jpg" width="699" height="8" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="8" alt=""></td>
      </tr>
      <tr>
       <td colspan="10"><img name="index_r8_c2" src="images/index/index_r8_c2.jpg" width="499" height="321" alt=""></td>
       <td colspan="4"><img name="index_r8_c12" src="images/index/index_r8_c12.jpg" width="200" height="321" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="321" alt=""></td>
      </tr>
      <tr>
       <td colspan="14"><img name="index_r9_c2" src="images/index/index_r9_c2.jpg" width="699" height="16" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="16" alt=""></td>
      </tr>
      <tr>
       <td colspan="3"><img name="index_r10_c2" src="images/index/index_r10_c2.jpg" width="233" height="249" alt=""></td>
       <td colspan="5"><img name="index_r10_c5" src="images/index/index_r10_c5.jpg" width="234" height="249" alt=""></td>
       <td rowspan="4"><img name="index_r10_c10" src="images/index/index_r10_c10.jpg" width="1" height="512" alt=""></td>
       <td colspan="6"><img name="index_r10_c11" src="images/index/index_r10_c11.jpg" width="232" height="249" alt=""></td>
       <td rowspan="2" colspan="2"><img name="index_r10_c17" src="images/index/index_r10_c17.jpg" width="50" height="250" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="249" alt=""></td>
      </tr>
      <tr>
       <td colspan="8"><img name="index_r11_c2" src="images/index/index_r11_c2.jpg" width="467" height="1" alt=""></td>
       <td colspan="6"><img name="index_r11_c11" src="images/index/index_r11_c11.jpg" width="232" height="1" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="1" alt=""></td>
      </tr>
      <tr>
       <td colspan="3"><img name="index_r12_c2" src="images/index/index_r12_c2.jpg" width="233" height="249" alt=""></td>
       <td rowspan="2"><img name="index_r12_c5" src="images/index/index_r12_c5.jpg" width="2" height="262" alt=""></td>
       <td colspan="4"><img name="index_r12_c6" src="images/index/index_r12_c6.jpg" width="232" height="249" alt=""></td>
       <td colspan="7"><img name="index_r12_c11" src="images/index/index_r12_c11.jpg" width="233" height="249" alt=""></td>
       <td rowspan="2"><img name="index_r12_c18" src="images/index/index_r12_c18.jpg" width="49" height="262" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="249" alt=""></td>
      </tr>
      <tr>
       <td colspan="3"><img name="index_r13_c2" src="images/index/index_r13_c2.jpg" width="233" height="13" alt=""></td>
       <td colspan="4"><img name="index_r13_c6" src="images/index/index_r13_c6.jpg" width="232" height="13" alt=""></td>
       <td colspan="7"><img name="index_r13_c11" src="images/index/index_r13_c11.jpg" width="233" height="13" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="13" alt=""></td>
      </tr>
      <tr>
       <td colspan="18"><img name="index_r14_c1" src="images/index/index_r14_c1.jpg" width="800" height="145" alt=""></td>
       <td><img src="images/index/spacer.gif" width="1" height="145" alt=""></td>
      </tr>
    </table>
    </body>
    </html>
    Thank you,
    Ead

    Excellent. The use of ‘border: none’ in the CSS is a good solution and has been recommended previously in this forum.
    As far as HTML5, it isn't natively supported in Fireworks CS6. You could easily replace the DOCTYPE or other metadata within the head of the document by hand, after exporting the HTML; on the other hand, I'm not sure the body of the document really merits it—it's pretty ‘old school’ and possibly contains deprecated features.
    This reminds of a thread where a user wanted to edit the HTML Export template:
    http://forums.adobe.com/message/4733175
    I don't know if they followed through with this or not. It'd be fun to experiment with, but not without backing up all the relevant application files first.
    It might instructive for you to try building Fireworks files to be exported as HTML and CSS (choosing ‘CSS and Images’ in the Export dialog), instead of using table-based layouts. This seems possibly more significant than the use of an HTML5 doctype.
    http://www.adobe.com/devnet/fireworks/articles/export_css_images.html

  • Html5 animation display problems in adobe content viewer

    Having a flash animation for export to use html5 wallaby in the browser is displayed correctly but embedded as overlay web content creator (indesigncs5.5) contains a question mark so it does not display the items correctly they know if the display problem, I am aware of your comments, thanks...

    I did that, here's a snap shot of the settings I have when exporting.

  • Indesign CS5.5 Web Content Animation Cutoff

    Hi,
    I'm currently working in Indesign CS5.5 and I'm trying to add Web Content to a folio that I'm making. It's for an animation on the cover.
    I get all the way to testing it on the Content Viewer on my iPad and when I open it up, it gives a little loading circle for half the animation.
    Does anybody know how to get rid or cut back the loading time so my full animation is visible? There's no loading circles on Wired's magazine whenever they have these types of animations.
    Thanks,
    Rob

    I've got it working.
    Perhaps the problem was the numbered list used in the Chapter Title paragraph style? I had said to convert numbered lists to text in the ePub Export dialog.
    Some combination of these steps solved the problem in case others encounter the same thing:
    a) Changed the chapter headings using the Chapter Title paragraph style to Chapter Title FM. This style does not used a numbered list. Of course, I had to manually type "Chapter 1" - before each chapter title.
    b) Once all occurences of the Chapter Title paragraph style were gone, I redefined the TOC definition to remove Chapter Title. This leaves me with a single Level 1 and a single Level 2.
    c) Updated the TOC with the new definition.
    d) Moved the TOC frame from the pasteboard to some blank space in the front matter. I did not bother to make the frame large enough for all the text, since InDesign will delete this upon export.
    e) Export to PDF. On the third panel, changed the "break at: Chapter Title" to "break at: Chapter Title FM"
    My theory is getting rid of the numbered list in the chapter paragraph styles probably solved the problem. Thanks to all who took the time to check out the discussion.
    Bill

  • Short of dismantling and recreating a page how do i find out whats causing [Error: Invalid URL for Web Content Overlay]

    Hi,
    i received an indesign file to include in a folio that had links to the creators desktop where they had the assets for the web content overlay. When i try to update the folio i get the error message:
    "Content generation error.
    [Error: Invalid URL for Web Content Overlay]"
    Which is fair enough.
    The problem is, i have gone through and changed all URLs that I can see, but there is one somewhere, that I just can't find.
    Is there a way to get a list of all web content overlays in a particular file? otherwise i will need to recreate the whole page again, and it has some pretty complex interactions which i rather wouldn't do.
    I also cannot ask the original doc creator to just change the links as i'm sure he'll have the same issues as me, at not being able to track down the erroneous link.
    The problem I have with DPS is that its not very transparent. you'll have to click on everything, and into every group to see what actions are on it, which can be extremely time consuming and frustrating when complex interactions are included.
    thanks in advance for any assistance

    I’ve found watching the process helpful to narrow down the page.
    Working off a duplicate of the file, delete one layer at a time until you figure out what layer the problem is on.
    From there it’s a bit easier to narrow down.

  • I entered time machine and wish to exit but the cancel button has no effect and neither does command quit.  I have no access to the Apple toolbar to use force quit.  How do I get out of this thing?????

    I opened the backup window of my time machine.  I now wish to exit.  The cancel button and Command quit have no effect.  Turning off the IMac and disconnecting the time machine have no effect. I have no access to the normal tool bar. I want outa here.  Help!

    As always.. pondini to the rescue..
    http://pondini.org/TM/D6.html
    (I got there via google search.. took less time than to type this reply).

  • HTML5 placement in web content overlay

    I have a simple HTML animation, only 4kb yet when I place it using the web content overlay, it doesn't play in preview (set to autoplay etc) and when I try to view it in the iPad simluator, or even try to bundle it - InDesign crashes. What am I doing wrong - and bear in mind that this is my first foray in to HTML in DPS...
    Thanks.

    Bob Bringhurst - Adobe wrote:
    Using a folder called OverlayResources is no longer required. Have you tested the HTML in mobile safari? Mobile safari does not support all HTML, and DPS does not support all HTML that mobile safari supports--a few things don't work.
    I've tested it in Safari, Chrome and Firefox, all works fine. Wouldn't do anything for me in InDesign until I placed the HTML in to a 'OverlayResources' folder??

  • How to find out web content files linked in folio through scripting

    Hi all,
    Please suggest me, how to find out web content files linked in folio through scripting.
    Regards,
    Moorthy

    @Moorthy – can you tell us a bit more? By mentioning "folio", I think you are referring to Adobe Digitial Publishing Suite (ADPS or short: DPS). If yes:
    1. Do you want to analyze Folio files *.folio and get the linked web content files?
    2. Or do you want to check an InDesign file with an overlay and check what files are linked as web content?
    3. Or something else?
    Where is your base problem?
    Packaging the InDesign files and copy/relinking the web content files after the packaging process?
    Uwe

  • When I enter time machine (on Time Capsule) i see the stack of screen shots and the time line. However, when I roll over the mouse pointer, the time line does not activate. The cancel button does not get me out of the app: have to alt cmd esc. Ideas?

    When I enter time machine (on Time Capsule) i see the stack of screen shots and the time line. However, when I roll over the mouse pointer, the time line does not activate. The cancel button does not get me out of the app: have to alt+cmd+esc. Ideas?

    I have never seen it but then I run SL which is much more reliable than Lion..
    See
    http://pondini.org/TM/E4.html
    Check the master guru of all TM problems.

  • How to import html5 animation (created/published using flash) into a web page using Dreamweaver.

    I have created an animation in Flash and published it as a html5 animation.
    How do I get this into an exisitng web page using Dreamweaver?

    Hi Nancy,
    I am using Flash CC2014 which publishing as html.
    (When I publish as html with edge animate you can create an oam file which allow the inserting of the resulktant animation into a web page)
    The files produced with Flash CC 2014 are: html try.html and html.try
    I was hoping I could use some way to just insert the html animation produced by Flash.
    Source Code in html file is ....
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>html try</title>
    <script src="http://code.createjs.com/easeljs-0.7.1.min.js"></script>
    <script src="http://code.createjs.com/tweenjs-0.5.1.min.js"></script>
    <script src="http://code.createjs.com/movieclip-0.7.1.min.js"></script>
    <script src="html try.js"></script>
    <script>
    var canvas, stage, exportRoot;
    function init() {
      canvas = document.getElementById("canvas");
      exportRoot = new lib.htmltry();
      stage = new createjs.Stage(canvas);
      stage.addChild(exportRoot);
      stage.update();
      stage.enableMouseOver();
      createjs.Ticker.setFPS(lib.properties.fps);
      createjs.Ticker.addEventListener("tick", stage);
    </script>
    </head>
    <body onload="init();" style="background-color:#D4D4D4">
      <canvas id="canvas" width="550" height="400" style="background-color:#99CCFF"></canvas>
    </body>
    </html>
    Tony

  • The "clear now" button not working on cached web content

    I clicked Tools>option>advanced>cached web content, then clicked the "clear now" button>ok, nothing showed as if the button is not working and there was no clear action.

    That button to clear the cache is likely broken because the current Firefox 32 release has switched to a new cache service named Cache2.
    *https://www.mozilla.org/en-US/firefox/32.0/releasenotes/
    This change will cause extensions that use the old cache service to stop working and its developer needs to update the extension.
    You can check the Add-ons website to see if there is already a version available that is possibly not approved yet.
    *http://www.janbambas.cz/new-firefox-http-cache-enabled/
    *http://www.janbambas.cz/mozilla-firefox-new-http-cache-is-live/

  • Cisco Web Portal Cancel button issues on IPAD/Iphones

    Hi All,
    Having an intermittent issue whereby when Ipads or iphones connect to our guest wireless webportal and authenticates (currently set to bypass) the 'cancel' button does not dissappear and change to 'done'.
    Most of the time it will change to 'done' and when the user clicks it, it will redirect to the desired website.
    Usually when the issue occurs, the user will click cancel and then need to re-associate to the SSID but during the 2nd re-association it connects through without the webportal prompt.
    Any suggestions or reasons why this is happening?
    The webportal is hosted on the controller.
    Thanks in advance,
    Wil

    I haven't really tested the play button bypass, but there is a way to trigger it when running in a normal browser. Don't know if the hack works on an iPad. There are numerous threads about it. Search for "cp.movie.play()"
    You can only stream from a server that is configured for streaming.

  • Multiple web content overlays on a page

    I'm using Edge to make some vector animations--3 separate infographics--in my DPS publication. I'm placing them all on one single page, but only the first animation that is tapped by the user "plays" all the way through like it should. That is, once I tap and successfully play one animation, I try a second animation, but it loads but doesn't play.
    Is there some limitation on the number of web overlays--or HTML5 animations--that can be on a page?
    For background on my workflow, my organization doesn't yet have a DPS subscription. We are simply building folios with CS6 and testing with our accounts on the iPad with the newest Viewer (23).
    thanks,
    Scott

    We are having the same problem here. It's seems to be related with the iOS 6 update. We have two iPads, one with the updated software (iOS 6) and the other without it (iOS 5). Both of these have been updated with the new Adobe Content Viewer. The one with the old iOS works perfectly (HTML, Edge Animation, Videos) but the other with the most-up-to-date software does not. The HTML doesn't play and some times plays it once. We even tried by adding it to the HTMLResource folder to be trigger by a button to open a new window by itself, but no joy. Again we don’t have any of these problems on the iPad without the current software update. They all work perfectly
    Please advise since most users have upgraded their iPads and iPhones.
    Thanks,
    Daniel Rodriguez

  • How do I create an input box with a cancel button that will end a loop in my script?

    I have been working on a script for my client and I am having trouble getting it to work properly. I stole most of the code from the PowerShell Tip of the Week "Creating a Custom Input Box". I also took someone's code for the Show-MessageBox function.
    I have slightly modified the original code with two parameters and an additional text box. The first field is for an e-mail address and the second is for an employee number.
    I need to know how I can get a Do Until loop to recognize when the cancel button is pushed and break the loop and effectively end the script. The work happens at the end but perhaps I need something added/modified in the InputBox function.
    I want the script to check to see if anything has been entered in the second text box. If empty it displays a message and calls the InputBox function again. Then if there is something I use elseif to check to see if it matches my RegEx (digits only). If
    it doesn't match it will loop and call the InputBox function again.
    This all works fine. The problem I am having is that I cannot cancel out of the form. I'd like the loop to continue until the second box matches my RegEx or Cancel is clicked. Clicking cancel doesn't break the loop. I need to know how I can stop the loop
    when cancel is pressed. I've seen Stack "Overflow: PowerShell Cancel Button Stop Script" but I don't think this will work in a loop.
    Any help would be awesome. As a note, I DO NOT want to use the VB Interaction stuff.
    function InputBox {
    param ($Name,$EN)
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    $objForm = New-Object System.Windows.Forms.Form
    $objForm.Text = "Data Entry Form"
    $objForm.Size = New-Object System.Drawing.Size(300,200)
    $objForm.StartPosition = "CenterScreen"
    $objForm.KeyPreview = $True
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Enter")
    {$x=$objTextBox.Text;$objForm.Close()}})
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Escape")
    {$objForm.Close()}})
    $OKButton = New-Object System.Windows.Forms.Button
    $OKButton.Location = New-Object System.Drawing.Size(75,120)
    $OKButton.Size = New-Object System.Drawing.Size(75,23)
    $OKButton.Text = "OK"
    $OKButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text = "Cancel"
    $CancelButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($CancelButton)
    $objLabel = New-Object System.Windows.Forms.Label
    $objLabel.Location = New-Object System.Drawing.Size(10,20)
    $objLabel.Size = New-Object System.Drawing.Size(280,20)
    $objLabel.Text = "Employee Email Address:"
    $objForm.Controls.Add($objLabel)
    $objTextBox = New-Object System.Windows.Forms.TextBox
    $objTextBox.Location = New-Object System.Drawing.Size(10,40)
    $objTextBox.Size = New-Object System.Drawing.Size(260,20)
    if ($Name) {
    $objTextBox.Text = $Name
    else {
    $objTextBox.Text = "@domain.com"
    $objLabel2 = New-Object System.Windows.Forms.Label
    $objLabel2.Location = New-Object System.Drawing.Size(10,70)
    $objLabel2.Size = New-Object System.Drawing.Size(280,20)
    $objLabel2.Text = "Employee Number:"
    $objForm.Controls.Add($objLabel2)
    $objTextBox2 = New-Object System.Windows.Forms.TextBox
    $objTextBox2.Location = New-Object System.Drawing.Size(10,90)
    $objTextBox2.Size = New-Object System.Drawing.Size(260,20)
    $objForm.Controls.Add($objTextBox)
    $objForm.Controls.Add($objTextBox2)
    $objForm.Topmost = $True
    $objForm.Add_Shown({$objForm.Activate()})
    [void] $objForm.ShowDialog()
    $Script:ButtonName = $objTextBox.Text
    $script:ButtonEN =$objTextBox2.Text
    $ButtonName; $ButtonEN
    Function Show-MessageBox{
    Param(
    [Parameter(Mandatory=$True)][Alias('M')][String]$Msg,
    [Parameter(Mandatory=$False)][Alias('T')][String]$Title = "",
    [Parameter(Mandatory=$False)][Alias('OC')][Switch]$OkCancel,
    [Parameter(Mandatory=$False)][Alias('OCI')][Switch]$AbortRetryIgnore,
    [Parameter(Mandatory=$False)][Alias('YNC')][Switch]$YesNoCancel,
    [Parameter(Mandatory=$False)][Alias('YN')][Switch]$YesNo,
    [Parameter(Mandatory=$False)][Alias('RC')][Switch]$RetryCancel,
    [Parameter(Mandatory=$False)][Alias('C')][Switch]$Critical,
    [Parameter(Mandatory=$False)][Alias('Q')][Switch]$Question,
    [Parameter(Mandatory=$False)][Alias('W')][Switch]$Warning,
    [Parameter(Mandatory=$False)][Alias('I')][Switch]$Informational)
    #Set Message Box Style
    IF($OkCancel){$Type = 1}
    Elseif($AbortRetryIgnore){$Type = 2}
    Elseif($YesNoCancel){$Type = 3}
    Elseif($YesNo){$Type = 4}
    Elseif($RetryCancel){$Type = 5}
    Else{$Type = 0}
    #Set Message box Icon
    If($Critical){$Icon = 16}
    ElseIf($Question){$Icon = 32}
    Elseif($Warning){$Icon = 48}
    Elseif($Informational){$Icon = 64}
    Else{$Icon = 0}
    #Loads the WinForm Assembly, Out-Null hides the message while loading.
    [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
    #Display the message with input
    $Answer = [System.Windows.Forms.MessageBox]::Show($MSG , $TITLE, $Type, $Icon)
    #Return Answer
    Return $Answer
    $num = "^\d+$"
    do {
    if (!($ButtonEN)) {
    Show-MessageBox -Msg "You must enter a numeric value for the employee number." -Title "Employee Number Missing" -Critical
    InputBox -Name $ButtonName
    elseif ($ButtonEN -notmatch $num) {
    Show-MessageBox -Msg "The employee number must contain numbers only!" -Title "Non-numerical characters found" -Critical
    InputBox -Name $ButtonName
    until ( ($ButtonEN -match $num) -or (<this is where I want to be able to use the cancel button>)

    Here is a simple validation method.
    function New-InputBox{
    param(
    $EmailAddress='',
    $EmployeeNumber=''
    Add-Type -AssemblyName System.Windows.Forms
    $Form=New-Object System.Windows.Forms.Form
    $Form.Text='Data Entry Form'
    $Form.Size='300,200'
    $Form.StartPosition='CenterScreen'
    $OKButton=New-Object System.Windows.Forms.Button
    $OKButton.Location='75,120'
    $OKButton.Size='75,23'
    $OKButton.Text='OK'
    $OKButton.DialogResult='Ok'
    $OKButton.CausesValidation=$true
    $Form.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text ='Cancel'
    $CancelButton.DialogResult='Cancel'
    $CancelButton.CausesValidation=$false
    $Form.Controls.Add($CancelButton)
    $Label1=New-Object System.Windows.Forms.Label
    $Label1.Location='10,20'
    $Label1.Size='280,20'
    $Label1.Text='Employee Email Address:'
    $Form.Controls.Add($Label1)
    $TextBox1=New-Object System.Windows.Forms.TextBox
    $TextBox1.Location='10,40'
    $TextBox1.Size='260,20'
    $textbox1.Name='EmailAddress'
    $textbox1.Text=$EmailAddress
    $Form.Controls.Add($textbox1)
    $Label2=New-Object System.Windows.Forms.Label
    $Label2.Location='10,70'
    $Label2.Size='280,20'
    $Label2.Text='Employee Number:'
    $Form.Controls.Add($Label2)
    $TextBox2=New-Object System.Windows.Forms.TextBox
    $TextBox2.Location='10,90'
    $TextBox2.Size='260,20'
    $TextBox2.Name='EmployeeNumber'
    $TextBox2.Text=$EmployeeNumber
    $Form.Controls.Add($TextBox2)
    $Form.AcceptButton=$OKButton
    $Form.CancelButton=$CancelButton
    $Form.Topmost = $True
    $form1_FormClosing=[System.Windows.Forms.FormClosingEventHandler]{
    if($Form.DialogResult -eq 'OK'){
    if($textbox1.Text -eq ''){
    [void][System.Windows.Forms.MessageBox]::Show('please enter an email address','Validation Error')
    $_.Cancel=$true
    }else{
    # Check empno is all digits
    if("$($TextBox2.Text)" -notmatch '^\d+$'){
    [void][System.Windows.Forms.MessageBox]::Show('please enter a number "999999"','Validation Error')
    $_.Cancel=$true
    $form.add_FormClosing($form1_FormClosing)
    $Form.Add_Shown({$Form.Activate()})
    if($Form.ShowDialog() -eq 'Ok'){
    # return the form contents
    $Form
    if($f=New-InputBox -EmailAddress [email protected]){
    'Email is:{0} for Employee:{1}' -f $f.Controls['EmailAddress'].Text,$f.Controls['EmployeeNumber'].Text
    }else{
    Write-Host 'From cancelled!' -ForegroundColor red
    ¯\_(ツ)_/¯

Maybe you are looking for

  • How Much Ram Can My MacBook Support?

    I have a MacBook (not the pro or the air just a macbook) and i was wondering if it can support 8gb or 16gb because ive been hearing lots of different things. Also if anyone knows a link to a website for help on installing ram then that would be appre

  • Since Yosemite shortcuts (keyboard) not working in Safari

    I Think the title of this subject is making the point. I am a moderator of an Apple group on a Dutch Website. (I often use links to show them where things connected to their question can be found) I am solving questions asked there, but since Yosemit

  • OLE Automation for Acrobat Reader

    Hello guys I have been reading some lines about OLE Automation for Acrobat READER and Full Acrobat. So far I have seen most saying that Reader is not fully compliant with OLE. I really have zero experience with Adobe and before I buy a full acrobat l

  • Date Format weird

    Hi Oracle Experts, I have a table whith a column in the TimeStamp format, when i select from it using the to_date(created,'dd-mm-yyyy') I get data as 01-12-0004?? why not 01-12-2004 as the date should be ?

  • Unable to sync ___'s ipod. An unknown error occurred (-69)

    Greetings, all. I run Windows XP and the new version of itunes. My problem is this: when I sync my ipod, it will start to sync like it is supposed to, then it will periodocally freeze up. It will give me an error message to the effect "could not sync