Announcement

Collapse
No announcement yet.

Getting line returns from XML file into multiline edit field.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting line returns from XML file into multiline edit field.

    I have POST action to an ASP page that generates XML that is read back into Autoplay's Multiline Edit Field. My problem is how do I format the XML text to create line returns in the Edit field. As it is now, the text just runs off the edge. I looked for special escape characters to add line returns to my text but I cant find any reference for them. For example if I add \t it will add a tab, what would it be for a newline (ie. \n doesnt work ??)

  • #2
    Re: Getting line returns from XML file into multiline edit field.

    Maybe \r\n? (Haven't tried it, just a quick guess.)
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: Getting line returns from XML file into multiline edit field.

      I have no ASP knowledge but I'm sure it would be a simple matter to find out online at any ASP resource site.

      Corey Milner
      Creative Director, Indigo Rose Software

      Comment


      • #4
        Re: Getting line returns from XML file into multiline edit field.

        RE: \r\n does not work, but \t does for tabs? bizarre.

        Ill look into what ASP can insert to create a line break in a string.

        Comment


        • #5
          Re: Getting line returns from XML file into multiline edit field.

          Bear in mind that it makes a big difference how you have ASP configured on your server as to which tags will apply. All that stuff can usually be activated or de-activated via your config files.

          Try inserting standard line breaks, works fine with PHP.

          Corey Milner
          Creative Director, Indigo Rose Software

          Comment


          • #6
            Re: Getting line returns from XML file into multiline edit field.

            Ill be interested in your PHP example. I tried using just an XML file with text that includes line breaks (not ASP generated). If I import this file directly into the text box object it will preserve the line breaks. If i bring it in via the internet, it removes the line breaks. So the http streaming of the XML file removes the line breaks. I've try setting the encoding to ascii, utf-8 and nothing seems to work. I have limited control over the server at it is a host provider.

            Comment

            Working...
            X