Wt Error in combination with IE6 and IE8?
Added by Roman Zotter over 15 years ago
I got an error in my Wt application that only in IE6 and IE8, maybe also in IE7, havent checked this.
I get this error always when i try to set the text of a WLabel with the setText() function.
Here is a picture of the error:
it tells "invalid argument" as description.
is this error wt specific? or have i made a mistake?
wt_error.JPG (10.1 KB) wt_error.JPG |
Replies (3)
RE: Wt Error in combination with IE6 and IE8? - Added by Koen Deforche over 15 years ago
Hey Roman,
That is definitely a Wt error. I have a suspicion of what went wrong. If you pass an empty text through the constructor, is it then solved ?
label = new WLabel("", ...);
koen
RE: Wt Error in combination with IE6 and IE8? - Added by Roman Zotter over 15 years ago
hmm yeah passing the empty text through the constructor works
thanks.
btw, i have another question. also in IE6 and IE8, when i change the labeltext, the whole elements of the site are displacing.
what could be the source of this error? im using WContainerWidgets and WBoxLayouts for displaying the elements.
RE: Wt Error in combination with IE6 and IE8? - Added by Koen Deforche over 15 years ago
Hey Roman,
sorry I missed your reply.
Can you provide perhaps a screenshot of the displacement behavior you see (there are many quirks with IE6/IE8, and I want to see which one).
Some of them have to do with "having layout", which is needed on certain DOM elements for IE to behave well. Wt does not force having layout (as it sometimes also has bad consequences), but perhaps it should in this case ?