Converting AcroForms javascript to Designer javascript

In Acrobat 6.0, I defined a form's field test script as;
var re = /^[A-Z][a-z]+ [A-Z] [A-Z][a-z]+$/
if (re.test(event.value) == false){
.... to test a field for a user's Firstname, Middle Initial, Lastname.
How do I write the same validation script in Designer 7?

Chris, I made the change but I got several lines of errors.
Here is the code to validate a name field;
var re = /^[A-Z][a-z]+ [A-Z] [A-Z][a-z]+$/
if (re.test(this.rawValue) == false)
xfa.host.messageBox("You did not enter a valid name. You
need to enter First, middle initial, and last name.")
And these are the error messages;
SyntaxError: missing ( before condition
3:XFA:F[0].P1[0].reqName[0]:mouseExit
SyntaxError: missing ( before condition
3:XFA:F[0].P1[0].reqName[0]:mouseExit
SyntaxError: missing ( before condition
3:XFA:F[0].P1[0].reqName[0]:mouseExit
SyntaxError: unterminated string literal
4:XFA:F[0].P1[0].reqName[0]:mouseExit
SyntaxError: unterminated string literal
4:XFA:F[0].P1[0].reqName[0]:exit
SyntaxError: unterminated string literal
4:XFA:F[0].P1[0].reqName[0]:validate
SyntaxError: unterminated string literal
5:XFA:F[0].P1[0].reqName[0]:mouseExit
SyntaxError: unterminated string literal
5:XFA:F[0].P1[0].reqName[0]:validate

Similar Messages

  • Using Google GWT to create (Dashcode) widgets for iBook Author  I would like to embed interactive widgets in iBooks using iBookAuthor. The widgets in question started life in Java but GWT has allowed them to be converted to javascript and to run on web pa

    I would like to embed interactive widgets in iBooks using iBookAuthor. The widgets in question started life in Java but GWT has allowed them to be converted to javascript and to run on web pages (for example, http://softoption.us/content/node/437 scroll to the bottom). In theory, iBookAuthor can bring in most html5, and much javascript. The technique is to wrap the html in a folder, with 2 extra files, a plist and a default png and then change the extension of the folder to ‘.wdgt’. This is the technique for making Dashboard widgets for the Mac, and Apple even have the Dashcode software to do it. So what you really do is to make a Dashboard widget, then iBookAuthor can import it.  So far, so good. And some  folk have been doing this, for example http://www.prweb.com/releases/2012/2/prweb9242432.htm http://www.panophoto.org/forums/viewtopic.php?f=64&t=10417&p=158330#p158423 However, if you start with GWT and create a single page with one button and a Hello World, compile it, and get the WAR file (I use Eclipse here)… the Safari browser and others will run it properly (even on an iPad). Then if you wrap it, a proper Dashboard widget is created, which runs properly on a Mac. Then if you go to iBookAuthor and put a custom widget in the Text, then drag it in. It is accepted by the text and shown as being there. However, if you use Preview to look at it on an iPad, it is gone (or was never there in the first place). Anyone any ideas on this? [And iBook Author seems to give no warnings.] The widget is at https://dl.dropbox.com/u/46713473/Test6.wdgt.zip I have bells and whistles that I’d like to get into an iBook!
    Thanks for any insights.
    Martin

    I do have a little to add, which might help someone. Indeed, opening a blank page and dragging the widget straight in seems good in difficult cases. But, actually, I was also able to insert successfully from the Toolbar especially to blank pages. So, it may have been something to do with the columns and stuff like that. Anyway back then the insertion would show in iBooks Author but not in the Preview on the iPad. I moved on to actual Google Web Toolkit output javascript. Basically I had three at hand to try: a Hello World with a button which went straight it, one of moderate complexity, (for example with a built in Lisp interpreter), which also went straight in, and finally a more complex one that initially was rejected by iBook Author. Author complained that there was an unsupported media file (of course, Author does not tell you which one it is, that would be too easy). [Remember, this was a proper working Dashboard widget which could be installed on a Mac]. Among other things I had read remarks about .gif files. When looking through the GWT war directory at the actual javascript etc files, I noticed there were two gifs there one called ‘clear.cache.gif ‘  and a second one called  ‘0F89659FF3F324AE4116F700257E32BD.cache.gif’. (Now, there is obfuscation so the numbers here may be different from case to case.) The clear.cache.gif did not seem to be anything special. But the other one is an animation. It is three little boxes that twinkle (rather like a waiting spinning cursor).  So, I opened that file and saved it to itself (that picks the top frame of the animation and saves only that, leaving you with an unanimated gif). The resulting widget drags and drops into iBooks Author (and seems to work properly at a quick glance). So, if you are having trouble with ‘unsupported media files’ converting animated gifs into unanimated gifs might help in some cases.

  • PDF Acroform Javascript (WIN): Calculate Next Tuesday Date

    06/03/10
    Greetings;
    I found a javascript that will calculate next Tuesday's date, but I can't seem to get it to work in Acrobat Pro v8 (Acroforms).
    Any assistance/guidance you can provide is most appreciated.
    Script:
    http://christian.lassem.com/js/javascript-next-tuesday/
    Javascript for finding Next Tuesday?
    function find_date_of_next_tuesday(){
       var today=new Date();
       today.setDate(today.getDate()+1);
       while (today.getDay()!=2){
          today.setDate(today.getDate()+1);
       return (today.toDateString());
    Thanks in advance.

    You just need to call this function and then use the string it returns. What
    is not working, exactly?

  • Convert HTML/javascript AIR app to flex-based AIR app?

    Hi all,
    I've already built an AIR app using HTML/javascript that I
    would like to monetize.
    I would like to use O2app's E-Commerce framework, which right
    now only supports Flex-created AIR apps.
    My question: Is there a simple way to "convert" an
    HTML/javascript AIR app to Flex 3 format? I'd rather not have to
    rebuild the app from scratch in Flex 3 if I don't have to. :)
    Thanks,
    Al

    Hi,
    There's no simple way to convert an HTML AIR app to flex.
    But it is possible to create HTML Root windows from a Flex
    AIR App. By root window, I mean the same kind of window that is
    launched when you launch an HTML AIR App.
    For more info, look at the HTMLLoader.createRootWindow()
    call. (This will be available from a Flex AIR app as well)

  • Convert HTML & Javascript to EXE

    I have a html page and , the html page is link with  a javascript file. I would like to convert both of them to exe.
    Is is possible for me to create a window form application in visual studio, and link the html page to window form? 

    You may want to take a look at the WebBrowser control:
    https://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser(v=vs.110).aspx
    It would be greatly appreciated if you would mark any helpful entries as helpful and if the entry answers your question, please mark it with the Answer link.

  • Convert() through JavaScript

    I currently have the applet embedded into a webpage and I wish to create a bitmap of the model to store and call back up elsewhere in my web application.
    When I call the function that should do the convert I get the following:
    Uncaught Error: java.security.AccessControlException: access denied ("java.io.FilePermission" "TestFile.bmp" "write")
    Currently I was just aiming to save the file near the applet on the server so haven't included an output directory or anything like that, the same error still appears however when I try full paths to either my local machine or relative paths elsewhere on the server etc.
    The code I am using is below, am I missing any extra steps out or is there something I can do to give the applet the correct permissions to do this?
    var convertOptionsClass = jApplet.getClass("com.cimmetry.core.ConvertOptions3D");
    var convertOptions = convertOptionsClass.newInstance();
    convertOptions.setOverwrite(true);
    convertOptions.setFormat("PCRS_BMP");
    convertOptions.setFileName("TestFile.bmp");
    jApplet.getActiveVueBean().getController().convert(convertOptions);
    Edited by: 986996 on Feb 22, 2013 2:57 AM

    Hi,
    It is likely that your JVM does not have enough permissions (<JRE>\lib\security\java.policy).
    Try adding permission java.security.AllPermission; in the grant block to check if it helps.
    There are other alternatives that you might consider for your application:
    - jApplet.getActiveVueBean().renderOntoGraphics() to render onto a graphics created from an image.
    - Using our Web Servises to convert or to generate a thumbnail.

  • Convert a Live Cycle Designer generated PDF to regular acrobat PDF

    Hi,
    I am assigned to the task of converting Live Cycle Designer generated PDF to regular acrobat PDF. I tried all options know to me but cannot succeed. The forms in LC designer is a fillable form with two buttons at the bottom. (Print & reset). The controls on the forms are
    Textbox
    Checkbox
    Print & reset buttons
    I tried the following options
    print  to a new pdf but the form became non-fillable with no controls
    importing into acrobat as new form but it said "document contran xml form and cannot be imported"
    tried save as with no success
    I am willing to re-do the form but trying to minimize the re-work
    The add or edit fields on form menu is not available for the form generated in live cycle.
    we want to get rid of all live cycle dependencies and stick to bare bones acrobat
    Please help

    The only way I can think of woudl be to print the XFA form to PDF (using the Print driver that comes with Acrobat). This will create an AcroForm PDF for you but all fields and structure wil be lost. This will give you the boiler plate, then you can use the Form Tools in Acrobat to lay fields on top of the form.
    Note that if you want to change some of the boiler plate you will have to go back to Designer and repeat the process. You may want to bite the bullet and redo the form now.
    Paul

  • Javax.faces.convert.EnumConverter - defective by design?

    Dear all,
    I'm confused as to how javax.faces.convert.EnumConverter is ever supposed to work. It basically does:
    getAsString: value.toString();
    getAsObject: Enum.valueOf( targetClass, value );
    But Enum.valueOf was never designed to be the opposite of value.toString(). The JavaDoc says it is the opposite of value.name(). So if you ever override an enum value to have a different toString than its name (a common occurence)...
    enum Gender {
    MALE {
       public String toString() {
          return "Male";
    }...then EnumConverter won't work for you. Surely this is a bug in the spec?
    For a long time now I've been using my own EnumConverter with JSF 1.1. It does...
    getAsString: if ( component instanceof UIInput ) return value.name() else value.toString();
    getAsObject: Enum.valueOf( targetClass, value );
    ...so there's a caveat when you're using labels (when you really do want the .toString() instead of the .name() to appear), but for UIInputs (eg. UISelects) you need to use the name() or it will never convert back.
    Can this design decision be double checked for JSF 2.0?
    Thanks,
    Richard.

    Okay, thanks. Now logged: https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=470

  • Requirements for HTML to get converted into masterpage by Design Manager

    Hi All, I am new SharePoint Developer. I am not designer, doesn't know much about CSS. I am getting HTML from outside. We have prepared the Wireframe in Visio as how the top and bottom should look like. My question is - Is there anything that I need to give
    to the Designer who doesn't know SharePoint? Is there any guidelines to prepare the HTML? Should I need to give them SharePoint CSS Chart or something that I should give it to designer? or It would be just plan basic HTML and CSS and Design Manager would convert
    itself?
    Please advise.
    Regards,
    Khushi

    Khushi
    If your designer has not used SharePoint before then the only thing you need to tell him/her is to take care of the html/xml validation. HTML should be W3C compliant. He can use any online tool to validate his HTML. There is a tool available on W3C.org (??)
    as well. All tags should have ending tags. Once you have the validated HTML, SharePoint will take care of the rest. Design manager will convert your default html file into a master page. Remaining html pages will have to be converted into SharePoint pages
    manually (Create pages in the Pages library). Ask your designer to layout the site using three sections: Header, Content and Footer. It will make your life much easier if you had these three sections in the master page.  Then all you will need to do is
    add content in the Content area of each of the remaining site page.
    Btw, I have written a complete chapter on this topic in my new book on SharePoint (See my signature below for link). It is available in Kindle edition also if you want to get an immediate access to it.
    Saifullah Shafiq
    Blog:  
    Twitter:   LinkedIn:
      Facebook:
      Google+:
      Latest Book:
    A Practical Guide to SharePoint 2013

  • Convert content into mobile design

    First website being developed by me in Muse Trial version for Desktop and Mobile. After completing designing in desktop, I have converted this into mobile which shows all blank pages including template. (1) Should I copy-paste text again from desktop and (2) once done, what is the single modification process of content to reflect in the multiple devices

    A great way to start is to copy over the ontent you'd like and move around/resize elements so they fit in the boundaries of the tablet and mobile versions of your site.
    Here is a tutorial that may help: http://tv.adobe.com/watch/muse-feature-tour/adobe-muse-designing-for-mobile-devices/
    Cheers,
    Justin Price

  • Converting from a responsive design to a static design?

    I know this is a backward question as most people are looking for the exact opposite. The thing is that I don't have the time yet to address the css rules for teh tablet and mobile device so in the meanwhile I want to avoid them and address them at a later date. I'm sattisfied with my desktop version and would like to launch it. The problem I encounter when attempting this is that it doesn't work. I thought going into my "fluid-grid.css" and deleting the tablet and mobile rules would be enough but apperently it isn't and I'm at a loss? After having deleted the said rules; I shrink my screen (or click the various screen sizes in Dreamweaver) and they still default to the unset tablet and mobile rules; this results in everything being a mess as expected because I haven't set any rules for these devices. How do I bypass this and simply make my desktop css rule the only one?

    Hey there Murray I deleted the media queries but still nothing. I managed to upload the site temporarily though through KISSr. Here it is: cainidp.kissr.com.
    Here is my css that excludes the tablet and mobile rules:
    @charset "utf-8";
    /* Simple fluid media
       Note: Fluid media requires that you remove the media's height and width attributes from the HTML
       http://www.alistapart.com/articles/fluid-images/
    img, object, embed, video {
              max-width: 100%;
    /* IE 6 does not support max-width so default to width 100% */
    .ie6 img {
              width:100%;
              Dreamweaver Fluid Grid Properties
              dw-num-cols-mobile:                    5;
              dw-num-cols-tablet:                    8;
              dw-num-cols-desktop:          12;
              dw-gutter-percentage:          15;
              Inspiration from "Responsive Web Design" by Ethan Marcotte
              http://www.alistapart.com/articles/responsive-web-design
              and Golden Grid System by Joni Korpi
              http://goldengridsystem.com/
    /* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
    @media only screen and (min-width: 769px) {
    .gridContainer {
              width: 75.2%;
              max-width: 1232px;
              padding-left: 0.4891%;
              padding-right: 0.4891%;
              margin: auto;
    .floatLeft {
              float: left;
    .floatRight {
              float: right;
    .noneFloat {
              float: none;
    .nameText {
              font-weight: bold;
              color: rgb(255,204,0);
    .nameLabel {
              font-weight: bold;
    .leftClear {
              clear: left;
    .alignLeft {
              text-align: left;
    .alignLeftBorder {
              border-right-width: thin;
              border-right-style: solid;
              border-right-color: rgb(255,255,255);
    .alignRight {
              text-align: right;
    .valignBottom {
              vertical-align: baseline;
    .alignRightBorder {
              border-left-width: thin;
              border-left-style: solid;
              border-left-color: rgb(255,255,255);
    .alignCenter {
              text-align: center;
    .righttClear {
              clear: right;
    .bothClear {
              clear: both;
    .marginTopNormalizer {
              margin-top: 0px;
    .marginTop2 {
              margin-top: 2%;
    .marginBottom2 {
              margin-bottom: 2%;
    .marginBottom7 {
              margin-bottom: 7%;
    .marginBottom1 {
              margin-bottom: 1%;
    .marginTop4 {
              margin-top: 4%;
    .marginTop8 {
              margin-top: 8%;
    .marginWelcome {
              margin-top: -3em;
    .marginTop68 {
              margin-top: 65%;
    .marginLeft {
              margin-left: 2em;
    .marginRight {
              margin-right: 2em;
    .marginRightContact {
              margin-right: 12em;
    .marginAuto {
              margin-left: auto;
              margin-right: auto;
    .bottomMargin {
              margin-bottom: 1.4em;
    .topBorder {
              border-top-width: thin;
              border-top-style: solid;
              border-top-color: #E18942;
    .bottomBorder {
              border-bottom-width: thin;
              border-bottom-style: solid;
              border-bottom-color: #E18942;
              padding-bottom: 4%;
    .paddingTop {
              padding-top: 4%;
    .paddingTop6 {
              padding-top: 6%;
    .paddingTop2 {
              padding-top: 2%;
    .imageBorder {
              background-color: #B95835;
              padding: 5px;
    .iframe {
              background-color: #B95835;
              padding: 5px;
              border-top-style: none;
              border-right-style: none;
              border-bottom-style: none;
              border-left-style: none;
    .blackpics {
              background-color: rgba(0,0,0,1);
              border: 2px outset rgba(255,255,255,1);
              font-size: 0.95em;
              width: 150px;
              font-weight: bold;
              text-transform: uppercase;
              text-align: center;
    .dateText {
              font-size: 0.8em;
              font-weight: bold;
    .toolbarblocks {
              float: left;
              padding-right: 2%;
              padding-left: 2%;
    .smallicons {
              float: left;
              margin-left: 2%;
    .footerRB {
              border-right-width: thin;
              border-right-style: ridge;
              border-right-color: rgba(255,255,255,1);
    .toolbarRB {
              border-right-width: thin;
              border-right-style: dotted;
              border-right-color: rgba(153,153,0,1);
    .toolbarLB {
              border-left-width: thin;
              border-left-style: dotted;
              border-left-color: rgba(153,153,0,1);
    .breadcrumbNav {
              font-size: 0.8em;
              font-weight: bold;
              text-transform: uppercase;
              background-color: rgba(0,0,0,.5);
              float: left;
              padding-top: 0.3%;
              padding-right: 1%;
              padding-bottom: 0.4%;
              padding-left: 1%;
              border-radius: 10px;
    .breadcrumbMargin {
              border-radius: 10px;
              margin-left: 2.5%;
    .typewriter {
              font-size: 0.8em;
              font-weight: bold;
              color: rgba(255,204,0,1);
              margin-left: 2%;
              float: left;
              background-color: rgba(139,21,21,0.5);
              padding-top: 0.3%;
              padding-bottom: 0.4%;
              border-radius: 10px;
              /* [disabled]width: 59%; */
              overflow: hidden;
    .footerUL {
              margin-left: -24px;
              list-style-type: square;
    .footerLogoScribe {
              font-size: 1.2em;
    .overflowHidden {
              overflow: hidden;
    .overflowAuto {
              overflow: auto;
    .standardTable {
              width: 50%;
    .fullTable {
              width: 100%;
    .Table100 {
              width: 100%;
    .Table66 {
              width: 66%;
    .Table62 {
              width: 62%;
    .Table50 {
              width: 50%;
    .Table59 {
              width: 59%;
    .Table41 {
              width: 41%;
    .Table38 {
              width: 38%;
    .Table34 {
              width: 34%;
    .container {
              width: 94%;
              margin-top: 1.2%;
              margin-right: auto;
              margin-left: auto;
              overflow: hidden;
              clear: both;
              margin-bottom: 2%;
              font-size: 1em;
              word-spacing: 0.15em;
    .w100 {
              width: 100%;
    .w98 {
              width: 94%;
    .w85 {
              width: 85%;
    .w80 {
              width: 80%;
    .w75 {
              width: 75%;
    .w72 {
              width: 72%;
    .w70 {
              width: 70%;
              float: left;
    .w60 {
              width: 60%;
    .w62 {
              width: 65%;
    .w55 {
              width: 55%;
    .w50 {
              width: 50%;
    .w33 {
              width: 33.3%;
    .w40 {
              width: 37%;
    .w45 {
              width: 42%;
    .w30 {
              width: 30%;
    .w25 {
              width: 25%;
    .copyright {
              width: 98%;
              margin-top: 9%;
              margin-right: auto;
              margin-left: auto;
    .orderformlist {
              list-style: none;
              margin: 0;
              padding: 0;
    .sendbuttons {
              background-color: #000000;
              font-weight: bold;
              color: rgba(255,255,255,1);
              padding-top: 4%;
              padding-right: 6%;
              padding-bottom: 4%;
              padding-left: 6%;
              border: thin groove rgba(51,51,51,1);
    .sendbuttons:hover {
              font-family: Arial, Helvetica, sans-serif;
              font-weight: bold;
              color: rgba(255,255,255,1);
              background-color: #bdbe30;
              float: right;
              padding-top: 1%;
              padding-right: 2%;
              padding-bottom: 1%;
              padding-left: 2%;
              font-size: 1em;
              border: thin groove rgba(51,51,51,1);
    .field {
              color: rgb(255,255,255);
              background-color: rgb(0,0,0);
              padding: 1.5%;
              border-radius: 3px;
              border: none;
              outline: none;
    .fieldselect {
              color: rgb(255,255,255);
              background-color: rgb(0,0,0);
              padding: 2;
              border-radius: 3px;
              border: none;
              outline: none;
              height: 30px;
    .blockdisplay {
              display: block;
    a:link {
              color: #FFF;
              text-decoration: none;
    a:visited {
              text-decoration: none;
              color: #FFFFFF;
    a:hover {
              text-decoration: none;
              color: #FF0;
    a:active {
              text-decoration: none;
              color: rgba(255,153,0,1);
    #LayoutDiv1 {
              clear: both;
              float: left;
              margin-left: 0;
              width: 100%;
              display: block;
    #toolbar {
              background-color: rgba(139,21,21,1);
              box-shadow: 0px 2px 15px -2px rgba(0, 0, 0, 0.7);
              clear: both;
              color: #FFF;
              display: block;
              float: left;
              font-size: 0.82em;
              margin-left: 0;
              overflow: hidden;
              padding-top: 0.6%;
              padding-bottom: 0.6%;
              width: 100%;
              word-spacing: 0.15em;
    #sitelogo {
              background-image: url(../_images/_main_site_logo/site_logo_bg.png);
              background-repeat: no-repeat;
              border-radius: 8px;
              box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.6);
              clear: both;
              color: #FFF;
              display: block;
              float: left;
              height: 213px;
              margin-left: 0;
              margin-top: 3.2%;
              position: relative;
              overflow: hidden;
              width: 100%;
    #flag {
              width: 40%;
              margin-left: 2.1%;
              position: absolute;
              margin-top: 1.3%;
              z-index: 10;
    #kennelname {
              position: absolute;
              margin-left: 2.8%;
              margin-top: 2.3%;
              overflow: hidden;
              z-index: 0;
    #maincontentarea {
              background-color: rgba(163,25,25,1);
              box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.6);
              border-radius: 8px;
              clear: both;
              color: #FFF;
              display: block;
              float: left;
              font-size: 1em;
              letter-spacing: 0.1em;
              margin-left: 0;
              overflow: hidden;
              margin-top: 3.2%;
              padding-bottom: 1%;
              width: 100%;
              word-spacing: 0.15em;
    #topnav {
              background-color: rgba(139,21,21,1);
              clear: both;
              padding-top: 1%;
              padding-bottom: 1%;
              border-radius: 8px 8px 0px 0px;
              overflow: hidden;
    #details {
              width: 94%;
              margin-right: auto;
              margin-left: auto;
              overflow: hidden;
    #contentseal {
              width: 94%;
              margin-right: auto;
              margin-left: auto;
              margin-top: 3%;
              margin-bottom: 2%;
              overflow: hidden;
              clear: both;
              line-height: 140%;
              font-size: 0.98em;
    #google {
              background-color: rgb(0,0,0);
              border: thin solid #000;
              width: 230px;
              margin-top: 30%;
              overflow: auto;
    #submit1 {
              background-color: rgb(0,0,0);
              border: none;
              color: rgb(255,255,255);
              cursor: pointer;
              padding: 1.5%;
              margin-top: 4%;
              font-weight: bold;
    #submit1:hover {
              background-color: rgb(0,153,0);
              border: none;
              color: rgb(255,255,255);
              cursor: pointer;
              padding: 1.5%;
              margin-top: 4%;
              font-weight: bold;
    #mapsHeader {
              background-color: rgba(51,51,51,1);
              border-bottom-color: #000;
              border-bottom-style: solid;
              border-bottom-width: thin;
              font-weight: bold;
              text-transform: uppercase;
              color: rgb(255,255,255);
              text-align: center;
              padding-top: 0.5%;
              padding-bottom: 0.5%;
              font-size: 0.95em;
    #maillogo {
              background-color: rgb(0,0,0);
              height: 160px;
              position: relative;
              border-radius: 6px;
    #mailicon {
              float: left;
              margin-left: 43%;
              overflow: hidden;
              position: absolute;
    #discussions {
              background-color: rgba(163,25,25,1);
              border-radius: 8px;
              box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.6);
              clear: both;
              color: #FFF;
              display: block;
              float: left;
              letter-spacing: 0.1em;
              margin-left: 0;
              margin-top: 3.2%;
              overflow: hidden;
              width: 100%;
              word-spacing: 0.15em;
    #holder {
              width: 94%;
              margin-top: 2%;
              margin-right: auto;
              margin-left: auto;
              overflow: hidden;
              clear: both;
              margin-bottom: 2%;
              font-size: 1em;
              word-spacing: 0.15em;
    #footer {
              background-color: rgba(163,25,25,1);
              border-radius: 8px;
              box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.6);
              clear: both;
              color: #FFF;
              display: block;
              float: left;
              margin-left: 0;
              margin-top: 3.2%;
              margin-bottom: 5%;
              overflow: hidden;
              width: 100%;
    #container {
              width: 94%;
              margin-top: 1.2%;
              margin-right: auto;
              margin-left: auto;
              overflow: hidden;
              clear: both;
              margin-bottom: 2%;
              font-size: 1em;
              word-spacing: 0.15em;
    #nlimage {
    #newsletter h2 iframe {
              height: 190px;
              width: 100%;
              overflow: hidden;
              border: none;
              background-color: rgb(0,0,0);
              color: rgb(255,255,255);
              border-radius: 2px;
    #newslettertable {
              width: 100%;
              font-size: 0.85em;
    #footeraddress {
              font-size: 12px;
              line-height: 40px;
              font-weight: bold;
              color: rgba(255,255,255,1);
              background-image: url(../_images/_footer/address_button.png);
              background-repeat: no-repeat;
              text-indent: 25px;
              height: 40px;
              width: 272px;
    #footertelnumber {
              font-size: 12px;
              font-weight: bold;
              color: rgba(255,255,255,1);
              background-image: url(../_images/_footer/tel_button.png);
              background-repeat: no-repeat;
              text-indent: 25px;
              height: 40px;
              width: 272px;
              line-height: 40px;
              margin-top: 6%;
    #footeremail {
              font-size: 12px;
              line-height: 40px;
              font-weight: bold;
              color: rgba(255,255,255,1);
              background-image: url(../_images/_footer/email_button.png);
              background-repeat: no-repeat;
              text-indent: 25px;
              height: 40px;
              width: 272px;
              margin-top: 6%;
    #bottombit {
              overflow: hidden;
              font-size: 0.8em;
              background-color: rgb(139,21,21);
              border-radius: 0px 0px 8px 8px;
              padding-top: 0.6%;
              padding-bottom: 0.6%;
    #finishes {
              width: 94%;
              margin-right: auto;
              margin-left: auto;
    #footertable {
              width: 100%;
    #smalllogo {
              width: 7%;
              margin-top: 2%;
    #smallkennellogo {
              margin-top: 4%;
    #logoscribe {
              width: 28%;
    #copyright {
              width: 35%;
    #copyright p {
              margin-right: auto;
              margin-left: auto;
              width: 98%;
              margin-top: 9%;
    #pdb {
              /* [disabled]float: right; */
              width: 30%;
    #pdb a {
              float: right;
              margin-top: 2%;

  • Converting Illustrator to In Design using copy and paste

    I designed a 32 page catalog in Adobe Illustrator but now I need to take it into In Design before I can make a booklet to send to the printer. I tried just copying everyone on an artboard and pasting into In Design but I can't get it to work. Suggestions?

    Firstly - Illustrator was not the correct tool to create a 32 page catalogue.
    InDesign should have been used from the start.
    Secondly - you shouldn't have to create the booklet - that's the printers job. Even when I was in prepress we would have someones send 1000s of single page pdfs. It was no hassle to put all these together and make a booklet.
    Thirdly - you could just PDFs of your Illustrator files and then use Acrobat Professional feature to Combine Files.
    Fourthly - if you really had to you could File>Place all the documents into InDesign. Then make a PDF from there.
    You'd still require Illustrator to edit the files.

  • Creating hyperlinks in fillable forms

    How do I add hyperlinks (e.g., send email, display form, display web page, etc.) after I have created a fillable form using Adobe LiveCycle Designer 7.0? I can create them in the original PDF file but upon conversion to fillable, links are lost.

    Some but not all Acroform Javascript is supported in xfa forms.
    You can find more information on how to convert Acroform javascript to xfa form javascript from the document that the link is provided below.
    http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS_DesignerJS.pdf
    I also posted a work around for create a link to another web page from xfa form. Here is the link to that post.
    http://www.adobeforums.com/cgi-bin/webx?128@@.3bba1fb6

  • Easy way to convert javascript to a java applet?

    Hello all! I am relatively new to java and java programming and had a question about converting a JavaScript to a java applet or even a standalone application. I included the JavaScript code for a checkers game below and wanted to know what would be the easiest way to convert this code if at all possible?
    Thanks in advance,
    Bob
    <SCRIPT language=JavaScript>
    <!--
    version = 1.0;
    // -->
    </SCRIPT>
    <SCRIPT language=JavaScript1.1>
    <!--
    version = 1.1;
    // -->
    </SCRIPT>
    <SCRIPT language=JavaScript>
    <!--
    if (version==1.0)
    document.write("Your browser doesn't have JavaScript 1.1 capabilities. "
    + "This checkers game script only works on Netscape 3+ and MSIE 4+.");
    // -->
    </SCRIPT>
    <SCRIPT language=JavaScript1.1>
    <!--
    // Checkers Game
    // black.gif
    // gray.gif
    // you1.gif -- normal piece (player/red)
    // you2.gif -- highlighted piece
    // you1k.gif -- kinged normal piece
    // you2k.gif -- kinged highlighted piece
    // me1.gif -- normal piece (computer/black)
    // me2.gif -- highlighted piece
    // me1k.gif -- kinged normal piece
    // me2k.gif -- kinged highlighted piece
    function preload() {
    this.length = preload.arguments.length;
    for (var i = 0; i < this.length; i++) {
    this[i] = new Image();
    this.src = preload.arguments[i];
    var pics = new preload("black.gif","gray.gif",
    "you1.gif","you2.gif","you1k.gif","you2k.gif",
    "me1.gif","me2.gif","me1k.gif","me2k.gif");
    var black = -1; // computer is black
    var red = 1; // visitor is red
    var square_dim = 35;
    var piece_toggled = false;
    var my_turn = false;
    var double_jump = false;
    var comp_move = false;
    var game_is_over = false;
    var safe_from = safe_to = null;
    var toggler = null;
    var togglers = 0;
    function Board() {
    board = new Array();
    for (var i=0;i<8; i++) {
    board[i] = new Array();
    for (var j=0;j<8;j++)
    board[i][j] = Board.arguments[8*j+i];
    board[-2] = new Array(); // prevents errors
    board[-1] = new Array(); // prevents errors
    board[8] = new Array(); // prevents errors
    board[9] = new Array(); // prevents errors
    var board;
    Board(1,0,1,0,1,0,1,0,
    0,1,0,1,0,1,0,1,
    1,0,1,0,1,0,1,0,
    0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,
    0,-1,0,-1,0,-1,0,-1,
    -1,0,-1,0,-1,0,-1,0,
    0,-1,0,-1,0,-1,0,-1);
    function message(str) {
    if (!game_is_over)
    document.disp.message.value = str;
    function moveable_space(i,j) {
    // calculates whether it is a gray (moveable)
    // or black (non-moveable) space
    return (((i%2)+j)%2 == 0);
    function Coord(x,y) {
    this.x = x;
    this.y = y;
    function coord(x,y) {
    c = new Coord(x,y);
    return c;
    document.write("<table border=0 cellspacing=0 cellpadding=0 width="+(square_dim*8+8)
    +"<tr><td><img src='black.gif' width="+(square_dim*8+8)
    +" height=4><br></td></tr>");
    for(var j=0;j<8;j++) {
    document.write("<tr><td><img src='black.gif' width=4 height="+square_dim+">");
    for(var i=0;i<8;i++) {
    if (moveable_space(i,j))
    document.write("<a href='javascript:clicked("+i+","+j+")'>");
    document.write("<img src='");
    if (board[i][j]==1) document.write("you1.gif");
    else if (board[i][j]==-1) document.write("me1.gif");
    else if (moveable_space(i,j)) document.write("gray.gif");
    else document.write("black.gif");
    document.write("' width="+square_dim+" height="+square_dim
    +" name='space"+i+""+j+"' border=0>");
    if (moveable_space(i,j)) document.write("</a>");
    document.write("<img src='black.gif' width=4 height="+square_dim+"></td></tr>");
    document.write("<tr><td><img src='black.gif' width="+(square_dim*8+8)
    +" height=4><br></td></tr></table><br>"
    +"<form name='disp'><textarea name='message' wrap=virtual rows=2 cols=40></textarea><br><input "
    +"type=button value=\"Start the Game Over\" onClick=\"location.href+=''\"></form>");
    function clicked(i,j) {
    if (my_turn) {
    if (integ(board[i][j])==1) toggle(i,j);
    else if (piece_toggled) move(selected,coord(i,j));
    else message("First click one of your red pieces, then click where you want to move it");
    } else {
    message("It's not your turn yet. Hang on a sec!");
    function toggle(x,y) {
    if (my_turn) {
    if (piece_toggled)
    draw(selected.x,selected.y,"you1"+((board[selected.x][selected.y]==1.1)?"k":"")+".gif");
    if (piece_toggled && (selected.x == x) && (selected.y == y)) {
    piece_toggled = false;
    if (double_jump) { my_turn = double_jump = false; computer(); }
    } else {
    piece_toggled = true;
    draw(x,y,"you2"+((board[x][y]==1.1)?"k":"")+".gif");
    selected = coord(x,y);
    } else {
    if ((piece_toggled) && (integ(board[selected_c.x][selected_c.y])==-1))
    draw(selected_c.x,selected_c.y,"me1"+((board[selected_c.x][selected_c.y]==-1.1)?"k":"")+".gif");
    if (piece_toggled && (selected_c.x == x) && (selected_c.y == y)) {
    piece_toggled = false;
    } else {
    piece_toggled = true;
    draw(x,y,"me2"+((board[x][y]==-1.1)?"k":"")+".gif");
    selected_c = coord(x,y);
    function draw(x,y,name) {
    document.images["space"+x+""+y].src = name;
    function integ(num) {
    if (num != null)
    return Math.round(num);
    else
    return null;
    function abs(num) {
    return Math.abs(num);
    function sign(num) {
    if (num < 0) return -1;
    else return 1;
    function concatenate(arr1,arr2) {
    // function tacks the second array onto the end of the first and returns result
    for(var i=0;i<arr2.length;i++)
    arr1[arr1.length+i] = arr2[i];
    return arr1;
    function legal_move(from,to) {
    if ((to.x < 0) || (to.y < 0) || (to.x > 7) || (to.y > 7)) return false;
    piece = board[from.x][from.y];
    distance = coord(to.x-from.x,to.y-from.y);
    if ((distance.x == 0) || (distance.y == 0)) {
    message("You may only move diagonally.");
    return false;
    if (abs(distance.x) != abs(distance.y)) {
    message("Invalid move.");
    return false;
    if (abs(distance.x) > 2) {
    message("Invalid move.");
    return false;
    if ((abs(distance.x) == 1) && double_jump) {
    return false;
    if ((board[to.x][to.y] != 0) || (piece == 0)) {
    return false;
    if ((abs(distance.x) == 2)
    && (integ(piece) != -integ(board[from.x+sign(distance.x)][from.y+sign(distance.y)]))) {
    return false;
    if ((integ(piece) == piece) && (sign(piece) != sign(distance.y))) {
    return false;
    return true;
    function move(from,to) {
    my_turn = true;
    if (legal_move(from,to)) {
    piece = board[from.x][from.y];
    distance = coord(to.x-from.x,to.y-from.y);
    if ((abs(distance.x) == 1) && (board[to.x][to.y] == 0)) {
    swap(from,to);
    } else if ((abs(distance.x) == 2)
    && (integ(piece) != integ(board[from.x+sign(distance.x)][from.y+sign(distance.y)]))) {
    double_jump = false;
    swap(from,to);
    remove(from.x+sign(distance.x),from.y+sign(distance.y));
    if ((legal_move(to,coord(to.x+2,to.y+2)))
    || (legal_move(to,coord(to.x+2,to.y-2)))
    || (legal_move(to,coord(to.x-2,to.y-2)))
    || (legal_move(to,coord(to.x-2,to.y+2)))) {
    double_jump = true;
    message("You may complete the double jump or click on your piece to stay still.");
    if ((board[to.x][to.y] == 1) && (to.y == 7)) king_me(to.x,to.y);
    selected = to;
    if (game_over() && !double_jump) {
    setTimeout("toggle("+to.x+","+to.y+");my_turn = double_jump = false;computer();",1000);
    return true;
    function king_me(x,y) {
    if (board[x][y] == 1) {
    board[x][y] = 1.1; // king you
    draw(x,y,"you2k.gif");
    } else if (board[x][y] == -1) {
    board[x][y] = -1.1; // king me
    draw(x,y,"me2k.gif");
    function swap(from,to) {
    if (my_turn || comp_move) {
    dummy_src = document.images["space"+to.x+""+to.y].src;
    document.images["space"+to.x+""+to.y].src = document.images["space"+from.x+""+from.y].src;
    document.images["space"+from.x+""+from.y].src = dummy_src;
    dummy_num = board[from.x][from.y];
    board[from.x][from.y] = board[to.x][to.y];
    board[to.x][to.y] = dummy_num;
    function remove(x,y) {
    if (my_turn || comp_move)
    draw(x,y,"gray.gif");
    board[x][y] = 0;
    function Result(val) {
    this.high = val;
    this.dir = new Array();
    function move_comp(from,to) {
    toggle(from.x,from.y);
    comp_move = true;
    swap(from,to);
    if (abs(from.x-to.x) == 2) {
    remove(from.x+sign(to.x-from.x),from.y+sign(to.y-from.y));
    if ((board[to.x][to.y] == -1) && (to.y == 0)) king_me(to.x,to.y);
    setTimeout("selected_c = coord("+to.x+","+to.y+");piece_toggled = true;",900);
    setTimeout("bak=my_turn;my_turn=false;toggle("+to.x+","+to.y+");my_turn=bak;",1000);
    if (game_over()) {
    setTimeout("comp_move = false;my_turn = true;togglers=0;",600);
    message("Ok. It's your turn. You may make your move.");
    return true;
    function game_over() { // make sure game is not over (return false if game is over)
    comp = you = false;
    for(var i=0;i<8;i++) {
    for(var j=0;j<8;j++) {
    if(integ(board[i][j]) == -1) comp = true;
    if(integ(board[i][j]) == 1) you = true;
    if (!comp) message("You beat me!");
    if (!you) message("Gotcha! Game over.");
    game_is_over = (!comp || !you)
    return (!game_is_over);
    // the higher the jump_priority, the more often the computer will take the jump over the safe move
    var jump_priority = 10;
    function computer() {
    // step one - prevent any jumps
    for(var j=0;j<8;j++) {
    for(var i=0;i<8;i++) {
    if (integ(board[i][j]) == 1) {
    if ((legal_move(coord(i,j),coord(i+2,j+2))) && (prevent(coord(i+2,j+2),coord(i+1,j+1)))) {
    return true;
    } if ((legal_move(coord(i,j),coord(i-2,j+2))) && (prevent(coord(i-2,j+2),coord(i-1,j+1)))) {
    return true;
    } if (board[i][j] == 1.1) {
    if ((legal_move(coord(i,j),coord(i-2,j-2))) && (prevent(coord(i-2,j-2),coord(i-1,j-1)))) {
    return true;
    } if ((legal_move(coord(i,j),coord(i+2,j-2))) && (prevent(coord(i+2,j-2),coord(i+1,j-1)))) {
    return true;
    // step two - if step one not taken, look for jumps
    for(var j=7;j>=0;j--) {
    for(var i=0;i<8;i++) {
    if (jump(i,j))
    return true;
    safe_from = null;
    // step three - if step two not taken, look for safe single space moves
    for(var j=0;j<8;j++) {
    for(var i=0;i<8;i++) {
    if (single(i,j))
    return true;
    // if no safe moves, just take whatever you can get
    if (safe_from != null) {
    move_comp(safe_from,safe_to);
    } else {
    message("You beat me!!");
    game_is_over = true;
    safe_from = safe_to = null;
    return false;
    function jump(i,j) {
    if (board[i][j] == -1.1) { 
    if (legal_move(coord(i,j),coord(i+2,j+2))) {
    move_comp(coord(i,j),coord(i+2,j+2));
    setTimeout("jump("+(i+2)+","+(j+2)+");",500);
    return true;
    } if (legal_move(coord(i,j),coord(i-2,j+2))) {
    move_comp(coord(i,j),coord(i-2,j+2));
    setTimeout("jump("+(i-2)+","+(j+2)+");",500);
    return true;
    } if (integ(board[i][j]) == -1) {
    if (legal_move(coord(i,j),coord(i-2,j-2))) {
    move_comp(coord(i,j),coord(i-2,j-2));
    setTimeout("jump("+(i-2)+","+(j-2)+");",500);
    return true;
    } if (legal_move(coord(i,j),coord(i+2,j-2))) {
    move_comp(coord(i,j),coord(i+2,j-2));
    setTimeout("jump("+(i+2)+","+(j-2)+");",500);
    return true;
    return false;
    function single(i,j) {
    if (board[i][j] == -1.1) {
    if (legal_move(coord(i,j),coord(i+1,j+1))) {
    safe_from = coord(i,j);
    safe_to = coord(i+1,j+1);
    if (wise(coord(i,j),coord(i+1,j+1))) {
    move_comp(coord(i,j),coord(i+1,j+1));
    return true;
    } if (legal_move(coord(i,j),coord(i-1,j+1))) {
    safe_from = coord(i,j);
    safe_to = coord(i-1,j+1);
    if (wise(coord(i,j),coord(i-1,j+1))) {
    move_comp(coord(i,j),coord(i-1,j+1));
    return true;
    } if (integ(board[i][j]) == -1) {
    if (legal_move(coord(i,j),coord(i+1,j-1))) {
    safe_from = coord(i,j);
    safe_to = coord(i+1,j-1);
    if (wise(coord(i,j),coord(i+1,j-1))) {
    move_comp(coord(i,j),coord(i+1,j-1));
    return true;
    } if (legal_move(coord(i,j),coord(i-1,j-1))) {
    safe_from = coord(i,j);
    safe_to = coord(i-1,j-1);
    if (wise(coord(i,j),coord(i-1,j-1))) {
    move_comp(coord(i,j),coord(i-1,j-1));
    return true;
    return false;
    function possibilities(x,y) {
    if (!jump(x,y))
    if (!single(x,y))
    return true;
    else
    return false;
    else
    return false;
    function prevent(end,s) {
    i = end.x;
    j = end.y;
    if (!possibilities(s.x,s.y))
    return true;
    else if ((integ(board[i-1][j+1])==-1) && (legal_move(coord(i-1,j+1),coord(i,j)))) {
    return move_comp(coord(i-1,j+1),coord(i,j));
    } else if ((integ(board[i+1][j+1])==-1) && (legal_move(coord(i+1,j+1),coord(i,j)))) {
    return move_comp(coord(i+1,j+1),coord(i,j));
    } else if ((board[i-1][j-1]==-1.1) && (legal_move(coord(i-1,j-1),coord(i,j)))) {
    return move_comp(coord(i-1,j-1),coord(i,j));
    } else if ((board[i+1][j-1]==-1.1) && (legal_move(coord(i+1,j-1),coord(i,j)))) {
    return move_comp(coord(i+1,j-1),coord(i,j));
    } else {
    return false;
    function wise(from,to) {
    i = to.x;
    j = to.y;
    n = (j>0);
    s = (j<7);
    e = (i<7);
    w = (i>0);
    if (n&&e) ne = board[i+1][j-1]; else ne = null;
    if (n&&w) nw = board[i-1][j-1]; else nw = null;
    if (s&&e) se = board[i+1][j+1]; else se = null;
    if (s&&w) sw = board[i-1][j+1]; else sw = null;
    eval(((j-from.y != 1)?"s":"n")+((i-from.x != 1)?"e":"w")+"=0;");
    if ((sw==0) && (integ(ne)==1)) return false;
    if ((se==0) && (integ(nw)==1)) return false;
    if ((nw==0) && (se==1.1)) return false;
    if ((ne==0) && (sw==1.1)) return false;
    return true;
    message("You may begin! Select a piece to move.");
    my_turn = true;
    // -->
    </SCRIPT>

    Well, you can get a free tutorial to Java at http://www.mindview.net/. It's the "Thinking In Java" book. You can download the whole book from that site, it's about a thousand pages. If you read that whole book, you'll know exactly where to start and probably how to finish it too.
    As a gimmie, think about it -- you'll have to remove all of the browser-detect code, since browser-detection is only done to determine which version of JavaScript is supported by the browser.

  • Adding javascript to Print Form button

    Using the Script Editor, can I convert this javascript so that it will fire on MouseUp on the Print Form button? The Designer file is attached for reference.
    newDocName = "";
    f1 = this.getField("topmostSubform[0].Page1[0].Last_Name[0]").valueAsString;
    if (f1!="") newDocName += f1 + " ";
    f2 = this.getField("topmostSubform[0].Page1[0].First_Name[0]").valueAsString;
    if (f2!="") newDocName += f2 + " ";
    f3 = this.getField("topmostSubform[0].Page1[0].Date[0]").valueAsString;
    if (f3!="") newDocName += f3 + " ";
    f4 = this.getField("topmostSubform[0].Page1[0].Email[0]").valueAsString;
    if (f4!="") newDocName += f4;
    newDocName = newDocName.replace(/[\\,\/,\:,\*,\?,\",\<,\>,\|,\,,\n,\r]/g,"");
    docPath = this.path+"";
    docPath = docPath.substring(0, docPath.lastIndexOf("/")+1);
    mySaveAs(this,docPath+newDocName+".pdf");

    Hi penny, I did figure it out actually or more so Wazala technical support figured it out. Email them as the answer might be slightly different depending on your circumstances.

Maybe you are looking for