P
PhxVyper
Hello,
I am getting the error: "Error: styleElementsArray.GLOBAL_STYLES has
no properties" with the following code.
The error is pointing me to the line:
styleElementsArray['GLOBAL_STYLES'][0] = 'ff_container_color';
What am I doing wrong???
function someFunction()
{
var styleElementsArray = [];
styleElementsArray['GLOBAL_STYLES'][0] = 'ff_container_color';
styleElementsArray['GLOBAL_STYLES'][1] =
'ff_container_background_color';
styleElementsArray['GLOBAL_STYLES'][2] = 'ff_container_font_family';
styleElementsArray['MAIN_HEADER'][0] = 'ff_mainHeader_color';
styleElementsArray['MAIN_HEADER'][1] =
'ff_mainHeader_background_color';
styleElementsArray['SUB_HEADER'][0] = 'ff_subHeader_color';
styleElementsArray['SUB_HEADER'][1] =
'ff_subHeader_background_color';
styleElementsArray['HEADER_BLOCK_CONTENT'][0] =
'ff_headerBlockContent_color';
styleElementsArray['HEADER_BLOCK_CONTENT'][1] =
'ff_headerBlockContent_background_color';
styleElementsArray['SEARCH_RESULTS_CONTENT'][0] =
'ff_blockContentSearchResult_color';
styleElementsArray['SEARCH_RESULTS_CONTENT'][1] =
'ff_blockContentSearchResult_background_color';
styleElementsArray['SEARCH_RESULTS_ITEM'][0] =
'ff_headerBlockSearchResultItem_color';
styleElementsArray['SEARCH_RESULTS_ITEM'][1] =
'ff_headerBlockSearchResultItem_background_color';
}
someFunction();
Thanks,
Chad
I am getting the error: "Error: styleElementsArray.GLOBAL_STYLES has
no properties" with the following code.
The error is pointing me to the line:
styleElementsArray['GLOBAL_STYLES'][0] = 'ff_container_color';
What am I doing wrong???
function someFunction()
{
var styleElementsArray = [];
styleElementsArray['GLOBAL_STYLES'][0] = 'ff_container_color';
styleElementsArray['GLOBAL_STYLES'][1] =
'ff_container_background_color';
styleElementsArray['GLOBAL_STYLES'][2] = 'ff_container_font_family';
styleElementsArray['MAIN_HEADER'][0] = 'ff_mainHeader_color';
styleElementsArray['MAIN_HEADER'][1] =
'ff_mainHeader_background_color';
styleElementsArray['SUB_HEADER'][0] = 'ff_subHeader_color';
styleElementsArray['SUB_HEADER'][1] =
'ff_subHeader_background_color';
styleElementsArray['HEADER_BLOCK_CONTENT'][0] =
'ff_headerBlockContent_color';
styleElementsArray['HEADER_BLOCK_CONTENT'][1] =
'ff_headerBlockContent_background_color';
styleElementsArray['SEARCH_RESULTS_CONTENT'][0] =
'ff_blockContentSearchResult_color';
styleElementsArray['SEARCH_RESULTS_CONTENT'][1] =
'ff_blockContentSearchResult_background_color';
styleElementsArray['SEARCH_RESULTS_ITEM'][0] =
'ff_headerBlockSearchResultItem_color';
styleElementsArray['SEARCH_RESULTS_ITEM'][1] =
'ff_headerBlockSearchResultItem_background_color';
}
someFunction();
Thanks,
Chad