Thanks, J-P!  Good to know, I'll give that a shot.

Brad

----- Original Message -----
> From: "Jean-Pierre Rosen" <ro...@adalog.fr>
> To: "gnoga-list" <gnoga-list@lists.sourceforge.net>
> Sent: Saturday, March 6, 2021 10:02:36 AM
> Subject: Re: [Gnoga-list] Replacing the URL of an IFrame

> 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 &agrave; gauche pour le faire appara&icirc;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
> Gnoga-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnoga-list


_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to