Forum Discussion
ory_z
14 years agoContributor
Hi Allen,
Thanks for that.
Unfortunately it doesn't work.. Trying it with the error triggered from the Object Not Found error (using a call to an Alias that doesn't exist) results and a returned empty string. When debugging, the operation { = html.replace(stripAllTags, " "); } returns an empty string. This is easy to reproduce with the following code:
function TestStripHTML()
{
Log.Message( stripHtml( "<html><style>body {font-family : Courier New, Arial; font-size : 10pt; font-weight : normal; padding : 14px 8px 8px 14px; margin : 0 0 0 0;} p {margin : 4px 0 4px 0; padding : 0 0 0 0;} h4 {font-size: 10pt; font-weight : bold; margin : 12px 0 0 16px; padding : 0 0 0 0;} table {margin-left : 16px; border-top: 1px solid grey;} td {font-size : 10pt; font-weight : normal; padding-left : 8px;} </style><body><p>An error occurred while calling the \"Visible\" method or property of the \"<a href=\"lnamemapping://{225B2166-C880-4BD1-BCCF-7A46171069A3}.{1BB7E949-7C88-4D15-9153-FED23F9B60D0}\">ConnectBtn</a>\" object.<br/>The object or one of its parent objects does not exist.</p><h4>Tested Object</h4><table cellpadding=\"0\" cellspacing=\"0\" noborder><tbody><tr><td><b>Alias:</b></td><td>Aliases.RIOS_SSC32.InviteUnit.ConnectBtn</td><tr><td><b>Mapping item:</b></td><td>NameMapping.Sys.RIOS_SSC32.InviteUnit.BitBtn4</td></tr></tbody></table><h4>Missing Object</h4><table><tbody><tr><td><b>Alias:</b></td><td>Aliases.RIOS_SSC32</td><tr><td><b>Mapping item:</b></td><td>NameMapping.Sys.RIOS_SSC32</td></tr></tbody></table><p style=\"margin-top: 12px;\"><a href=\"aqa-help://2201\">Possible causes of the error</a></p></body></html>" ) );
}
Any idea why?
Thanks for that.
Unfortunately it doesn't work.. Trying it with the error triggered from the Object Not Found error (using a call to an Alias that doesn't exist) results and a returned empty string. When debugging, the operation { = html.replace(stripAllTags, " "); } returns an empty string. This is easy to reproduce with the following code:
function TestStripHTML()
{
Log.Message( stripHtml( "<html><style>body {font-family : Courier New, Arial; font-size : 10pt; font-weight : normal; padding : 14px 8px 8px 14px; margin : 0 0 0 0;} p {margin : 4px 0 4px 0; padding : 0 0 0 0;} h4 {font-size: 10pt; font-weight : bold; margin : 12px 0 0 16px; padding : 0 0 0 0;} table {margin-left : 16px; border-top: 1px solid grey;} td {font-size : 10pt; font-weight : normal; padding-left : 8px;} </style><body><p>An error occurred while calling the \"Visible\" method or property of the \"<a href=\"lnamemapping://{225B2166-C880-4BD1-BCCF-7A46171069A3}.{1BB7E949-7C88-4D15-9153-FED23F9B60D0}\">ConnectBtn</a>\" object.<br/>The object or one of its parent objects does not exist.</p><h4>Tested Object</h4><table cellpadding=\"0\" cellspacing=\"0\" noborder><tbody><tr><td><b>Alias:</b></td><td>Aliases.RIOS_SSC32.InviteUnit.ConnectBtn</td><tr><td><b>Mapping item:</b></td><td>NameMapping.Sys.RIOS_SSC32.InviteUnit.BitBtn4</td></tr></tbody></table><h4>Missing Object</h4><table><tbody><tr><td><b>Alias:</b></td><td>Aliases.RIOS_SSC32</td><tr><td><b>Mapping item:</b></td><td>NameMapping.Sys.RIOS_SSC32</td></tr></tbody></table><p style=\"margin-top: 12px;\"><a href=\"aqa-help://2201\">Possible causes of the error</a></p></body></html>" ) );
}
Any idea why?
Related Content
- 8 years ago
- 12 years ago
- 8 years ago
- 8 years ago
- 11 months ago
Recent Discussions
- 18 hours ago