Home Server
New Blog Posts: Merging Reports - Part 1 and Part 2

Apostorphe Problem

edited December 2004 in Server
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:

''
''

Comments

  • edited January 2005

    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
  • edited January 2005
    Nard Moseley (Digital Metaphors) wrote:

    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.
  • edited January 2005

    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
  • edited January 2005
    Nard Moseley (Digital Metaphors) wrote:
    Thanks, we will look into that.
This discussion has been closed.