Embedding HTML into Uniface form?

Author: martinandheather@gmail.com (byjones)

I would like to have a Uniface form with a widget containing a web page (eg. http://maps.google.com).

I imagine that this is possible using an OCX, but this has always been a bit of a black art.

Would someone be kind enough to provide me with the steps to setting up the OCX (most likely using Internet Explorer) in order to display the google maps page within a Uniface client server form.

Thanks

Martin

8 Comments

  1. Attached link to an export (V9.3) of a simple ocx form which can be set to take a parameter of the URL and navigate there. If you need a plan for how to do it in an earlier version let me know. Firesong P.S. The url "URL=http://maps.google.co.uk/maps?q=PCI+Systems+Ltd.+S8+0TB" will show it finding our offices using name and postcode on google maps...


    Author: Iain Sharp (i.sharp@pcisystems.co.uk)
  2. P.P.S You will need to use widget properties on the OCX widget and import the signature.
    If this gives you any grief I will have to provide an export of the webbrowser signature.


    Author: Iain Sharp (i.sharp@pcisystems.co.uk)
  3. Thanks.



    Author: byjones (martinandheather@gmail.com)
  4. When I run it, however, the web page looks messed up (screenshot here: http://www.flickr.com/photos/21585596@N06/3660119350/ )

    Any thoughts?

    Martin


    Author: byjones (martinandheather@gmail.com)
  5. Seems to make a difference if you run it from the IDF or from the application.

    The display is all messed up if I alter our original one to run from the IDF, but O.K. if I run it from an application...


    Author: Iain Sharp (i.sharp@pcisystems.co.uk)
  6. Nice !

    Worked first time for me.  I was surprised to not have to hunt for a signature - it is there already in ULANA.

    Now I'd like to find a ocx for a simple html editor much like the one I'm typing this in.  I need to put an HTML editor in a uniface form.

    Anyone got any suggestions ?

    Thanks


    Author: AyeJayUU (awilkins1@btinternet.com)
  7. When you say a 'html editor', do you mean an editor for editting HTML, or just a web-based editor like CKEditor or TinyMCE?

    If it's the latter, then your web page OCX in a Uniface form could link to a local webpage on a local webserver, containing one of these editors. You would have to web page submit the content and then the behind-the-scenes code (maybe PHP or similar) writes it to the database.

    Good luck!

    Martin


    Author: byjones (martinandheather@gmail.com)
  8. Hi Martin,

    sorry - no what I meant was, I need to embed an HTML WYSIWYG editor ocx - pretty much like the one I am using here to edit this reply.

    I'm having touble finding one that isn't totally bloated with web-site creation software - I just want to type in rich text and store it as HTML.

    Best I've found so far is from nBit

    Still looking

    Thanks


    Author: AyeJayUU (awilkins1@btinternet.com)