Le 06/03/2021 à 17:09, Brad Moore a écrit :
Hello,
I am working on an application that uses an IFrame element to display a web
page.
I would like to be able to select from a list of URL's from another GUI element
and have the IFrame switch to the newly selected URL.
It appears that the URL can only be specified when one "Create"s the Iframe.
Does gnoga support what I want to do? I've tried using calls such as
Element.Inner_Html, and calling Create_From_HTML,
but so far have not had any luck. Nothing happens.
I have a page that does that (https://adalog.fr/fr/qtall.html - it's in French).
It uses this simple javascript function:
function load (elem) {
document.getElementById("qtarticle").innerHTML = '<iframe style="min-width:100%;
min-height:' + document.getElementById("bar").clientHeight + 'px;"'
+ ' src="' +
elem.getAttribute("href") + '">'
}
And the place where the paper is loaded looks like this:
<article><div class="article" id="qtarticle">
<p class="bloc" style="width:50%;margin-right:auto">
Cliquez sur un article à gauche pour le faire apparaître.</p>
</div></article>
--
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list