Help with the JavaScript for checkbox
I am a newbie with Javascript and will have questions, get the selection of a checkbox on my form to change a calculation.
I have a form that contains two drop-down lists, the result of these two boxes are multiplied together. I can get it works fine.
However, I also have a box that, when checked I want the calculation according to the drop-down lists duplicate. I can't get that part to work!
Can anyone provide the javascript code to activate this simple event?
Any help is appreciated.
Thank you.
It should look like this:
Get field values
var v1 = combo1.value;
var v2 = combo2.value;
$ var = + v1 + v2;
Get the value of the checkbox
var v3 = getField("checkbox1").value;
Calculate the value of this field based on the State of the checkbox
V3 = Event.Value = "Off"? sum: 2 * sum;
This last line is equivalent to the following five lines:
If (v3 = 'Off') {}
Event.Value = sum;
} else {}
Event.value = 2 * sum;
}
Tags: Acrobat
Similar Questions
-
Need help with the update for my 11 elements
I have 11 items and just switch to the Canon 7 d Markii and shooting in RAW for the first time last night and the editor and organizer elements does not files because it does not acknowledge the BRUTE of the 'new '... device information I tried the update and he offered only a 7.4 update, where the 7 5 d Markii must at least a 8.7 update... How can I get the latest update if my program does not by itself? I DON'T like the way Canon program from the disk provided with the camera is set for RAW images, and I don't want to have to change all the RAW files to only align my items... I enjoyed how the older my camera RAW files were brought in Editor with the pop-up window which allow me to make changes to quick for photos before opening them in the editor... Yet once I don't like how the Canon window works for RAW images... Thanks for any help on this... Nicole
Camera Raw 8.7 was introduced in PSE13. If your software is too old to be compatible. Yu have two choices:
- Upgrade to the latest version PSE14
- Converting your CR2 for Adobe (DNG) Raw and DNG files will work with PSE11
The Adobe's DNG Converter is free, and you can batch process all of a file CR2 by selecting a source folder and destination folder.
-
Need help with the search for special characters in oracle text
Hi all
Oracle 11g sql developer 4.0 help
I am facing this challenge where Oracle text when it comes to searching for text that contains a special character.
What I've done so far with the help of http://www.orafaq.com/forum/t/162229/
"CREATE TABLE"SOS" COMPANY ".
(SELECT "COMPANY_ID" NUMBER (10,0) NOT NULL,)
VARCHAR2 (50 BYTE) "COMPANY."
VARCHAR2 (50 BYTE) "ADDRESS1"
VARCHAR2 (10 BYTE) "ADDRESS2"
VARCHAR2 (40 BYTE) 'CITY ',.
VARCHAR2 (20 BYTE) 'STATE ', HE SAID.
NUMBER (5.0) "ZIP".
) CREATION OF IMMEDIATE SEGMENT
PCTFREE, PCTUSED, INITRANS 40 10 1 MAXTRANS 255 NOCOMPRESS SLAUGHTER
STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)
TABLESPACE 'USERS ';
Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (1, 'LSG SOLUTIONS LLC', null, null, null, null, null);
Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (2,' LOVE "S TRAVEL', null, null, null, null, null);
Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (3, 'DEVON ENERGY', null, null, null, null, null);
Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (4, 'SONIC INC', null, null, null, null, null);
Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (5, "MSCI", null, null, null, null, null);
Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (6, 'ERNEST AND YOUNG', null, null, null, null, null);
Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (7, "JOHN DEER", null, null, null, null, null);
Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (8,'Properties@Oklahoma, LLC', null, null, null, null, null);
Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (9, 'D.D.T L.L.C.', null, null, null, null, null);
BEGIN
CTX_DDL. CREATE_PREFERENCE ("your_lexer", "BASIC_LEXER");
CTX_DDL. SET_ATTRIBUTE ("your_lexer", "' SKIPJOINS,"., @-"'); -to jump. , @ - ' symbols
END;
/
CREATE INDEX my_index2 ON COMPANY (COMPANY_NAME)
INDEXTYPE IS CTXSYS. CONTEXT IN PARALLEL
PARAMETERS ("LEXER your_lexer");
SELECT company_name FROM company WHERE CATSEARCH(company.COMPANY_NAME, 'LLC','') > 0 ORDER BY company.COMPANY_ID;
output
company_name
1 LSG SOLUTIONS LLC
2 Properties@Oklahoma, LLC
only 2 rows back but must return 3
It helps if you post a copy and paste of effective enforcement of the full code, including the results. You posted an index of context with the query with catsearch, which requires a ctxcat index. You must be a context clue that you did not post and did not add your lexer to. The following table shows it returns all the lines of 3 as planned using either a with catsearch ctxcat index or a context index with contains, as long that you include the lexer in your create index. You must also be sure that the index is created, or synchronized after inserting or updating data.
Scott@ORCL >-version:
Scott@ORCL > SELECT banner version of v$.
BANNER
--------------------------------------------------------------------------------
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
5 selected lines.
Scott@ORCL >-table and the test data:
Scott@ORCL > CREATE TABLE 'SOCIETY '.
2 ("COMPANY_ID" NUMBER (10,0) NULL NOT ACTIVATE,)
3 'COMPANY_NAME' VARCHAR2 (50 BYTE),
VARCHAR2 (50 BYTE) 4 "ADDRESS1"
5 "ADDRESS2" VARCHAR2 (10 BYTE),
VARCHAR2 (40 BYTE) 6 'CITY',
7 VARCHAR2 (20 BYTE) 'STATE ', HE SAID.
NUMBER (5.0) 8 'ZIP '.
(9) THE CREATION OF IMMEDIATE SEGMENT
PCTFREE 10 10 PCTUSED 40 INITRANS, MAXTRANS NOCOMPRESS SLAUGHTER 1 255
11 STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)
12 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)
TABLESPACE 13 "USERS."
Table created.
Scott@ORCL > START
2 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (1, 'LSG SOLUTIONS LLC', null, null, null, null, null);
3 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (2,' LOVE "S TRAVEL', null, null, null, null, null);
4 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (3, 'DEVON ENERGY', null, null, null, null, null);
5 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (4, 'SONIC INC', null, null, null, null, null);
6 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (5, "MSCI", null, null, null, null, null);
7 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (6, 'ERNEST AND YOUNG', null, null, null, null, null);
8 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (7, "JOHN DEER", null, null, null, null, null);
9 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (8,'Properties@Oklahoma, LLC', null, null, null, null, null);
10 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (9, 'D.D.T L.L.C.', null, null, null, null, null);
11 END;
12.
PL/SQL procedure successfully completed.
Scott@ORCL >-lexer:
Scott@ORCL > START
CTX_DDL 2. CREATE_PREFERENCE ("your_lexer", "BASIC_LEXER");
CTX_DDL 3. SET_ATTRIBUTE ("your_lexer", "' SKIPJOINS,"., @-"'); -to jump. , @ - ' symbols
4 END;
5.
PL/SQL procedure successfully completed.
Scott@ORCL >-ctxcat index and using catsearch queries:
Scott@ORCL > CREATE INDEX my_index2 ON COMPANY (COMPANY_NAME)
2 INDEXTYPE IS CTXSYS. CTXCAT PARALLEL
3 PARAMETERS ("LEXER your_lexer");
The index is created.
Scott@ORCL > SELECT
2 company_name
3 the COMPANY
4. WHERE the CATSEARCH (company.COMPANY_NAME, 'LLC', ") > 0
5 ORDER BY company.COMPANY_ID;
COMPANY_NAME
--------------------------------------------------
LSG SOLUTIONS LLC
Properties@Oklahoma, LLC
D.D.T L.L.C.
3 selected lines.
Scott@ORCL >-context and using the query index contains:
Scott@ORCL > CREATE INDEX my_index3 ON COMPANY (COMPANY_NAME)
2 INDEXTYPE IS CTXSYS. CONTEXT IN PARALLEL
3 PARAMETERS ("LEXER your_lexer");
The index is created.
Scott@ORCL > SELECT
2 company_name
3 the COMPANY
4 WHERE CONTAINS (company.COMPANY_NAME, 'LLC') > 0
5 ORDER BY company.COMPANY_ID;
COMPANY_NAME
--------------------------------------------------
LSG SOLUTIONS LLC
Properties@Oklahoma, LLC
D.D.T L.L.C.
3 selected lines.
-
need help with the code for update of a record (conditional release)
all together
Published by: 871431 on July 9, 2011 18:30871431 wrote:
HelloI am looking to update a table that contains documents approved & not homologous, for this combination date & funds it should allow the only recording not approved.
what I did is check if the recording is U if the incoming value is not approved for this error of combination stimulus funds & date, but if I need to update this unlicensed recording error... so I need to update record, and trigger the error if try to insert another disc not approved.
Hope I am clear...Not clear for me
Help pls
Please realize and understand that everyone here talks about SQL
Please post DDL for table
Please provide the sample/test data & then explain with the help of data from the trial itself said it that results should be & why -
Need help with the algorithm for my paint program
I was doing a paint program with the help of a BufferedImage where the user draws to the BufferedImage and then I pull the BufferedImage class with that I extend JPanel. I want the user to be able to use a function of cancellation via ctrl + z and I also want them to update what type of paper, they write you on direct: a) b) graph paper c) double paper in white. I don't see how using BufferedImages. Is there something I'm missing, or should I do otherwise? I try to avoid the opposite effect because it seems too demanding on the computer, but if this is not feasible, then I guess I have to, but I think that I should ask you guys if what I do is logical or monstrous.
What I intend to do, is make a LinkedList that has the following 4 parameters:
(1) previous point
(2) current point
(3) current color
(4) boolean connectPrevious
This means that program essentially attracts the instant line using two points and the color specified in paintComponent(Graphics g). The Boolean value is ctrl + z (undo) purposes. I also intend to use a background thread to remove entries repeated in LinkedList except for the 25 latest LinkedList components (i.e. number could change in practice).
What do you think guys?
Any input would be greatly appreciated!
Thanks in advance!Look at the package javax.swing.undo package - UndoableEdit interface and the UndoManager class.
Everything to implement the interface. Store all the data necessary to perform your action (pixels, colours, forms etc.). Add all your UndoableEdits in an instance of the UndoManager class and call undo() redo() when you need it.
-
Need help with the code for drop-down selection, please!
I'm falling out of scope with a drop of water in my form. My form is long, and certain areas are in Page 2. When I click on the "Customer hospitality event" drop-down list selection, the fields of P2 do not hide. Here is the code that I have on the menu drop-down:
-form1. P1.meetDetails.meetType::exit :-(JavaScript, client).
switch
(this.rawValue)
{
" case" " Customer home ' :
Header.PRESENCE = "visible";
meetDetails.presence = "visible";
meetDetailsaddl.presence = "visible";
Form1. P2.rstatus.presence = 'hidden '.
Form1. P2. Status.Presence = 'hidden '.
breaking ;
}
Help, please!
Thank you!
I see that references to the P2 have no end of line separators (-).
Form1. P2.rstatus.presence = 'hidden '.
Form1. P2. Status.Presence = 'hidden '.
The JavaScript runtime engine is perhaps unfortunate. Try to add them.
Steve
-
I need help with the NFC for my sony vaio
Hello
I have a Sony Vaio third generation touch screen processor i5. I have a problem with the beam of the nfc. On the screen of my phone, it shows you device does not support this file. Could someone help me?
Salvation is can you provide the model name of your VAIO computer?
-
need help with the driver for the wireless card
I just reinstallled windows 7 Home premium 64 bit on my pavilion dv7 and im having troublle get the wireless to work.
the id of my wireless card is
PCI\VEN_8086 & DEV_0886 & SUBSYS_13158086 & REV_67
PCI\VEN_8086 & DEV_0886 & SUBSYS_13158086
PCI\VEN_8086 & DEV_0886 & CC_028000
PCI\VEN_8086 & DEV_0886 & CC_0280If anyone can link me to the good drivers would be great.
Thank you
Hello:
Here is the link to the latest version of the driver for this card.
A first or second on the list according to bit W7 version you have installed.
https://Downloadcenter.Intel.com/Detail_Desc.aspx?DwnldID=23723
-
Need help with the syntax for default message.
I want to display by default in the layout of lead for Feild "owner of lands":
IIf (< plRegion_ITAG > = "South", "SG",
IIf (< plRegion_ITAG > = "North", "AT",
IIf (< plRegion_ITAG > = "East", "GK",
IIf (< plRegion_ITAG > = "West" "BM", "Other than thesis it should be NULL")))
("Other than these we NULL"-> to do this, I tried a different name)
SG, THE, BM, GK (little) are my managers society of sales/Terriotory.
I did not miss anything, the above syntax doesnot work for me.
Thanks in advance.
Kind regards
Ratan NHi Ratan,
A few notes:
(A) you are missing a comma between "West" and "BM".
(B) you must use "and not"
(C) I'm not sure that you can have a drop down list remain NULL by using the IIf function. Even if you can it won't probably work with "other than these, it must be NULL.
(D) I suggest that you actually add a value called NULL for the list of choices and after writing the syntax you can disable it to prevent your users from accidentally choose it.
(E) should look like this:IIf (
= 'South', 'SG',
IIf (= 'North', 'AT',
IIf (= 'Is', 'GK',
IIf (= 'West', 'NULL', 'WB'))) -
Need help with the launching track pack for forza code 4
Bought new Forza 4 and the lancer Track Pack code does not work, how do I get a code that is generated in the form I've already paid for it. Rank of loads of numbers and sent 10 s of emails but cant seem to get help.
This is the help I get when the cat to an Ambassador xbox on xbox.com
Terry wrote:Need help with the launching track pack for forza code 4The Xbox Ambassador says:Location of Ambassador of the community...The Xbox Ambassador says:Location of Ambassador of the community...The Xbox Ambassador says:Your question will be answered by an Ambassador of the Xbox. You have been connected to the Ambassador as a user Xbox [3]The Xbox Ambassador says:HelloTerry wrote:HelloThe Xbox Ambassador says:HeyTerry wrote:just to be on the phone to xbox live support and was told to come hereThe Xbox Ambassador says:ok\The Xbox Ambassador says:What is your problem?Terry wrote:I bought the 4 for forza ansd 360 new sealed Christmas...Terry wrote:has got 2 codes that accompanies the game but the pack track code does not workThe Xbox Ambassador says:Wow goodTerry wrote:whenever I put in the code it says code redeemedThe Xbox Ambassador says:I think the code is used. You must return to the retailerTerry wrote:I tried to, but since I already opened the case they will not acceptThe Xbox Ambassador says:Oh. No,Terry wrote:the code had been used or defective as I am the only person who has touched the game once opened, tried to enter the code when it is openThe Xbox Ambassador says:Maybe it was auto bought?Terry wrote:so, how do I get another code generated track Pack if defective?The Xbox Ambassador says:I do not know.Terry wrote:bought the game new, so I get the track packThe Xbox Ambassador says:Oh. It's bad.The Xbox Ambassador says:I think that if you Exchange 1 code it will buy itTerry wrote:car pack code worked, starter pack did not workThe Xbox Ambassador says:Oh.The Xbox Ambassador says:It's a badThe Xbox Ambassador says:BTW you have an evolution of the tests?Terry wrote:Yes, I want to? but more anxious to get a code object generated for this packThe Xbox Ambassador says:Hey if I help can u give me this game too?Terry wrote:?????????????????Terry wrote:So is it possible to get a code for that time?The Xbox Ambassador says:HeyThe Xbox Ambassador says:Yes.The Xbox Ambassador says:you need to contact themThe Xbox Ambassador says:and tell them that the code is used.Terry wrote:I was told to come here? where can I go to get the code?Hi Terryg76,
· What version of the operating system is installed on the computer?
I suggest you to contact the game manufacturer for more help and information.
-
Need help with the ip configuration on/etc/hosts for the installation of 11 GR 2 on linux vmware 6 on win7.
Let me know if you need more info... in fact I have a setting error while installation said
-(/ etc/hosts has no correct entry for the host name)
Host: 192.168.85.100
Win7 ip: 192.168.1.x
Thank you...
(host computer)
Win7 64 bit
(vmware)
Oracle Linux Server 6.3 version
Release of Red Hat Enterprise Linux Server 6.3 (Santiago)
Oracle Linux Server 6.3 version
-(/ etc/hosts has no correct entry for the host name)
Then post your/etc/hosts.
Host: 192.168.85.100
Win7 ip: 192.168.1.x
Why 85? have you tried 192.168.1.100?
-
HI all I would like to ask if you help me, I want to draw paths, but when I use options to mark with a pen or brush settings I lose quality when I Zoom, can someone help me with the settings for the pen?
The work path is a vector and infinitely scalable, but when caress you, Photoshop sets the pixels on a layer following the path. These pixels are rasterized and based and cannot be resized without loss of quality. You have options. If you want to enlarge the raster layer, transform the work path and stroking again. Or work at a resolution higher, in the first place.
Either incidentally, you can't trace a path with the pen, because it's a vector tool, and caressing is a matrix function based.
-
I have RECIVED YEAR EMAIL FROM ADOBE AS: as gesture of goodwill, we can help you with the upgrade for PSE 13. We ask you to place the order for Adobe Photoshop elements 13 upgrade and then provide you with the serial number of the full version of the product, even against the new order of upgrade"IS this UPGRADE FREE AND CE WHO SHOULD DO, HOW can I HAVE THIS UPGRADE?
HOW I CAN PLACE THE ORDER AND IS IT FREE?
-
I can't find the right way to ask a question about the forums themselves.
PAGulley said
I can't find the right part of the forum to ask questions about the forum itself and its features. I wonder what the right place and the way is to get help with the forum system itself. I can find the place to ask questions about specific Mozilla products very well.
Look up where it says contributor tools and select Contributor Forums. Make sure that you scroll to the top or you'll get a bar with different links instead,
The forum is https://support.mozilla.org/forums where you question would be better in the SUMO community discussions.
-
Need help with a JavaScript to generate random number
Hello
First things first. I don't know the JavaScript J.
When I thought about a ready to use solution to generate a random number in Captivate, I found this on a forum of LinkedIn.
(1) add a user to your project variable, called "NombrAl". Its value can be zero.
(2) add a text caption with ' $$randomNumber$ $"inside, to check if your script works.
(3) add a button to the slide. Give him one on success Action to run JavaScript. Clear the check box 'continue playing the Project '.
(4) add the following text in the button Script_Window:
var objCP = document. Captivate;
var rand = 1 + Math.floor (Math.random () * 10);
onButtonClick() {} function
objCP.cpEISetValue ('NombrAl', rand);
}
onButtonClick();
However, it is (as the poster in the forum warned) for 7 Captivate does not. Can someone please help?
I am open to all other methods to achieve the same result.
Thanks in advance,
Anthony
Hi Anthony,.
During the test, make sure that you are testing from a web server where the web address starts with http or https. When you set the captivate variable "NombrAl" try this instead:
objCP.cpEISetValue ('m_VarHandle.randomNumber', rand);
This will work for the SWF output. If you want to work for the release of HTML5 and SWF, try this code:
window.onButtonClick = function(){ var rand = generateRandomNumber(1, 10); setCpVariable('randomNumber', rand); }; window.generateRandomNumber = function(min, max){ var randomNum = 0; if(!isNaN(parseFloat(min)) && !isNaN(parseFloat(max))){ min = Number(min); max = Number(max); randomNum = Math.floor(Math.random() * (max - min + 1)) + min; } return randomNum; }; window.setCpVariable = function (cpUserVariableName, variableValue) { /* Check for HTML5 vs. SWF output */ if (typeof window.cp === 'undefined') { /* We have SWF output, so Get the Captivate Object */ var objCp = document.getElementById('Captivate'); if (objCp && objCp.cpEISetValue) { /* Set the Captivate User variable with the JavaScript variable, variableValue */ objCp.cpEISetValue('m_VarHandle.' + cpUserVariableName, variableValue); } } else { /* We have HTML5 output */ /*If variable does not exist off of the window object, then use the variables manager*/ if (typeof window[cpUserVariableName] === 'undefined') { if (cp.vm && cp.vm.setVariableValue) { cp.vm.setVariableValue(cpUserVariableName, variableValue); } } else { window[cpUserVariableName] = variableValue; } } }; window.onButtonClick();
Don't forget to test this situation from a web server either local security prevents the javascript code for execution.
Best,
Jim Leichliter
Maybe you are looking for
-
Tecra M2 - card reader does not work on Windows 7
Hi all I installed Win 7 on my TECRA M2 and everything worked well at the same time... except for one thing! The SD card reader is not recognized (works well with XP).Hint please? Thanks in advance JP
-
Envy 15 t: M9U50AV necessary replacement screen
I cracked my screen and need to get a replacement screen. It's a HP ENVY - computer laptop 15 t Product number: M9U50AV The screen is listed as •diagonal 15.6-inch HD WLED (1366 x 768) display I'm just trying to identify what replacement screen to bu
-
Missing ringtones on the Droid RAZR HD
Second question (see the previous page to appreciate how new to this phone that I am!) I downloaded a notification tone that I had on my LG lucid and really liked... I sent the attachment to myself and copied to the folder ringtones... and, indeed, i
-
Several Business Machines BSOD
Hello I seem to be unable to tell what is causing these BSODS in our environment, because it seems that the dump files are not really provide enough information for me the technical capacity to solve problems. If someone who is more advanced with ana
-
How to rename an application on Windows 8?
Original title: rename an application I would like to rename some of the apps on windows8, (a stock app or that I have installed (like another anti-virus program). I can't find a way to do it.