I actually started this (wild goose chase) by looking at using the
.innerHTML to display an HTML string inside a table... I eventually gave up
on this and now I'm trying to remove all the HTML tags from the string and
display the result in the table...
Here's the code I'm using now :
cstring = cstring.replace('<b>','');
Problem is that it's not replacing the <b> globally... and aparently you can
use a regular expression to do this - but I'm not finding anything on the
internet to show me how to do this in M-Business client.
I'm using 5.7 build 32.
Any help will be appreciated.
From: "Jan" <firstname.lastname@example.org>
Organization: USP Designs
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
Date: 11 Apr 2007 07:02:30 -0800
X-Trace: forums-1-dub 1176300150 22.214.171.124 (11 Apr 2007 07:02:30 -0800)
X-Original-Trace: 11 Apr 2007 07:02:30 -0800, dsl-243-84-175.telkomadsl.co.za
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1063
Article PK: 9220
From: David Fishburn <email@example.com>
Organization: iAnywhere Solutions
User-Agent: Xnews/2005.10.18 Hamster/126.96.36.199
Date: 12 Apr 2007 06:05:40 -0800
X-Trace: forums-1-dub 1176383140 10.25.18.129 (12 Apr 2007 06:05:40 -0800)
X-Original-Trace: 12 Apr 2007 06:05:40 -0800, 10.25.18.129
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1064
Article PK: 9219
"Jan" <firstname.lastname@example.org> wrote in news:461cea76@forums-1-dub of
J> I actually started this (wild goose chase) by looking at using the
J> .innerHTML to display an HTML string inside a table... I eventually
J> gave up on this and now I'm trying to remove all the HTML tags from
J> the string and display the result in the table...
J> Here's the code I'm using now :
J> cstring = cstring.replace('<b>','');
J> Problem is that it's not replacing the <b> globally... and aparently
J> you can use a regular expression to do this - but I'm not finding
J> anything on the internet to show me how to do this in M-Business
J> I'm using 5.7 build 32.
Did you try a page like this:
var visitorName = "Chuck";
var myOldString = "Hello username! I hope you enjoy your stay
var myNewString = myOldString.replace(/username/g, visitorName);
document.write("Old string = " + myOldString);
document.write("<br />New string = " + myNewString);
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).
EBFs and Maintenance Releases
Developer Community / Whitepapers
CaseXpress - to report bugs
CodeXchange - Free samples