Integrated access to external web pages in JS Forms?
Michael Monschau
michael at brainydata.co.uk
Sun Jun 16 03:50:00 EDT 2019
Hi Sten,
I use the jsHTML control and set the $html to an embed tag programatically when I need to show a PDF preview. The embed tag can have an url which can be a website, or other file such as a PDF file.
Example:
Calculate refHtmlCtrl.$html as ‘<embed src=“www.brainydata.com” width=“100%” height=“100%” style=“border:2px solid rgb(0,96,0)”>’
Regards,
Michael
sent from my iPad
> On 16 Jun 2019, at 07:59, Bruno Del Sol <bruno.delsol at bydesign.fr> wrote:
>
> Hi Stene,
>
> You could use an iframe embedded in the Omnis html control.
>
> <iframe id="myframe" src=[1]"http://example.com" width="500"
> height="300" ></iframe>
>
> The content of an iframe is accessible from the main page through the
> DOM
>
> var myframe =
> document.getElementById('myframe').contentWindow.document;
>
> Regards
> Bruno
> By Design
> [2]http://www.bydesign.fr
> Bruno Del Sol
> [3]bruno.delsol at bydesign.fr
> tel (33) 01 48 78 47 37
> 46, rue de La Tour d'Auvergne
> 75009 Paris (France)
>
> Le 16/06/2019 à 07:45, Sten-Erik Björling a écrit :
>
> Dear all,
>
> Is there a way to use a URL to another web site in ones JS Forms and have it acc
> essed and used fully in a form / subform? Have looked into the html control but
> that seems to only handle web page source…
>
> Take care, all the best…
>
> Stene
>
> ______
>
> Sten-Erik Björling
> Enviro Data
> Kyrkogatan 5A 2 tr
> SE-972 32 Luleå
> Sweden
>
> E-Mail: [4]s-e.bjorling at enviro.se
> Mobile: +46-70-655 11 72
> Wire: @stenerikbjorling
> Skype: stenerikbjorling
> iChat: [5]stene at mac.com
> FaceTime: [6]stene at mac.com
> appear.in: stenerikbjorling
> Hotmail / Messenger: [7]stenerikbjorling at hotmail.com
> GMail: [8]stenerikbjorling at gmail.com
> ______
>
> This email and any files transmitted with it are confidential, may be legally pr
> ivileged and are intended solely for the use of the individual or entity to whom
> they are addressed. If you are not the intended recipient, please note that any
> use, distribution, or reproduction of the contents of this email is strictly pr
> ohibited and may be unlawful. If you are not the intended recipient, please noti
> fy the sender by return email and destroy all copies of the original message inc
> luding any attachments thereto. Thank you.
>
> Please note that we take reasonable precautions to prevent the transmission of v
> iruses; however, we cannot guarantee that this email or its attachments are free
> from viruses. We only send and receive emails on the basis that we are not be l
> iable for any loss or damage resulting from the opening of this message and/or a
> ttachments.
>
>
> _____________________________________________________________
> Manage your list subscriptions at [9]http://lists.omnis-dev.com
> Start a new message -> [10]mailto:omnisdev-en at lists.omnis-dev.com
>
> References
>
> 1. http://example.com/
> 2. http://www.bydesign.fr/
> 3. mailto:bruno.delsol at bydesign.fr
> 4. mailto:s-e.bjorling at enviro.se
> 5. mailto:stene at mac.com
> 6. mailto:stene at mac.com
> 7. mailto:stenerikbjorling at hotmail.com
> 8. mailto:stenerikbjorling at gmail.com
> 9. http://lists.omnis-dev.com/
> 10. mailto:omnisdev-en at lists.omnis-dev.com
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list