Hi.
I have the following excerpt from F12 in Chrome during a run of html page, written in Alpha Anywhere, v4.2 .
How do I use the various properties (in this case of the container), in this json-like structure?
Both to read some of the values and to write (define them), ex ....body.scroll.axis = 'x'; in Alpha's javascript.
--------------------------------------------------------
....................
....................
DLG1_DlgObj.createWindow('DLG1_CONTAINERWINDOW_CONTAINER_7','modal',
{
body: {
content: {
type: 'element',
elementId: 'DLG1.V.R1.CONTAINER_7'
},
scroll: {
axis: 'y',
stopPropogation: false,
pull: {
y: 'auto',
x: 'auto'
},
indicator: {
show: true,
h: {
show: true,
location: 'right',
offset: '0px',
left: '0px',
right: '0px'
},
v: {
show: true,
location: 'right',
offset: '0px',
top: '0px',
bottom: '0px'
}
}
},
style: 'overflow: auto; '
},
height: 'max:250px',
width: '100%',
title: {
html: 'ABCDEF',
show: true,
location: 'top',
direction: 'ltr'
},
disableMove: true,
theme: 'iOS:base'
}
);
....................
....................
===============================================
Specifically, I want to change the title of the window container with a javascript code. It can be specified (hardcoded) in the Window property,
and it can be a value of a field in a list, through a placeholder with curly brackets. But can I just specify it as a random value in a code?
I guess the broader question is how do I use the code above from the html source-code, or F12 in Chrome, firebug in Firefox.
I tried different combinations, like the ones below - no luck :
// var m1 = {dialog.object}.getPointer('CONTAINER_7');
// document.getElementById('DLG1.V.R1.CONTAINER_7').title.html = 'abc1'; //innerHTML too
///$(cont7).title = 'abc2';
///cont7.height = 'max:10px';
//var currWindow = DLG1_DlgObj.getWindow('DLG1_CONTAINERWINDOW_CONTAINER_7');
//currWindow.name = 'abc3';
Thanks!
I have the following excerpt from F12 in Chrome during a run of html page, written in Alpha Anywhere, v4.2 .
How do I use the various properties (in this case of the container), in this json-like structure?
Both to read some of the values and to write (define them), ex ....body.scroll.axis = 'x'; in Alpha's javascript.
--------------------------------------------------------
....................
....................
DLG1_DlgObj.createWindow('DLG1_CONTAINERWINDOW_CONTAINER_7','modal',
{
body: {
content: {
type: 'element',
elementId: 'DLG1.V.R1.CONTAINER_7'
},
scroll: {
axis: 'y',
stopPropogation: false,
pull: {
y: 'auto',
x: 'auto'
},
indicator: {
show: true,
h: {
show: true,
location: 'right',
offset: '0px',
left: '0px',
right: '0px'
},
v: {
show: true,
location: 'right',
offset: '0px',
top: '0px',
bottom: '0px'
}
}
},
style: 'overflow: auto; '
},
height: 'max:250px',
width: '100%',
title: {
html: 'ABCDEF',
show: true,
location: 'top',
direction: 'ltr'
},
disableMove: true,
theme: 'iOS:base'
}
);
....................
....................
===============================================
Specifically, I want to change the title of the window container with a javascript code. It can be specified (hardcoded) in the Window property,
and it can be a value of a field in a list, through a placeholder with curly brackets. But can I just specify it as a random value in a code?
I guess the broader question is how do I use the code above from the html source-code, or F12 in Chrome, firebug in Firefox.
I tried different combinations, like the ones below - no luck :
// var m1 = {dialog.object}.getPointer('CONTAINER_7');
// document.getElementById('DLG1.V.R1.CONTAINER_7').title.html = 'abc1'; //innerHTML too
///$(cont7).title = 'abc2';
///cont7.height = 'max:10px';
//var currWindow = DLG1_DlgObj.getWindow('DLG1_CONTAINERWINDOW_CONTAINER_7');
//currWindow.name = 'abc3';
Thanks!
Comment