Presentation

Javascript code as well as the associated variables can be stored 

·         In the main page (mainPage) of the application.

·         In HTML pages inserted in DFrames 

This code and these variables are independent: Two functions having the same name but one stored in mainPage and the other in a HTML page inserted in a DFrame are different. In the same way two variables of the same name stored in mainPage on the one hand and in a page inserted in a DFrame on the other hand can have two different values. 

The resources available during the execution of an application could thus be: 

§ variables and functions of mainPage, 

§ variables and functions of pages inserted in DFrames, 

§ methods of dFrameAPI applicable to DFrames.

The access to these resources will depend on

§ the place where is stored the code calling these resources, 

§ the place where is stored the required resource 

§ the type of the resource. 

 

If you are familiar with the DOM we recommand you first read the dynAPI pages documentation.

 

Examples:

As all examples use combinations of accesses to mainPage from inserted HTML pages and to DFrames containers from mainPage all examples are grouped at the end of the explanation pages. See summary and examples.