I can't get the spry:setrow function to work properly with Fade effect (works fine w/o it).
I have a nested data set that loads content into a Sliding Panels widget. When a menu item on the left is clicked, a new row is set and SP get populated w/ different content.
I got it to work w/o effects, but once I added fade to the detail region, my setrow function stopped working. When you click on 2nd row, then back on 1st, it no longer updates the detail region.
Hi A44,
You are setting your onPostUpdate observer on a non-existent region:
Spry.Data.Region.addObserver('sp1', fadeInContent);
There is no region element on your page with an id of 'sp1'. If you change it to:
Spry.Data.Region.addObserver('example2Region', fadeInContent);
Things work properly.
--== Kin ==--
You're absolutely right. I can't believe I missed it. I updated the file - http://a44.awardspace.com/testing/index-4.html.
It works in FF now, but the detail region flickers every time it's updated. And it doesn't work at all in IE8. I get this:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Sat, 9 May 2009 01:25:05 UTC
Message: Object doesn't support this property or method
Line: 17
Char: 60
Code: 0
URI: http://a44.awardspace.com/testing/index-4.html
Message: Object doesn't support this property or method
Line: 4
Char: 1
Code: 0
URI: http://a44.awardspace.com/testing/index-4.html
Message: Object doesn't support this property or method
Line: 5
Char: 1
Code: 0
URI: http://a44.awardspace.com/testing/index-4.html
Message: Object doesn't support this property or method
Line: 3
Char: 1
Code: 0
URI: http://a44.awardspace.com/testing/index-4.html
Message: Object doesn't support this property or method
Line: 3
Char: 1
Code: 0
URI: http://a44.awardspace.com/testing/index-4.html
Message: Object doesn't support this property or method
Line: 3
Char: 1
Code: 0
URI: http://a44.awardspace.com/testing/index-4.html
Message: Object doesn't support this property or method
Line: 3
Char: 1
Code: 0
URI: http://a44.awardspace.com/testing/index-4.html
Message: Object doesn't support this property or method
Line: 3
Char: 1
Code: 0
URI: http://a44.awardspace.com/testing/index-4.html
Regarding your IE8 error ... it might be complaining about the fact that you didn't forward declare sp1. Try changing this:
var observer = { onPostUpdate: function(notifier, data) { sp1 = new Spry.Widget.SlidingPanels("sp1"); } };
to:
var sp1;
var observer = { onPostUpdate: function(notifier, data) { sp1 = new Spry.Widget.SlidingPanels("sp1"); } };
and see if that gets rid of your problem.
--== Kin ==--
Hi
I have been having major problems with Spry code and IE8. From reading around it's not just spry, prototype is also broken.
Even if I add <meta http-equiv="X-UA-Compatible" content="IE=7" /> to the header of the page to tell IE8 to render it as IE7 things still don't work!
Good old microsoft, breaking everything all over again!
Um... even if you try adobes sample site none of it works in IE8!
http://labs.adobe.com/technologies/spry/samples/slidingpanels/SlidingP anelsSample.html
Great!
North America
Europe, Middle East and Africa
Asia Pacific