Apostorphe Problem
RB 7.04, D6
If the user enters a string with an apostrophe on our parameters page
(such as "Mark's Guide"), the following line generates HTML which the
browser chokes on:
result := self.rsWebTier.ProcessWebRequest( oWebRequest );
Is there anything we or you can do to fix this?
Thanks.
Bad HTML:
''
''
''
If we enter two apostrophes "Mark''s Guide" it does not choke, but the
two apostrophes show up on the report.
HTML with two apostrophes:
''
''
If the user enters a string with an apostrophe on our parameters page
(such as "Mark's Guide"), the following line generates HTML which the
browser chokes on:
result := self.rsWebTier.ProcessWebRequest( oWebRequest );
Is there anything we or you can do to fix this?
Thanks.
Bad HTML:
''
''
''
If we enter two apostrophes "Mark''s Guide" it does not choke, but the
two apostrophes show up on the report.
HTML with two apostrophes:
''
''
This discussion has been closed.
Comments
Sorry to not respond to this sooner.
I performed some testing here using the Custom Parameters example for the
Server and WebTier, but did not encounter any errors.
Can you specify steps for me to recreate the error using the Custom
Parameters Demo?
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Nard:
Thanks for trying this. The error does not happen in the WebTier or the
report server. It happens when the HTML is returned from the WebTier to
the browser. The browser is what is choking. All the report builder
compoents work fine.
Nevertheless, the browser does choke. If there were a method to grab
the text and remove the apostrophe, that would be great.
What browser are you using to test?
You can try editing the html that is returned to the browser. See the
WebTier.ProcessRequest method. It return the HTML to the browser. However,
depending upon what is being displayed, the html may contain references to
other html pages (i.e. frames are used).
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thanks, we will look into that.