MTblExportToHTML Question

forum.3rdparty.tools (2005-2010)
Boris Bokun

MTblExportToHTML Question

Post by Boris Bokun » 07 May 2008, 14:58

 Posted by:  Boris Bokun 

Hi to all,

I want to export a table to HTML via MTblExportToHTML. One of my columns
contains a HTML Link e.g. Please click.

When exporting with MTblExportToHTML I get the following:

<A HREF=&#34...&#34>Please click</A>

which is not shown as a link.

I tried to set the column flag MTBL_COL_FLAG_EXPORT_AS_TEXT of the
column to TRUE, but nothing changes.

Am I missing something?

With best regards,

Boris Bokun
"Pragmatic-IT" d.o.o.
11000 Belgrade
Serbia

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2370
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: MTblExportToHTML Question

Post by Jeff Luther » 07 May 2008, 18:51

 Posted by:  Jeff Luther 

Perhaps you already know, but the "&#xx" symbols are the number equivalents
of ASCII chars, so your:
<A HREF=&#34...&#34>Please click</A>
translates to:
;Please click;

These are valid, so the real question is: Is the output HTML file valid?
That is, can you load and display it with IE, FireFox, etc?

If you can, there should not be a problem. If not, then maybe Michael S.
still visits here and can help. otherwise, better write him directly at his
www.micsto.com/ site.

Best Regards,
Jeff @ PC Design
info. & samples: www.JeffLuther.net/unify/

Boris Bokun

Re: MTblExportToHTML Question

Post by Boris Bokun » 08 May 2008, 01:58

 Posted by:  Boris Bokun 

Hi Jeff,

thanks for Your fast reply. I know the "&#xx;" symbols represent the
characters which have ASCII codes greater than 255. The problem is,
and probably I did not describe it precisely, that browsers don't
display the HTML page properly, what means I don't get a link.
Instead of getting a clickable link, I get the text

Please click

in the table cell.

Best regards,

Boris Bokun
"Pragmatic-IT" d.o.o.
11000 Belgrade
Serbia

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2370
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: MTblExportToHTML Question

Post by Jeff Luther » 08 May 2008, 05:20

 Posted by:  Jeff Luther 

Two things:
-- "ASCII codes greater than 255" - those codes are
which displays fine. (I use it to help prevent 'bots getting my email for
spamming.) Again, this is an M!Table issue, sound like,
but there is a workaround, if you need it: you could write a little TD
filter that translated those codes into their ASCII char. equivalents.

I'll attach a copy of the TD code I use to translate something like:
bbokun@pragmatic-it.com
into:
bbokun@pragmatic-it.com
That's just the reverse of what you would need.

Best Regards,
Jeff @ PC Design
info. & samples: www.JeffLuther.net/unify/

You do not have the required permissions to view the files attached to this post.

Andreas Rau
Germany
Posts: 23
Joined: 04 Jul 2017, 13:55
Location: Germany

Re: MTblExportToHTML Question

Post by Andreas Rau » 08 May 2008, 15:00

 Posted by:  Randy 

I think this works as expected. You get in the browser the same text as
you have in the table window.

We need a flag that prevents mtable from converting a column.
Maybe MTBL_COL_FLAG_EXPORT_AS_IT_IS would be a good name.

Regards,

Andreas Rau

micsto
Germany
Posts: 985
Joined: 07 Mar 2017, 16:07
Location: Germany

Re: MTblExportToHTML Question

Post by micsto » 09 May 2008, 15:03

 Posted by:  Michael Stoll \(MICSTO\) 

Hi Boris,

M!Table replaces some characters with HTML special characters (e.g. '' would mess up the table structure )
b) text is displayed correctly in the browser.

I'll implement the following in the next version:
When a column has the flag MTBL_COL_FLAG_EXPORT_AS_TEXT, the text of a cell
is exported "as it is" ( no replacement of characters with HTML special
characters ).

Hope that will suit your needs.
The new version of M!Table ( 1.9.1. ) is expected to be released in 2 or 3
weeks.

Regards
Michael

Boris Bokun

Re: MTblExportToHTML Question

Post by Boris Bokun » 11 May 2008, 15:30

 Posted by:  Boris Bokun 

Hello Michael,

I'm glad You noticed my post. When I read the documentation of the
exports, I supposed that the MTBL_COL_FLAG_EXPORT_AS_TEXT would
behave as described in Your post.

Thank You for Your answer. I will be waiting for the 1.9.1 version
of M!Table.

With best regards,

Boris Bokun
"Pragmatic-IT" d.o.o.
11000 Belgrade
Serbia

Return to “3rdparty.tools”

Who is online

Users browsing this forum: [Ccbot] and 0 guests