Someone knowing something about FlexBox in web programming ?
If yes, this someone know if it's possible to read the text into it ?
Have a good day

The happiness is a road...
The happiness is a road...
Hello FIRACEFirace wrote:Hi KCC, are you unable to get the innerHTML of any page with a flexbox, or is the problem specific to your bank's page?
If it is any page, can you provide an example URL that we could test?
Code: Select all
<body class="main-body">
<div id="awt--root-element" class="awt--root-element">
<div id="sdcWrapper" class="sdcWrapper"></div>
<script>
var awtConfig = function(gf, sdc, options) {
window._awtConfigParams = {
gf: gf,
sdc: sdc,
options: options
};
};
awtConfig.prototype.load = function () {
};
</script>
<script>
var awtParams = {
defaultGf: "zco",
defaultSdc: "zco",
defaultRoute: 'zco',
hasCoque: false,
autoRemoveLoader: true,
loader: '<div class="load"><div class="load-anim"><div class="load-spinner"></div></div></div>'
};
window.myApp = new awtConfig('zco', null, awtParams);
window.myApp.load();
</script>
<script>
awtConfig = null;
(function(){
'use strict';
function loadAwtConfigScript(callback) {
var head = document.getElementsByTagName('head')[0];
var scriptElement = document.createElement('script');
scriptElement.type = 'text/javascript';
scriptElement.src = "/icd/zco/awtConfig.js";
if(!callback) callback = function(){}; // ★★★★★★★★★ JUST ADD THIS LINE!
// bind the event to the callback function
if(scriptElement.addEventListener) {
scriptElement.addEventListener("load", callback, false); // IE9+, Chrome, Firefox
}
else if(scriptElement.readyState) {
scriptElement.onreadystatechange = function(){
if( this.readyState === "loaded" || this.readyState === "complete" ){
callback.apply(this, arguments);
}
}; // IE8
}
// fire the loading
head.appendChild(scriptElement);
}
function initAwtConfig() {
loadAwtConfigScript(function() {
window.myApp = new awtConfig(
(window._awtConfigParams && window._awtConfigParams.gf) || (typeof(awtParams) !== "undefined" && awtParams.defaultGf) || null,
(window._awtConfigParams && window._awtConfigParams.sdc) || (typeof(awtParams) !== "undefined" && awtParams.defaultSdc) || null,
(window._awtConfigParams && window._awtConfigParams.options) || awtParams);
window.myApp.load();
window._awtConfigParams = null;
});
}
setTimeout(initAwtConfig, 0);
})();
</script>
</div>
</body>
</html>
#NULL wrote:If you can't find the element in the original DOM then it might be added later by javascript.
But when i ask manually in the scratchpad "document.getElementsByTagName('html')[0].innerHTML" or other style of commande, the page is finished since a long time no?Derren wrote:If you can't get the text from an element, it's likely because the text is put there dynamically via a script.
The happiness is a road...Code: Select all
var iframe = document.querySelector("....")
var actualDiv = iframe.querySelector("#myDiv")

Code: Select all
<div class="x-grid3-cell-inner x-grid3-col-1" unselectable="on">08/03/2017<br> </div>
<div class="x-grid3-cell-inner x-grid3-col-2" unselectable="on">CHEQUE N° 000023<br> </div>
<div class="x-grid3-cell-inner x-grid3-col-4" unselectable="on">-19.95<br> </div>
The happiness is a road...

The happiness is a road...
Code: Select all
var iframe = document.getElementById('iframe-page-content');
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
console.log(innerDoc);WebConsole wrote:undefined
The happiness is a road...