[Dojo-interest] displayMessage problem
Victor Danilchenko
victor at askonline.net
Fri Aug 26 08:29:26 EDT 2011
So I did some more digging, and realized it's because of my postCreate
message. My override method was:
postCreate: function () {
this.displayMessage(uname_postdisplay_message);
}
I was missing the call to parent's postCreate:
postCreate: function () {
var retval = this.inherited("postCreate", arguments);
this.displayMessage(uname_postdisplay_message);
return retval;
}
However, for some weird reason, the displayMessage method -- the reason
why I overrode the postCreate in the first place -- doesn't in fact
display as the tooltip with my message.
The displaymessage text simply, silently, doesn't display. I tried
displaying it from elsewhere, hanging it on a setTimeout call, I
explicitly included dijit.Tooltip -- nothing.
Has something changed about the displayMessage implementation? I didn't
see anything in the docs...
On 8/25/11 6:04 PM, Victor Danilchenko wrote:
> Hi guys,
>
> I am trying to migrate my application from 1.5 to 1.6, the I am having
> trouble with a custom QueryReadStore. It works fine in 1.5, but doesn't
> send any queries in 1.6, logs nothing useful to the console, and
> basically just sits there, inert.
>
> I looked over the docs and release notes, but found nothing. The JS
> file which implements this custom control -- a username selector -- can
> be seen at
> http://demo.askonline.net/js-lib/askonline/base/UserInterface/UnamePicker.js
> . The corresponding HTML tag may look as follows:
>
> <input id="to_users"
> class="uname-select"
> account_type="6"
> unameSelectedCallback="uname_entered"
> title="Please type in a username and press 'Return'"
> blankPadding="1"/>
>
> The server-side stuff doesn't matter. Under Dojo 1.6, the
> FilteringSelect simply does nothing, no queries go over the wire,
> nothing. If i could simply get it to query, I can take it from there.
>
> I am just totally stumped... it looks like nothing which should have
> affected this code, changed from 1.5 to 1.6!
>
> Can someone perhaps help me with some advice perhaps? I put together a
> quick demo, two pages -- identical code, just loads different Dojo
> versions, so you can see how my FilteringSelect works under 1.5 but not 1.6:
>
> http://demo.askonline.net/uname-picker-dojo1.5.html
> http://demo.askonline.net/uname-picker-dojo1.6.html
>
> Many thanks in advance.
--
Victor Danilchenko
Senior Software Engineer, AskOnline.net
victor at askonline.net - 617-273-0119
More information about the Dojo-interest
mailing list