UI: looking for advice on how to avoid many cases JS statements...

See you soon,.

With a simple user interface (the user can check multiple checkboxes, radio buttons or find more stuff with text editboxes), I find myself with a lot many if statements wants to know what the user actually clicked/typed.

For example. I've got 3 boxes - I then go ahead and write several statements such as if (1 & & 2 & & 3), if (! 1 & & 2 & & 3), etc. There are so many possible combinations so this will get rather overwhelming at any time. There must be a smarter way to do this?

Thank you

Rasmus

Something like this:

If (oDialog.show () //Get all your variables

{

Switch (rLColoumn.selectedButton)

{

case 0: area var = "bleed." break;

case 1: country var = "slug." break;

case 2: region = "custom"; var break;

}

var areaValue = tLColoumn.editValue;

......

oDialog.destroy ();

} else {//bail out if the dialog box is canceled

oDialog.destroy ();

return;

}

Now use your variables to perform your functions...

cleaning (oDoc oArray field, areaValue);

....

Substances

Tags: InDesign

Similar Questions

  • Looking for advice on how to use math Input Panel?

    I bought a Wacom Create Tablet for use with generation of mathematical equations. The problem is he doesn't know how I got all my equations.  Cape Sigma introduce you to 3, etc., 2 as a symbol of the partial derivatives etc.

    Yet, I have an input value of the quadratic equation.
    Harry Smith

    Hello

    I suggest you to contact Wacom support about the issue.

    http://www.Wacom.com/en/company/contact.aspx

  • In FF 7.0.1 the new tab on the band on tabs disappeared after clicking on the icon of the tab group button and try to return, I'm looking for advice on how to get the new tab to reappear on the Strip to tabs.

    In Windows Vista, FF 7.0.1 I've selected the button tab group to try out it. However, when I chose the button group of tabs to close this point of view, the button tab in the strip of the tab no longer appears. I'm a request for assistance to restore the button new tab (the sign '+' on the subject) on the tabs to the right of the tabs open tape.

    You can find the button new tab showing as a '+' on the tab bar.

    You can open the window customize and drag the button new tab that indicates that a sign plus bar tabs on another toolbar and it will become a regular tools like the new button bar button tab you have in versions of Firefox 3.

    Open the Customize via "view > toolbars > customize" or "Firefox > Options > toolbars."

    If you can not find the new button tab then click the button 'Restore Default Set' in the window customize.

    If you would like the button tab at the right end of the tab bar, then place a flexible space to the left of it.

  • I spent hours on web sites looking for advice clean my iMac - they were all dead ends.  I send a question to this 'Community' first, but must have done it badly because there was no trace of it.  I have the effect on this model beach ball

    I spent hours on web sites looking for advice clean my iMac - they were all dead ends.  I send a question to this 'Community' first, but must have done it badly because there was no trace of it.  I now have the beach on this computer ball effect.  Are there places I can delete cookies etc to help out?  Thank you for your help.

    horse8905

    Don't know what's happening, you do not give a lot of information, but if you have the constant beachballing (spinning wait cursor), which could mean that the hard drive is dying.

    Open Console.app in Applications > utilities. Filter, called "String Matching," right, high enter "I/o" without the quotes. What happens when you do this?

  • HP ENVY 700-230ea desktop: looking for advice to update for my HP ENVY 700-230ea desktop computer

    Hi all

    looking for advice to update for my 2 year old want 700-230ea descktop

    thought in the following way

    Replace the boot wth drive a fast SSD

    Doubling of the Ram of 16 MB to 32 MB

    Add a better graphics card.

    Just struggling to find compatibel points, so everyone has any idea, what type of memory should I watch so that its compatibility with the existing 2, 8 meg sticks

    SSDS seem to be a source of confusion that mine field that I should look for use as boot drive.

    Graphics card will be limited to what the power supply can turn off, someone knows what it supports current graphics cards go.

    Thanks for any help on this.

    @Paul80, welcome to the forum.

    Here's memory and SSD who are recommended by Crucial memory.  They make great products for OEM computers.  You have to open the case and check of installed memory brand.  Then contact the Crucial Tech Support to see if their memory will be compatible.  The main problem with the addition of memory, it's buy the memory that is compatible with existing modules.

    The best way to install the SSD, it's letting the existing connected HARD disk as it came from the factory.  Connect the SSD drive to another SATA port on the motherboard.  Install the cloning software that you will use on the HARD drive.  Open and select the SSD as target disk.  Once the SSD is cloned, disconnect the HARD drive and start.  The start of shoul for the SSD system.

    As for a video, here is a card that has very good reviews.  Read the reviews to see what users have to say about it.  It should work well with your power supply unit (PSU).

    Please click on the button + Thumbs up if I helped you and click on accept as Solution If your problem is resolved.

  • I have AM5200-E5521A Office. Looking for Council capacity how much I can spend 4 GB.

    I have AM5200-E5521A desktop with windows vista. Looking for Council capacity how much I can spend 4 GB. Not able to find any info on the internet. You want to speed things up. Also, the latest version of windows would allow Accelerator upward.

    Yes exactly. As I wrote, 4x2Gb means 4 slots of 2 GB. Each unit supports up to 2 GB.

    I suggest you to buy the same memory modules. You will find a sticker on the original module. The first ten characters in the bar code is the part number: KN.2G* *. *.

  • Looking for advice of vector drawing tablet

    Hi all

    I use CS4 for awhile now (to most of my free time) and have gotten quite into drawing cartoon versions of friends, family, etc. I work just from photographs in the past and have generally used Illustrator to achieve this.

    My results up to now look like this: http://crockstarlimited.com/blog/about/ (sorry, these are the only examples that I have online at the moment). I asked about how to improve my technique for this, and so my question is double:

    1. anyone who has used a drawing tablet (like this: http://www.amazon.com/Wacom-UPTZ431W-Intuos-3-Digital-Writing/dp/B001NANLOI)? If so, do you have recommendations on what to look for or who is particularly good?

    2. does anyone have advice for this style of drawing?

    know how to use Photoshop instead of Illustrator?

    Thanks much for any help you can provide!

    Crock

    Illustrator by far. You have much more control over your drawing in a vector program. Changes are easier. You can still import the PS more later to add effects. All digital illustrators I never contracted with that worked in artificial intelligence without exception. The main file is always vector they can bring an image in PS for some added effects. But the top of the line illustrators can do incredible effects in artificial intelligence without ever entering Psalm

  • Looking for tutorials on how to create invitations on Adobe Illustrator. [was: help!]

    I atually I was wondering if anyone knows the best resource to learn how to create invitations on Adobe Illistrator. I looked for all the open classes at my local college even went up to contact a total stranger of facebook that has been a graphic designer of facebook who has not had the time to teach me how to use this program. There must be something you can do to learn these programs hands without going to college to learn how to use them. I surfed on the internet for videos, but none that go into the detail I'm looking for. Any suggestions, classes or local designers who are willing to pay for their time?

    Have you tried Lynda.com?

  • Looking for advice for a new user to vmware

    Hi all

    Looking for a help and advice for a rookie to vmware

    We have just purchsed 3 x DL380 G8 each with 8 x 1 TB HARD drive no storage shared, and we are currently approved for most part more packs 2 x.

    What I wanted to do was to reproduce some VM so if one breaks down then we can either manually or automatically start another on another host. I'd like to reproduce our exchange 2010 essentially server but that is currently on the phyiscal material and I would need to first do a P2V conversion. I also read a few negative articles on running exchange on a virtual computer.

    I had read a little and looks like FT is outside the quetsion because of having not shared storage in place and there is also the limitation of 1vcpu. So I was wondering where to start really. For any tips, pointers, etc. will be very much appreciated.

    Thanks in advance for any help.

    Welcome to the communities...

    As you use Essentials Plus, you can order vSphere Storage Appliance you can use a shared storage. Make sure that the hardware is compatiable with vSA (http://blogs.vmware.com/vsphere/2012/12/major-hcl-changes-for-the-vsphere-storage-appliance-vsa.html)

    What I wanted to do was to reproduce some VM so if one breaks down then we can either manually or automatically start another on another host

    vSphere HA done for you if you are eligible.

  • Student looking for advice

    I am the proud new owner of Adobe Production Premium and want everything to work as easily as possible. I hunted around for some and found a few recommendations, but many of them are simply not practical for my situation and budget. My hope is that members of the forum can help me understand what my options are.

    Material

    So, what I have for the material is not the greatest, but it was also good that a deal I could get at a price I could afford:

    Dell XPS 15 with an i7-740qm (1.7 GHz up to 2.9 with mode)

    6 GB of RAM (I'm sure that of 1300)

    NVIDIA GT 435M

    600 GB 7200 RPM HARD drive

    (750 GB 5400 RPM HARD drive (external USB 2.0) - not very useful for video editing, I know )-I don't know how I ended up dating Best Buy this one. I knew from the beginning that I would like something more quickly. Moment of weakness I guess.

    As a note, the XPS 15 has 2 USB 3.0 ports and one of these ports eSATA/USB combo. So here's my connection options.

    Budget

    Basically, my budget is as "as good as I can get while being affordable as possible." I'm willing to spend as much as I need to have the experience of a workflow that is usable. If people could give me an idea of what I might get to vary spending varies between $100 and $1000 would be great.

    I can't spend a lot, but I'd rather spend a little more to buy something that would work well, as opposed to the bare minimum expenditures and get something that barely works.

    What I'm working with

    Mostly 1080 p AVCHD from Panasonic hmc150. I know that can be a bit much for my system, but a guy can hope, right? I peut (but not too likely, especially if I have to spend more than I was expecting for the edition of solutions) buy my own camera and use it. In this case, it would almost certainly be a (T3i/T2i) DSLR, which as I understand it got too difficult to work with codecs.

    I use my system to edit video, create effects visuals (more or less complex, including the 3D compositing) and live action, as well as all other tasks related to the creation of films and videos.

    I'm looking for

    At this point, I can't not realistic look at the purchase of another computer. As I use a laptop, there is not much I can do to upgrade options either. So, I hope that what I have is it usable. If what I absolutely will not work, I guess I'll have to consider shooting in 720 or * shudder * SD .
    What I'm looking for so is hard drives. How do I absolutely need, what I should get, and how do I configure my system/Adobe to better use the readers I have and would need to get?
    Experience up to now
    I tried a few test footage with my setup current (all on the internal drive) and comes to the conclusion that I should probably make something. It seems that as soon as I start to do anything After related Effects or add simply no effect whatsoever, my system starts badly. It makes me wonder how can my school of aging of the Mac Pro with pitiful amounts of old dated pretty processors and RAM manage working with the same images in FCP. In this case the film is stored on the server of the institution, that I don't know the technical details.
    So, apologies for the post of ginormous and sincere hope that someone (s) can help me understand this stuff.
    Thank you very much!

    WD Scorpio Black 500 GB 7200 RPM 16 MB cache car has an EXCELLENT overview of the result of Newegg users and a 5 years wtty. ; It costs $69.99. (I would recommend only)

    With regard to your external drive 5400 RPM, Yes, it would be great for backups.

    Jim

  • Manufacturing of the simpler regions on a map of the world... looking for advice

    Hello, I use a card world that initially came is Wikimedia: http://commons.wikimedia.org/wiki/File:BlankMap - World - Microstates.svg or istockphoto, I don't remember which exactly but they are both built in the same way - where each country in a general field is grouped.

    I want to associate groups of different countries in the regions, as in the example of Asia in the image attached to this issue. Countries have thin lines as borders, what I'm looking for the easiest way to delete and merge into a single plan.

    This will finally on the web as an image vector interactive mouseover (have not yet decided on flash or javascript, canvas, svg, vml), so removing the extra points are essential in the size of the file and maintainability.   Advice will be greatly appreciated.

    Thank you

    Court

    (PS: I had actually posted a similar question before, but this card seems to me does not make the process explained to me previously.)  Since each country has it's own/track of the border, I can't use the Scout to solve)

    I still don't see your image after, but one thing you might want to check before you apply the pathfinder is to see if the accident vascular cerebral/sketch of the country has been extended to a path and if so, make sure that you also select those with the forms of the country. I came across some images of stock vector map, which is the case. If this isn't the case, and your forms simply do not match very well, a quick way to get rid of all the borders remain unwanted would choose the resulting shape you created using Pathfinder and selecting the brush of Blog (assuming you have CS4) with her has the same color as the fill color of the shape you want and just painted on gaps. It would be much faster to try to remove it with the pen tool.

    Larry,

    The OP is looking to reduce the number of control points in the image.

  • Looking for advice before you start. My goal is to dual boot Windows 7 and 8

    Currently, I have Windows 7 installed on one drive as well as the preview of Windows 8 on another. I bought Windows 8 pro upgrade. I need to remove this version. I have Windows XP and Vista if necessary to install, but was hoping to avoid this if possible step. Any advice is welcome.

    Skawas

    so thank you... I came for just this response. My drive is on its way from NewEgg and I will follow your instructions

    appreciated ;-} big Pan
  • Looking for suggestions on how to implement a dashboard bulb

    Finally, we confess allowed to make the jump from Apex 3.2, 4.2. I have a dashboard that has been done in 3.2 I want to redo from scratch. This is a page of dashboard with many parameters "bulb". Here is a sample of one:

    bulb_sample.png

    I was thinking about using the solution of Camembert and just scaling down to this size and making the value appears on the top. But I couldn't figure out how to get to work.

    Here are some of my requirements.

    • I prefer not to use Flash. That's how it is currently underway on the installation of 3.2 and it seems to have a lot of questions. HTML5 sounds like it would be more stable (correct me if I'm wrong)
    • There is no budget to purchase additional software, so I need to make it work with Anychart solution or a free plug-in
    • I need the color either dynamics, 0 means it would be green > 0 it would be red in most of the cases, but the color is what KPI-based engine array or measurement is displayed.
    • He has to work on a variety of possibly include mobile screens.

    Thanks for your help in advance!

    It always seems to be a great resource!

    TC-army wrote:

    Jeff (and others)

    I really like this type of solution, but I do not think that it would be suitable for my specific case. I'll have to replace what is there because he died in IE 11 unless it is in compatibility mode and we have to work all the code * without * mode of compatibility before Dec. 31.

    Why it would not fit your needs? A solution based on HTML and CSS standards is the safest option in terms of compatibility ahead and back (provided that it degrades gracefully in older browsers).

    I have created an example of this type of solution on page 586, using standard reports with a model of custom report to render data, CSS to control the presentation and dynamic actions to respond to the intervention of the user and update the display. I'm not clear on exactly how to query the data and some minor questions of presentation. As regards the presentation and user interaction is this position from the right direction?

    Looks and works OK in Safari on OS X and iOS. How is it in IE11 (I don't have access to it)? IE8 and other older browsers that do not support borders and degraded background curves get the square buttons with flat bottom instead of circular bulbs shaded colors.

    Users are very used to a certain page layout. Top is light bulbs of group and the central area is pierced with bulbs. So the albums turn green, yellow or red are based on all KPI bulbs in this group. If all the bulbs in this group are green, then the Group bulb is green. If even one in the group is red while the Group bulb is red. And the bulbs of the group have numbers on them. The bottom area breaks out the average bulb by location in a bar chart.

    Data on apex.oracle.com seem not to be a behavior like this, and it is not enough to explore all the options for layout and presentation and questions. It would help if it was consistent and not there enough to cover all the possibilities.

  • Looking for advice reg Oracle 12 c installation on Ubuntu

    Hi gurus,

    I need your advice on the installation of Oracle 12 c.

    Background:

    Our application uses the Hibernate Java framework and its works well on Oracle 11 g.

    Our customer wants to use Oracle 12 c for good.

    I just need to confirm if my application runs on Oracle 12 c with existing configurations.

    My problem:

    I'm pondering different options to quickly install Oracle 12 c on my Ubuntu. My network speed and bandwidth are not great, I prefer download as less as possible as my intention is simply to check the compatibility of my application. I was able to install Oracle 11 g 2 on my system which took a lot of effort, and I don't want to disturb this facility.

    Here are the options I'm considering. Please guide me what is the possible choice and better quality. (As now I have not downloaded any software expect Oracle VM Virtual Machine for Ubuntu which is a 90 MB size)

    (1) I have vmware installed, download image for Oracle for Linux and Oracle 12 c database for Oracle for Linux. Create a virtual OS for Oracle for Linux, run Oracle 12 c

    (2) Download Oracle VM Virtual Machine for Ubuntu, download image for Oracle for Linux and Oracle 12 c database for Oracle for Linux. Create a virtual OS for Oracle for Linux and run Oracle 12 c. Installation of Oracle VM Virtual Machine for Ubuntu is to give a few problems that need to be sorted

    (3) download a Redhat Linux image and run it from VMware. Since Oracle 12 c is certified for Redhat, install on Redhat on Virtual Machine

    (4) install Oracle 12 c on Ubuntu itself through guides available on the web.

    My config system as follows:

    Ubuntu

    12.04 precision 64-bit output

    Kernel Linux 3.8.0 - 42-generic

    GNOME 3.4.2

    Memory: 7.7 G

    Processor: CPU i5 - 3230M @ 2.6 Ghz x 4

    Available disk space: 55.le GB

    [in case it is the best place for the question, please direct me to the same.]

    pvvdp wrote:

    Hi gurus,

    I need your advice on the installation of Oracle 12 c.

    Background:

    Our application uses the Hibernate Java framework and its works well on Oracle 11 g.

    Our customer wants to use Oracle 12 c for good.

    I just need to confirm if my application runs on Oracle 12 c with existing configurations.

    My problem:

    I'm pondering different options to quickly install Oracle 12 c on my Ubuntu. My network speed and bandwidth are not great, I prefer download as less as possible as my intention is simply to check the compatibility of my application. I was able to install Oracle 11 g 2 on my system which took a lot of effort, and I don't want to disturb this facility.

    Here are the options I'm considering. Please guide me what is the possible choice and better quality. (As now I have not downloaded any software expect Oracle VM Virtual Machine for Ubuntu which is a 90 MB size)

    (1) I have vmware installed, download image for Oracle for Linux and Oracle 12 c database for Oracle for Linux. Create a virtual OS for Oracle for Linux, run Oracle 12 c

    OK, it looks like your reference to 'Oracle for Linux' is in fact 'Oracle' - Oracle Linux version of the Linux operating system, built out of Red Hat Linux.

    If this is what you mean - create a virtual machine that is running Oracle Linux... then, running Oracle RDBMS on this virtual machine, and then you run on an operating system taken supported Oracle.  It doesn't really matter what the host's OS.

    Mind you, you would be probably hard pressed to actually get support in the form of an SR, but it does not appear that's really your concern, and it doesn't seem to me, the way I read your post, it should be a matter of concern.  You just want to run oracle on an OS that will be easy to install and have a justified expectation that thing will work as documented.

    (2) Download Oracle VM Virtual Machine for Ubuntu, download image for Oracle for Linux and Oracle 12 c database for Oracle for Linux. Create a virtual OS for Oracle for Linux and run Oracle 12 c. Installation of Oracle VM Virtual Machine for Ubuntu is to give a few problems that need to be sorted

    (3) download a Redhat Linux image and run it from VMware. Since Oracle 12 c is certified for Redhat, install on Redhat on Virtual Machine

    My previous comment seems to also apply to the #2 and #3 elements.

    (4) install Oracle 12 c on Ubuntu itself through guides available on the web.

    Bad idea.

    My config system as follows:

    Ubuntu

    12.04 precision 64-bit output

    Kernel Linux 3.8.0 - 42-generic

    GNOME 3.4.2

    Memory: 7.7 G

    Processor: CPU i5 - 3230M @ 2.6 Ghz x 4

    Available disk space: 55.le GB

    55g available disk could be things short cut.  If you cannot release everything, you could get an external drive for a very reasonable cost and put your entire VM installation on it.  See other comments about the CPU for virtualization products.

  • Looking for advice on what to do now.

    I spent each working of free time between flash, fireworks, and Illustrator for quite awhile now.  I spent every night after work in collaboration with lynda.com tutorials.  It's been great.  My goal was to learn all the basics of web site design.  I even created a complete and thirty layout in fireworks.  The problem is that I feel stuck now.  I do not see the apps play nice with them.  At least when it comes to export the full site designs from one application to another.  I took an example fxp file and there more Fireworks to the catalyst.  He looked at all kinds of messed up.  The Fireworks to Flash was that less messed up but still unmanigable.  Complete the sections where screwed up.  So I was wondering what process to use to move from one application to another.  Essentially to get all the items you need while not fubaring the layout.  Should I just do little things and then export them in one of the applications.  I have no real idea about the direction.  My goal is to take the site I have developed in fireworks and add a few small flash between the catalyst and the main Flash content.  I want to do all this while trying to not destroy what I spent months in Fireworks.  Any help woul be nice.

    Most of the web stes have three designs different page - design home page, content page design and design notes pages. The other pages are simply copies of one of these three. Therefore, when you design a site in Fireworks, it makes your job a lot easier to do only three. They are not web pages ready. A few models. Those of us who have done web design for a period of time (12 years in my case) build pages the finished with slices of image we have exported from Fireworks in Dreamweaver. Fireworks was never intended to be used as a WYSIWYG editor. In my view, it is moving in that direction, but has a way to go yet. Do yourself a favor and learn how to use Dreamweaver as your homebase for Web development.

Maybe you are looking for