Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: HTML tag in TEXTEDIT form field  (Read 10064 times)
yap b.
Posts: 17


« on: April 06, 2011, 02:22:57 am »

we have a form field defined as TEXTEDIT, it appears that additional HTML tags are added to the field value when we enter url link in that field.

for example, when the following link is entered

< a href="http://www.domain.com/file.pdf">download now< /a>

some additional HTML tags are added automatically by 4gl when we save the form to Informix SE database,
This is the exact text added to the beginning of that field value: <html><head><meta name="qrichtext" content="1" /></head><body style="font-size:8pt;font-family:MS Shell Dlg">

Then we will only see the word "download now" underlined as though it's an html link in the form during edit.  We no longer able to view the full <a href... >download now[/url] text we entered.

We are using GDC 1.33.1f with "Genero Business Development Language Version 1.33.1g"

How can we disable the additional html tags being auto added by 4gl?

thanks


* url_link.gif (5.04 KB, 218x75 - viewed 1704 times.)
Reuben B.
Four Js
Posts: 1108


« Reply #1 on: April 06, 2011, 01:24:27 pm »

The TEXTEDIT widget (and LABELS from a later version) have presentation styles that allow the content to be either plain text or HTML.

https://4js.com/online_documentation/fjs-fgl-1.33-manual-html/User/PresentationStyles.html#STYATT_TEXTEDIT 

In your form you'll need to have something like ...

TEXTEDIT f01 = formonly.url, STYLE="plain";

... and a corresponding entry in your style file.

<Style name="TextEdit.plain" >
   <StyleAttribute name="textFormat" value="plain" />
</Style>

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
yap b.
Posts: 17


« Reply #2 on: April 06, 2011, 02:27:40 pm »

Thanks!
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines