2 Replies Latest reply: May 24, 2007 6:54 AM by Newsgroup_User RSS

    Formatted HTML output with Spry regions - is it possible?

    Steve Skinner Community Member
      I have recently begun using the XML export extension in conjunction with an Access database to output dynamic data into a page with a Spry master/detail setup. So far, my simple example is going great, but I've run into a snag that I need some help with.

      To explain what I'm doing - it's a simple article page with the list of articles on the left with the title and date and the article title and full contents on the right hand side. So far it's all working very well, updating in real time when I click an article title on the left. The problem is the output with this one field which stores not only text, but also HTML formatting that is generated by a wysiwyg editor used on the article creation side of this little app. This HTML formatted content is the article body and is stored in a field named the same - "body". With traditional ASP, the HTML formatting displays as expected and all is well, but with Spry, it doesn't output formatted HTML, but instead shows the content and HTML code together as text. How can I get this one field ("body") to be output so all the HTML formatting is shown?

      This is my simple page example. Click through and you'll see what I mean.
      http://www.shoestodyefor.com/ajax.asp

      Here's the section of code in question regarding the output on that right hand panel where the body is displayed for each article:
      <div spry:detailregion="ds1">
      {title}<br />
      {entryDate}<br />
      <br />
      {body}
      /div>

      Is it possible to have that {body} section shown so the dynamically created HTML code from the wysiwyg editor is displayed correctly?