JavaScript - the difference between ' window ' and 'document.'?
Hello
I'm a Javascript newbie which ended just by the first screen of Captivate (CP9) (HTML5) using Javascript.
A slide with several text entry areas (TEBs) and a Submit button, which performs a function to validate the TEBs (thank you David for have started me).
I call the function in the script of the Submit button window and have Javascript code in the Index file.
In the Javascript code, I used the ' windows ' and 'document '. (don't know if I've used them correctly but the works of Javascript)
I don't really know the difference between them.
In Javascript, I know that window is loaded in the browser first, then the document is loaded in the window.
It's like the window is your browser window and the document is the HTML page inside.
Also, you can use each of them to access specific properties - and window has a context.
Some examples of my javascript:
- window.cpAPIInterface.setVariableValue ("q1_fback", ""); -erase a message of feedback (text of legend with variable) associated with BER
- document.getElementById("Text_Entry_Box1_inputField").style.border = 'solid red medium. " -modification of the border of an object invalid BER (red)
My question is:
1. What is the difference between ' window ' and "document." in a context of Captivate?
I will post you more questions to find out how:
1 use loops to knock down my code
2 reuse the same function in other slides
Concerning
Donal.
Your assumptions are correct.
the cpAPIInterface is in the window.
The Text_Entry_Box1_inputField is in the document, not the window, but you can use:
window.document.getElementById("Text_Entry_Box1_inputField").style.border = 'solid red medium. "
Scope of variables depends on how and when they are declared, and it is generally best to limit their scope and not use them globally in the window object. All seem to be available in the cPs variables window.
Tags: Adobe Captivate
Similar Questions
-
What is the difference between windows 2000, XP and Windows 7
Hi please God let me know the difference between windows 2000, xp and win 7. I want t o knopw technical specification.
Thank you
JAI
You can find many differences between older and newer Windows versions. Windows is always improving with better technology. Visit this link for the versions to compare Microsoft Windows:
You can also see this article on the Microsoft Windows Web site: -
What is the difference between containers and hyper-v server windows?
Hello
What is the difference between containers and hyper-v server windows?
Thank you
PS: Where's your homework due?
-
What is the difference between windows 7. x86chk.symbol.msi and windows 7. x86FRE.symbol.msi
Hello
Thank you for contacting Microsoft Community.If my assumption is correct, you are looking for which file to download service pack update.Worry not choose files. Download the .iso to the update file, either burn it or mount or extract it and install. These files are called the symbol files. They differ in the language, for example. frequency refers to the French version. They are used to debug the Service Pack and are not really necessary unless you start to run into problems and try to find solutions on your own. -
What is the difference between windows live and office live?
What is the difference between windows live and office live?
RM
Windows live mail is a free email client. Microsoft office Outlook is a complete recommended paid e-mail application.
-
What is the difference between Windows 7 OEM and the retail version of Windows 7?
Can someone tell me, what is the difference between windows 7 OEM and sales vs retail?
On Thu, 20 Sep 2012 19:56:47 + 0000, STEVE-5 says:
Can someone tell me, what is the difference between windows 7 OEM and sales vs retail?
There is no difference in the product itself.
Although if you get a generic OEM full version, it contains the
even software, it has the following disadvantages compared to the
commercial version:1. the biggest drawback of an OEM version (at least in the USA) is
that its license it permanently binds to the first computer, it is
installed on. He can never legally be moved to another computer, sold,
or given (except with the original computer). If the computer
dies or is stolen, your license dies with him.2. he can't do a clean install, not an upgrade.
3 Microsoft offers no support for OEM versions. You cannot call their
with a problem, but rather to secure the necessary support of your
OEM; who take in charge may go anywhere between property and non-existent. Or
You can get support elsewhere, like in these forums.
Ken Blake, Microsoft MVP -
What is the difference between windows 7 pro debug/checked and simple windows 7 pro?
What is the difference between windows 7 pro debug/checked and simple windows 7 pro? /
Regular accumulation is the regular version at retail of Windows because most of us use (SP1 or not).
The build Debug/Check is specifically aimed at developers who developed to make it easier for the debugging flag
drivers to be developed. This build runs much slower due to the abduction of optimizations and other functions.Credit: SpiritX MS MVP
-
I am considering buying my daughter a netbook, but the operating system is Windows 7 starter 32 bit SP1. What is the difference between that and the complete software of Windows 7?
Have a look here...
There are fewer features because the machines that installed Starter tend to be low power devices...
-
What is the difference between Windows 7 and Windows 7 Starter?
Original title: "what is the difference between Windows 7 and Windows 7 Starter? I want to install Windows on a laptop... I noticed that some of them offer Windows 7 and others offer Windows 7 Starter. What is the best, most complete? »
What is the difference between Windows 7 and Windows 7 Starter? I want to install Windows on a laptop... I noticed that some of them offer Windows 7 and others offer Windows 7 Starter. What is the best, most complete?
On Tuesday, November 9, 2010 22:52:15 + 0000, cvzimbaldi wrote:
When it says that windows 7 Home premium is an upgrade to windows 7 starter edition, means that the home premiun cannot upgrade Vista?
I do not understand the question above, but to answer your question in
the subject line, "what's the difference between Windows 7 and.
Windows 7 Starter? "the Windows 7 Starter Edition is not another
operating system, it's just kind of Windows 7. And it is the lowest
level editing, so you can pass her to another level such as
Windows 7 Home Edition.Ken Blake (MS-MVP)
-
What is the difference between SyncToy and LiveMesh, Windows 7
Can someone clarify the difference between SyncToy and LiveMesh? Thank you.
* original title - synchronize files and Folders.*
Hello
Sync Toy: Sync Toy is a free Power Toy designed by Microsoft that provides an easy to use graphical user interface that can automate synchronizing files and folders
Windows Live Mesh (formerly Live Meshand Windows Live Sync and Windows Live FolderShare) is a free to use online file synchronization application by Microsoft that is designed to allow files and folders between two computers or more to be in harmony with each other on Windows (Vista and later) and Mac OS X (v. Leopard 10.5 and later) computers or on the Web via Windows Live SkyDrive. Windows Live Mesh also provides desktop access remotely via internet
-
What is the difference between readResourceContent and services ReadDocument...
What is the difference between readResourceContent and services ReadDocument...
Why if I create the file or folder write document\ create the directory, then it is not visible from the work bench...
If I create the file using WriteDocument... It shows the created path
/ Apps/KI01/AF-was61-PP01/AppServer/Profiles/AF-node61-pp
01-01/uploadfiles/test.PDF
It is what... tell me differences...
ReadResourceContent is used to read the documents in the repository of LiveCycle (the database LiveCycle). ReadDocument is for reading binary files to the file system of the server (hard drive).
If you create a file with write document\ create a directory it goes on the servers file system - its disk hard - and not in the repository of LiveCycle (the database). Indeed, the repository may be hosted on a different server (in the case of a remote database). If you write a file "/ apps/ki01/af-was61-pp01/AppServer/profiles/af-node61-pp01-01/uploadfiles/Test.pdf", then check the hard drive of the server, then you will see the files are there. If it is a control of the C: drive for this file Windows box.
file system (hard drive)! = repository (database)
-
What is the difference between tear and Brüning cd
What is the difference between tear and Brüning a cd.
Hi SirNickLong,
Here are a few links to explain the difference:
http://Windows.Microsoft.com/en-us/Windows-Vista/rip-music-from-a-CD
http://Windows.Microsoft.com/en-us/Windows-Vista/demo-burn-a-CD-or-DVD
hope this helps,
Eddie B. -
I have a Vistaprogram of the window running on my Toshiba laptop.
In the past, I've confirmed that optional udates be installed. Please help: now I want to uninstall optional updates because my computer is slow. How to tell the difference between recommended, and optional updates long after they have installed bene?
Hey monkey 44,
I suggest you view the history in Windows Update:
http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed
Those listed as recommended is technically optional.
Before you delete updates the computer, I suggest you try the steps from the following link to improve performance and check if that helps:
http://Windows.Microsoft.com/en-us/Windows-Vista/ways-to-improve-your-computers-performance
I hope this helps.
-
What is the difference between upgrade and custom installation options?
* Original title: windows 7
What is the difference between upgrade and custom installation options?
Hello
How to do a clean install:
http://www.SevenForums.com/tutorials/1649-clean-install-Windows-7-a.html
Sometimes the only way to upgrade is to do a clean install,
" Upgrade Windows XP to Windows 7 "
http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-XP-to-Windows-7#T1=tab01
To upgrade your Windows XP computer to Windows 7, you will need to select custom during installation of Windows 7. A custom installation keeps your programs, files or settings. It is sometimes called a 'clean' for this reason installation.
"Upgrading from Windows Vista to Windows 7"
http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-Vista-to-Windows-7#T1=tab01
You then have the repair facility, which is an In = Place Upgrade.
"How to do a repair installation to repair Windows 7"
http://www.SevenForums.com/tutorials/3413-repair-install.html
See you soon.
-
What is the difference between Fdisk and Chkdsk programs?
Hello:
I don't think I have a common question of OS knowledge and I worked a lot with both, however for years so I forgot everything I used to know. I was talking to someone Executibles MS-DOS command line and this person I know told me in email and I did not at the moment, but he said the following:
"Fdisk and chkdsk are pretty much the same.
Being an old Microsoft OS Engineer I knew it was wrong, however I've been retired since almost 20 years and I have not worked with either for a while. I looked in the KB for articles explaining the difference between fdisk and chkdsk or define at least the two against each other, but there is no specific article I could find. I remember the days when the scariest user had a problem, but they ran all third party software on their computer and have installed BETA version software etc so I'm sure you know the drill and this type of person.
The person who said this about fdisk and chkdsk is one of those people. It is a really nice guy, but a nightmare to Microsoft when you talk to a convenience store to the BONE for assistance. Is there someone out there who could you, please, help me and summarize an irrefutable definition or description indicating the differences between fdisk and chkdisk? I don't remember the basic functions both I widely used both, but too many years have passed and I don't want to sound like a fool trying to write about the differences.
I'd appreciate any help I want to educate my friend and the intention is to not make this person feel like a stupid either.
Thank you, and I expect your response.
Eric
The two are completely different, one is a format utility the other is a utility disk check
http://support.Microsoft.com/kb/255867/en-us
Fdisk was used in earlier versions of victory
http://Windows.Microsoft.com/en-GB/Windows/Fdisk-FAQ#1TC=Windows-7
Maybe you are looking for
-
No plugin unit after installation webplayer
Hello I use Firefox x 64 on Windows 10 x 64 platform. There is no plugin unit after you have installed the web player. The activation of the preload plugins according to https://support.mozilla.org/en-US/kb/windows-media-or-other-plugins-stopped-work
-
The Apple apps installed has a download icon?
Hello! I got a new iPad a few days ago that I restored from backup to iCloud. However, Apple apps like iMovie, Pages, Keynote etc displays a download icon in the App Store? Applications with this icon are already installed... Does anyone have an idea
-
Satellite 5105-607 battery issues
Hi, I bought for my satellite 5105-S607 a refurbished battery. Unfortunately, this lasts more than 6 hours battery charge from 3% to 100%! Only, every morning when I start the PC after it was extinguished during the night, I found it has lost 8% of i
-
Need drivers after upgrading to Windows Vista Business on Satellite A100
Hey I've upgraded to vista some time ago and my buttons of media and Fn keys no longer work. I don't know if there are drivers available, but if anyone knows where I can get would be great. The model number is PSAA8C-0FH00E
-
Bundle i386 VMware-Player 4.0.2
Moved on:Linux 2.6.32 - 5-686 SMP #1 vascomp kills Jan 16 16:04:25 UTC 2012 i686 GNU/LinuxInstallation said that this computer does not support 64-bit and quit unexpectedlyFunny