Ok, folks. I am going bananas now. In IE6, 7, and Firefox -
Whenever I attempt to assign spry:region to a block level element,
the element disappears entirely. I have looked in the JS debugger
and know that the XML is coming in correctly. Truly I think I am
nuts at this point having exhaustively followed the developer's
guide.
Please tell me someone has faced this issue before.
Code below. Keep in mind that the %26lt;div%26gt; with
spry:region just disappears. A live example can be found
here..
-----
%26lt;!DOCTYPE html PUBLIC ''-//W3C//DTD XHTML 1.0
Transitional//EN'' ''
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd''%26gt;
%26lt;html xmlns=''
http://www.w3.org/1999/xhtml''
xmlns:spry=''
http://ns.adobe.com/spry''%26gt;
%26lt;head%26gt;
%26lt;meta http-equiv=''Content-Type'' content=''text/html;
charset=utf-8'' /%26gt;
%26lt;title%26gt;Las Vegas Box Office, Scheduling%26lt;/title%26gt;
%26lt;link rel=''stylesheet'' type=''text/css''
href=''../css/reset.css'' /%26gt;
%26lt;link rel=''stylesheet'' type=''text/css''
href=''../css/manager.css'' /%26gt;
%26lt;script type=''text/javascript''
src=''../includes/xpath.js''%26gt;%26lt;/script%26gt;
%26lt;script type=''text/javascript''
src=''../includes/SpryData.js''%26gt;%26lt;/script%26gt;
%26lt;script type=''text/javascript''%26gt;
var dsPerformances = new
Spry.Data.XMLDataSet(''datasets/performances.cfm'',''/shows/performance'');
%26lt;/script%26gt;
%26lt;/head%26gt;
%26lt;body%26gt;
%26lt;div id=''wrapper''%26gt;
%26lt;!-- Dillstar Productions Logo --%26gt;
%26lt;img src=''assets/dillstarproductions.png'' alt=''Dillstar
Productions'' /%26gt;
%26lt;h2%26gt;Management Console: Las Vegas Box
Office%26lt;/h2%26gt;
%26lt;div id=''menu''%26gt;
%26lt;h3%26gt;Task Menu%26lt;/h3%26gt;
%26lt;ul%26gt;
%26lt;li class=''active''%26gt;%26lt;a
href=''schedule.cfm''%26gt;Performance Schedule%26lt;/a%26gt;%26lt;/li%26gt;
%26lt;li%26gt;%26lt;a
href=''pricing.cfm''%26gt;Pricing%26lt;/a%26gt;%26lt;/li%26gt;
%26lt;li%26gt;%26lt;a href=''discounts.cfm''%26gt;Discount
Codes/Promos%26lt;/a%26gt;%26lt;/li%26gt;
%26lt;li%26gt;%26lt;a
href=''brokers.cfm''%26gt;Brokers%26lt;/a%26gt;%26lt;/li%26gt;
%26lt;li%26gt;%26lt;a
href=''sources.cfm''%26gt;Sources%26lt;/a%26gt;%26lt;/li%26gt;
%26lt;/ul%26gt;
%26lt;/div%26gt;
%26lt;div id=''content''%26gt;
%26lt;h4%26gt;Performance Schedule%26lt;/h4%26gt;
%26lt;div id=''Schedule_DIV'' spry:region=''dsPerformances''%26gt;
%26lt;table border=''1''%26gt;
%26lt;tr%26gt;
%26lt;th scope=''col''%26gt;Day%26lt;/th%26gt;
%26lt;th scope=''col''%26gt;Date%26lt;/th%26gt;
%26lt;th scope=''col''%26gt;Time%26lt;/th%26gt;
%26lt;/tr%26gt;
%26lt;tr spry:repeat=''dsPerformances''%26gt;
%26lt;td%26gt;{dsPerformances::day}%26lt;/td%26gt;
%26lt;td%26gt;{dsPerformances::showdate}%26lt;/td%26gt;
%26lt;td%26gt;{dsPerformances::showtime}%26lt;/td%26gt;
%26lt;/tr%26gt;
%26lt;/table%26gt;
%26lt;/div%26gt;
%26lt;/div%26gt;
%26lt;/div%26gt;
%26lt;/body%26gt;
%26lt;/html%26gt;
-----
Thanks to anyone who can help me out.
Spry hiding my elements.
Hi I3,
The problem seems to be your performances.cfm output. If you
load that directly into a browser like FireFox, you will notice
that it throws an error and chokes the browser. Some browsers will
choke if this:
%26lt;?xml version=''1.0'' encoding=''iso-8859-1''?%26gt;
is not on the first line ... you seem to have a blank line
that precedes it.
Next, the output after the XML declaration is not XML. It
looks as if the server is sending the last half of an HTML file
with JS embedded in it.
If you want an example of how to generate XML check this
sample out:
http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
--== Kin ==--Spry hiding my elements.
hey 3,
Something is up with your XML:
http://www.comedywedding.com/live/vegas/management/datasets/performances.cfm
Might need to strip whitespace...
Check this page for code samples:
http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
Thanks,
Don
Looks like I owe Kin a Coke...
''kinblas'' %26lt;webforumsuser@macromedia.com%26gt; wrote in
message
news:f1g4r6$rit$1@forums.macromedia.com...
%26gt; The problem seems to be your performances.cfm output. If
you load that
%26gt; directly into a browser like FireFox, you will notice
that it throws an
%26gt; error
%26gt; and chokes the browser. Some browsers will choke if
this:
%26gt;
%26gt; %26lt;?xml version=''1.0'' encoding=''iso-8859-1''?%26gt;
Every XML parser will choke at that. Anything before the XML
declaration
(apart a BOM) makes the XML not well formed.
Massimo
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment