MSHTML library problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ankyRichole
    New Member
    • Jun 2008
    • 2

    #1

    MSHTML library problem

    Hello All,
    I am rendering HTML file using MSHTML library reference visual basic 6.0. I am setting values for input box using value property. My problem is, if the value has starting char. " ` "(acute / greve accent , key right above the Tab key) and has only single word, IE is invalidating the whole element and displays it as a text.
    for eg. [HTML]<INPUT type= text value='abcd id=text1>[/HTML] . The reason i found is that, if we wrap the value between quotation mark (either " or ') it displays perfectly in to the input box.
    Do anyone is knowig how to handle this. I want to wrap the value between quotes.

    Thanks,
    Anky
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    I am not sure I completely understand the problem because I have not worked with that particular control in Vb 6.0

    However have you tried a Replace for the ` ?

    Replace(Express ion, WhatToReplace, ReplaceWithWhat )

    Comment

    • ankyRichole
      New Member
      • Jun 2008
      • 2

      #3
      Jeffstl,
      Thanks for the reply,
      I tried replacing ` character with its value &#96, but now when i set that value thru MSHTML , & is being encoded in &amp; and rest of #96 remains as it is.
      I have given MSHTML library reference in my VB application and using its functions to set the values to the fields.

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        Just out of curiosity, why are you posting this in the ASP forum? Shouldn't this go in the VB forum?

        Jared

        Comment

        • jhardman
          Recognized Expert Specialist
          • Jan 2007
          • 3405

          #5
          Originally posted by ankyRichole
          Hello All,
          I am rendering HTML file using MSHTML....
          according to HTML 4.0 standard, all values are supposed to be wrapped in quote marks, leaving out the quote marks is incorrect.

          Jared

          Comment

          Working...