This content has been marked as final.
Show 6 replies
-
1. Re: Formatted HTML output with Spry regions - is it possible?
Newsgroup_User May 24, 2007 7:05 AM (in response to Steve Skinner)Steve Skinner wrote:
> Is it possible to have that {body} section shown so the dynamically created
> HTML code from the wysiwyg editor is displayed correctly?
I've just answered this question in the Dreamweaver forum, but since
Nadia sent you here, I'll forgive you. ;-)
Here's the answer again:
The version of Spry that ships with Dreamweaver CS3 (Spry 1.4) doesn't
support the type of output created by the XML Export extension.
This issue has been corrected in Spry 1.5, but no plans have been made
public for integrating Spry 1.5 into Dreamweaver CS3. You would need to
download Spry 1.5 from http://labs.adobe.com/technologies/spry/. Details
of how to hand-code the fix for output from XML Export are here:
http://labs.adobe.com/technologies/spry/samples/data_region/HTMLFragsInXMLSample.html
--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
2. Re: Formatted HTML output with Spry regions - is it possible?
Steve Skinner May 24, 2007 7:54 AM (in response to Steve Skinner)Yes, please forgive the double post, but Nadia thought this message should be here.
The sample page you see from the link I provided in my original explanation actually IS using the XML Export extension. I created a recordset from my access db on a page called spry.asp, and then ran the XML Export extension on that page as well to create the XML. On the ajax.asp page I created for the output page, the spry data set setup asks where to look for the XML and I just pointed it to my spry.asp page and everything worked fine, except this one field {body}
Perhaps I'm misunderstanding you but the Spry within Dreamweaver does appear to support output from the XML extension. My working example is evidence of this isn't it? Everything seemed to work fine and provided all the output as expected except for this one field that contains HTML code.
Thanks for the workaround! I will see if I can figure out where to apply the code changes. :-) -
3. Re: Formatted HTML output with Spry regions - is it possible?
Newsgroup_User May 24, 2007 9:56 AM (in response to Steve Skinner)Steve Skinner wrote:
> Yes, please forgive the double post, but Nadia thought this message should be
> here.
No problem, and Nadia was right - this is the better place for Spry support.
> Perhaps I'm misunderstanding you but the Spry within Dreamweaver does appear
> to support output from the XML extension. My working example is evidence of
> this isn't it? Everything seemed to work fine and provided all the output as
> expected except for this one field that contains HTML code.
Yes, that's the problem. XML Export converts HTML tags to entities, so
<p> becomes <p> (not sure whether that will come through properly
on the web forum). Spry 1.4 is incapable of handling this correctly, but
setColumnType() in Spry 1.5 solves the problem. Unfortunately, there's
no indication of if or when this will be incorporated into Dreamweaver CS3.
--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
4. Re: Formatted HTML output with Spry regions - is it possible?
MARIN Cristian May 24, 2007 3:01 PM (in response to Steve Skinner)Hi,
We found about this problem a little bit late, in the day we released the Spry 1.5. We are working internally to a solution to solve this issue and the future version to have this incompatibility fixed.
The problem appears when in your XML encoded file you have an encoded HTML. The XML Export product knows to automatically encode the HTML to be encapsulated correctly in the XML. In the earlier days of Spry when the XML Export was not around we found out that people that would liked to have some special HTML characters like < or > sent through XML didn't double encoded that character on the server as they are supposed. When the message arrive from the server we received the character and not its encoding < or >. Because of this when inserted in a page often the browser interpreted this as a tag so destroyed the people pages.
Our decision at the time was to make an extra encoding on the server side to avoid this problem. Unfortunately this was not a happy solution, as you discovered, because when the text is sent correctly double encoded we encode it one more time. Spry 1.5 partially fix this problem through the setColumnType(). We will have in the next version a better solution where you can say to stop re-HTML-encode everything to a dataset.
To upgrade the Spry version in Dreamweaver you'll have to read Kin posts on a previous discussion where the steps are clearly detailed.
Regards,
Cristian -
5. Re: Formatted HTML output with Spry regions - is it possible?
Steve Skinner May 24, 2007 3:14 PM (in response to Steve Skinner)Thanks for the help and explanation David and Marin!
I will certainly check into upgrading Dreamweaver to Spry 1.5. Should I be worried at all about screwing up anything? I'll probably find out more when I get into instructions provided by kinblas, but I hope the existing functionality of Spry's extensions within Dreamweaver work the same as they do now. I've really been enjoying those new features in Dreamweaver CS3.
Hopefully in the future someone will come up with an installable patch for Dreamweaver CS3 users to eliminate some of the noobie mistakes that are inevitable when it comes to manual software updates. :-) -
6. Re: Formatted HTML output with Spry regions - is it possible?
Steve Skinner May 24, 2007 3:54 PM (in response to Steve Skinner)Upgraded to Spry 1.5 following the manual update instructions (actually very simple), used setColumnType("body", "html"); and it works beautifully!
http://shoestodyefor.com/ajax.asp.
Now I just need to figure out how to get those cool new features that I saw in the Spry 1.5 widgets folder to show up on my editing bars in Dreamweaver so I can use them....
Thanks everyone!


