Mmm,

That's being thrown from the GWT code - let me send you another
version of the library, off-list, as I am porting everything to use
the new DOM approach as opposed to the old one.

It's possible either there's an error in the new DOM approach or my
code has some confusion in there on the objects used and is not 100%
compliant (my guess is on the later.....).  All that line in the
library is doing is getting the current style as a string and add the
style you've defined as a string to it, it shouldn't throw an
exception......

//Adam

On 21 Aug, 13:27, "Thomas Wrobel" <[EMAIL PROTECTED]> wrote:
> Thanks allthough I'm affraid theres still a problem :(
>
> The workaround seems to do its job...I see the effect work...but then
> I get another exception in the NMorphStyle.class;
>
> [ERROR] Uncaught exception escaped
> java.lang.ClassCastException:
> com.google.gwt.core.client.JavaScriptObject$ cannot be cast to
> java.lang.String
>         at com.google.gwt.dom.client.Element$.getAttribute$(Element.java)
>         at com.google.gwt.user.client.DOM.getElementAttribute(DOM.java:808)
>         at 
> org.adamtacy.client.ui.effects.core.NMorphStyle.setUpEffect(NMorphStyle.java:235)
>         at org.adamtacy.client.ui.effects.NEffect.init(NEffect.java:192)
>         at org.adamtacy.client.ui.NEffectPanel.addEffect(NEffectPanel.java:80)
>         at 
> com.darkflame.client.MyApplication.TriggerEffect(MyApplication.java:730)
>
> My effect is simply;
>
> NMorphStyle eff = new NMorphStyle(new
> Rule("start{background-color:#8691ca; }"),new
> Rule("end{background-color:#dff3ff; }"));
> StoryEffect.setEffectsLength(15);
> StoryEffect.addEffect(eff);            
>
> 2008/8/20 Adam T <[EMAIL PROTECTED]>:
>
>
>
>
>
> > I'm having trouble narrowing down the error you're seeing (mainly as I
> > don't have Windows machine to develop on).
>
> > I currently suspect it is the way that IE makes a style sheet
> > available - in other browsers it seems the onLoad() of GWT fires once
> > the style sheet is accessible, but in IE it might not - therefore, for
> > IE, there might be nothing for the library to get when you tell it to
> > use a particular style from the style sheet; that's going to take some
> > thinking about how to get around...
>
> > (in the meantime you could define the style in code so as not to hold-
> > up any development, e.g.
>
> > MorphStyle eff = new MorphStyle(new Rule("start{background-
> > color:#ffffff; width:50px;}"),new Rule("end{background-color:#33ffee;
> > width:500px;}"));
>
> > )
>
> > //Adam
>
> > On 20 Aug, 18:10, darkflame <[EMAIL PROTECTED]> wrote:
> >> "Damn IE - does anyone actually use it anymore??? :)"
>
> >> Not unless we have too ;)
> >> Unfortuntely IE users are still over 50% of the userbase, so cant be
> >> ignored.
>
> >> Did you get it working?
> >> I noticed the website seems to work in IE now. At least, I'm not
> >> getting the error Ian reported.
>
> >> On Aug 13, 7:47 pm, Adam T <[EMAIL PROTECTED]> wrote:
>
> >> > Damn IE - does anyone actually use it anymore??? :)
>
> >> > Somethings just gone wrong, as it should be working with IE - I really
> >> > shouldn't tinker in the background!
>
> >> > I need to look at it in a bit more detail, but just now it's Wednesday
> >> > evening - and that means it's beer time.  I'll post back when it's
> >> > running again.
>
> >> > Thanks for looking at the library!
>
> >> > //Adam
>
> >> > On 13 Aug, 17:39, darkflame <[EMAIL PROTECTED]> wrote:
>
> >> > > hmz.
> >> > > Thats weird, it works fine in Opera9.51, but dosnt work in IE :-/
>
> >> > > I was using it after reading 
> >> > > this;http://astithas.blogspot.com/2007/11/gwt-and-animation-effects.html
>
> >> > > And it seemed to do everything it should do, so I'm guessing the sites
> >> > > just got a glitch.
>
> >> > > On Aug 13, 5:01 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
>
> >> > > > I can't get the demo page to work - apparently 'b' is null or not an 
> >> > > > object.
>
> >> > > > Good luck using it.
>
> >> > > > 2008/8/13 darkflame <[EMAIL PROTECTED]>
>
> >> > > > > I decided to useGwtFx(http://code.google.com/p/gwt-fx/) for my
> >> > > > > animation needs, and it really seems excelent.
> >> > > > > Using preset effects such as Fade works perfectly.
>
> >> > > > > However, I cant seem to get Morphstyle technique to work despite
> >> > > > > cutting and pasteing the example code about.--
>
> --
> ~~~~~~
> Reviews of anything, by anyone;www.rateoholic.co.uk
> Please try out my new site and give feedback :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to