How to hide/show the CheckBox?

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

How to hide/show the CheckBox?

Forest Zhu
Hi, all.
 
I want to hide/show the dojo CheckBox widget programatically. I have tried
 
dojo.widget.byId("xxx").domNode.style.diplay = "none";
dojo.widget.byId("xxx").domNode.style.diplay = "";
 
It works on FF, but on IE, the CheckBox picture sometimes does not appear when setting display = "", but when move the mouse over the position where the picture should be, the picture reappears.
 
Does this an IE bug or a dojo issue? What is the correct way to do this?
 
Thanks and best regards.
 

_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
[hidden email]
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: How to hide/show the CheckBox?

Jason Cline
all widgets have a .show() and .hide() method which should do what you want.

Jason

On 8/7/06, Forest Zhu <[hidden email]> wrote:

>
>
> Hi, all.
>
> I want to hide/show the dojo CheckBox widget programatically. I have tried
>
> dojo.widget.byId("xxx").domNode.style.diplay = "none";
>
> dojo.widget.byId("xxx").domNode.style.diplay = "";
>
> It works on FF, but on IE, the CheckBox picture sometimes does not appear
> when setting display = "", but when move the mouse over the position where
> the picture should be, the picture reappears.
>
> Does this an IE bug or a dojo issue? What is the correct way to do this?
>
> Thanks and best regards.
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> [hidden email]
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
[hidden email]
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: How to hide/show the CheckBox?

Forest Zhu
I have tried show() hide(), but encounter a "this.toggleObj is null or not object" error.

F.

----- Original Message -----
From: "Jason Cline" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, August 08, 2006 7:58 AM
Subject: Re: [Dojo-interest] How to hide/show the CheckBox?


> all widgets have a .show() and .hide() method which should do what you want.
>
> Jason
>
> On 8/7/06, Forest Zhu <[hidden email]> wrote:
>>
>>
>> Hi, all.
>>
>> I want to hide/show the dojo CheckBox widget programatically. I have tried
>>
>> dojo.widget.byId("xxx").domNode.style.diplay = "none";
>>
>> dojo.widget.byId("xxx").domNode.style.diplay = "";
>>
>> It works on FF, but on IE, the CheckBox picture sometimes does not appear
>> when setting display = "", but when move the mouse over the position where
>> the picture should be, the picture reappears.
>>
>> Does this an IE bug or a dojo issue? What is the correct way to do this?
>>
>> Thanks and best regards.
>>
>> _______________________________________________
>> Dojo FAQ: http://dojo.jot.com/FAQ
>> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> [hidden email]
>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>
>>
>>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> [hidden email]
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
[hidden email]
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: How to hide/show the CheckBox?

Jason Cline
You are right.  It doesn't work.

Wrote this quick little test:

<div widgetId="textcheck" dojoType="Checkbox"></div>
               
                <br>

<div dojoType="Button"
onClick="alert(dojo.widget.byId('textcheck').isHidden);
dojo.widget.byId('textcheck').hide();
alert(dojo.widget.byId('textcheck').isHidden);"
caption="Debug"></div>


Click on the button and the output will be false then true.  So the
widget thinks that it is hidden but the checkbox is still visible.
(using an input tag instead of div doesn't have any different effect)

This test was on a nightly build from back in June after 0.3.1 came
out.  It could be fixed in the latest nightly now that all the widgets
have been reorganized.

Jason


On 8/7/06, Forest Zhu <[hidden email]> wrote:

> I have tried show() hide(), but encounter a "this.toggleObj is null or not object" error.
>
> F.
>
> ----- Original Message -----
> From: "Jason Cline" <[hidden email]>
> To: <[hidden email]>
> Sent: Tuesday, August 08, 2006 7:58 AM
> Subject: Re: [Dojo-interest] How to hide/show the CheckBox?
>
>
> > all widgets have a .show() and .hide() method which should do what you want.
> >
> > Jason
> >
> > On 8/7/06, Forest Zhu <[hidden email]> wrote:
> >>
> >>
> >> Hi, all.
> >>
> >> I want to hide/show the dojo CheckBox widget programatically. I have tried
> >>
> >> dojo.widget.byId("xxx").domNode.style.diplay = "none";
> >>
> >> dojo.widget.byId("xxx").domNode.style.diplay = "";
> >>
> >> It works on FF, but on IE, the CheckBox picture sometimes does not appear
> >> when setting display = "", but when move the mouse over the position where
> >> the picture should be, the picture reappears.
> >>
> >> Does this an IE bug or a dojo issue? What is the correct way to do this?
> >>
> >> Thanks and best regards.
> >>
> >> _______________________________________________
> >> Dojo FAQ: http://dojo.jot.com/FAQ
> >> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> [hidden email]
> >> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >>
> >>
> >>
> > _______________________________________________
> > Dojo FAQ: http://dojo.jot.com/FAQ
> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> > [hidden email]
> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> [hidden email]
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
[hidden email]
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: How to hide/show the CheckBox?

Forest Zhu
I have just download the latest nightly build and tried again, the same error message. So this must be a new unsolved bug.

F.


----- Original Message -----
From: "Jason Cline" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, August 08, 2006 8:22 AM
Subject: Re: [Dojo-interest] How to hide/show the CheckBox?


> You are right.  It doesn't work.
>
> Wrote this quick little test:
>
> <div widgetId="textcheck" dojoType="Checkbox"></div>
>
> <br>
>
> <div dojoType="Button"
> onClick="alert(dojo.widget.byId('textcheck').isHidden);
> dojo.widget.byId('textcheck').hide();
> alert(dojo.widget.byId('textcheck').isHidden);"
> caption="Debug"></div>
>
>
> Click on the button and the output will be false then true.  So the
> widget thinks that it is hidden but the checkbox is still visible.
> (using an input tag instead of div doesn't have any different effect)
>
> This test was on a nightly build from back in June after 0.3.1 came
> out.  It could be fixed in the latest nightly now that all the widgets
> have been reorganized.
>
> Jason
>
>
> On 8/7/06, Forest Zhu <[hidden email]> wrote:
>> I have tried show() hide(), but encounter a "this.toggleObj is null or not object" error.
>>
>> F.
>>
>> ----- Original Message -----
>> From: "Jason Cline" <[hidden email]>
>> To: <[hidden email]>
>> Sent: Tuesday, August 08, 2006 7:58 AM
>> Subject: Re: [Dojo-interest] How to hide/show the CheckBox?
>>
>>
>> > all widgets have a .show() and .hide() method which should do what you want.
>> >
>> > Jason
>> >
>> > On 8/7/06, Forest Zhu <[hidden email]> wrote:
>> >>
>> >>
>> >> Hi, all.
>> >>
>> >> I want to hide/show the dojo CheckBox widget programatically. I have tried
>> >>
>> >> dojo.widget.byId("xxx").domNode.style.diplay = "none";
>> >>
>> >> dojo.widget.byId("xxx").domNode.style.diplay = "";
>> >>
>> >> It works on FF, but on IE, the CheckBox picture sometimes does not appear
>> >> when setting display = "", but when move the mouse over the position where
>> >> the picture should be, the picture reappears.
>> >>
>> >> Does this an IE bug or a dojo issue? What is the correct way to do this?
>> >>
>> >> Thanks and best regards.
>> >>
>> >> _______________________________________________
>> >> Dojo FAQ: http://dojo.jot.com/FAQ
>> >> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> >> [hidden email]
>> >> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>> >>
>> >>
>> >>
>> > _______________________________________________
>> > Dojo FAQ: http://dojo.jot.com/FAQ
>> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> > [hidden email]
>> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
>> >
>> _______________________________________________
>> Dojo FAQ: http://dojo.jot.com/FAQ
>> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> [hidden email]
>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>
>>
>>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> [hidden email]
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
[hidden email]
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: How to hide/show the CheckBox?

liucougar
file a ticket for this?

and attach the test case please

On 8/8/06, Forest Zhu <[hidden email]> wrote:

> I have just download the latest nightly build and tried again, the same error message. So this must be a new unsolved bug.
>
> F.
>
>
> ----- Original Message -----
> From: "Jason Cline" <[hidden email]>
> To: <[hidden email]>
> Sent: Tuesday, August 08, 2006 8:22 AM
> Subject: Re: [Dojo-interest] How to hide/show the CheckBox?
>
>
> > You are right.  It doesn't work.
> >
> > Wrote this quick little test:
> >
> > <div widgetId="textcheck" dojoType="Checkbox"></div>
> >
> > <br>
> >
> > <div dojoType="Button"
> > onClick="alert(dojo.widget.byId('textcheck').isHidden);
> > dojo.widget.byId('textcheck').hide();
> > alert(dojo.widget.byId('textcheck').isHidden);"
> > caption="Debug"></div>
> >
> >
> > Click on the button and the output will be false then true.  So the
> > widget thinks that it is hidden but the checkbox is still visible.
> > (using an input tag instead of div doesn't have any different effect)
> >
> > This test was on a nightly build from back in June after 0.3.1 came
> > out.  It could be fixed in the latest nightly now that all the widgets
> > have been reorganized.
> >
> > Jason
> >
> >
> > On 8/7/06, Forest Zhu <[hidden email]> wrote:
> >> I have tried show() hide(), but encounter a "this.toggleObj is null or not object" error.
> >>
> >> F.
> >>
> >> ----- Original Message -----
> >> From: "Jason Cline" <[hidden email]>
> >> To: <[hidden email]>
> >> Sent: Tuesday, August 08, 2006 7:58 AM
> >> Subject: Re: [Dojo-interest] How to hide/show the CheckBox?
> >>
> >>
> >> > all widgets have a .show() and .hide() method which should do what you want.
> >> >
> >> > Jason
> >> >
> >> > On 8/7/06, Forest Zhu <[hidden email]> wrote:
> >> >>
> >> >>
> >> >> Hi, all.
> >> >>
> >> >> I want to hide/show the dojo CheckBox widget programatically. I have tried
> >> >>
> >> >> dojo.widget.byId("xxx").domNode.style.diplay = "none";
> >> >>
> >> >> dojo.widget.byId("xxx").domNode.style.diplay = "";
> >> >>
> >> >> It works on FF, but on IE, the CheckBox picture sometimes does not appear
> >> >> when setting display = "", but when move the mouse over the position where
> >> >> the picture should be, the picture reappears.
> >> >>
> >> >> Does this an IE bug or a dojo issue? What is the correct way to do this?
> >> >>
> >> >> Thanks and best regards.
> >> >>
> >> >> _______________________________________________
> >> >> Dojo FAQ: http://dojo.jot.com/FAQ
> >> >> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> >> [hidden email]
> >> >> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >> >>
> >> >>
> >> >>
> >> > _______________________________________________
> >> > Dojo FAQ: http://dojo.jot.com/FAQ
> >> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> > [hidden email]
> >> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >> >
> >> _______________________________________________
> >> Dojo FAQ: http://dojo.jot.com/FAQ
> >> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> [hidden email]
> >> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >>
> >>
> >>
> > _______________________________________________
> > Dojo FAQ: http://dojo.jot.com/FAQ
> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> > [hidden email]
> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> [hidden email]
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>


--
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
[hidden email]
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: How to hide/show the CheckBox?

Forest Zhu
Ticket #1246 added.


----- Original Message -----
From: "LiuCougar" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, August 08, 2006 9:53 AM
Subject: Re: [Dojo-interest] How to hide/show the CheckBox?


> file a ticket for this?
>
> and attach the test case please
>
> On 8/8/06, Forest Zhu <[hidden email]> wrote:
>> I have just download the latest nightly build and tried again, the same error message. So this must be a new unsolved bug.
>>
>> F.
>>
>>
>> ----- Original Message -----
>> From: "Jason Cline" <[hidden email]>
>> To: <[hidden email]>
>> Sent: Tuesday, August 08, 2006 8:22 AM
>> Subject: Re: [Dojo-interest] How to hide/show the CheckBox?
>>
>>
>> > You are right.  It doesn't work.
>> >
>> > Wrote this quick little test:
>> >
>> > <div widgetId="textcheck" dojoType="Checkbox"></div>
>> >
>> > <br>
>> >
>> > <div dojoType="Button"
>> > onClick="alert(dojo.widget.byId('textcheck').isHidden);
>> > dojo.widget.byId('textcheck').hide();
>> > alert(dojo.widget.byId('textcheck').isHidden);"
>> > caption="Debug"></div>
>> >
>> >
>> > Click on the button and the output will be false then true.  So the
>> > widget thinks that it is hidden but the checkbox is still visible.
>> > (using an input tag instead of div doesn't have any different effect)
>> >
>> > This test was on a nightly build from back in June after 0.3.1 came
>> > out.  It could be fixed in the latest nightly now that all the widgets
>> > have been reorganized.
>> >
>> > Jason
>> >
>> >
>> > On 8/7/06, Forest Zhu <[hidden email]> wrote:
>> >> I have tried show() hide(), but encounter a "this.toggleObj is null or not object" error.
>> >>
>> >> F.
>> >>
>> >> ----- Original Message -----
>> >> From: "Jason Cline" <[hidden email]>
>> >> To: <[hidden email]>
>> >> Sent: Tuesday, August 08, 2006 7:58 AM
>> >> Subject: Re: [Dojo-interest] How to hide/show the CheckBox?
>> >>
>> >>
>> >> > all widgets have a .show() and .hide() method which should do what you want.
>> >> >
>> >> > Jason
>> >> >
>> >> > On 8/7/06, Forest Zhu <[hidden email]> wrote:
>> >> >>
>> >> >>
>> >> >> Hi, all.
>> >> >>
>> >> >> I want to hide/show the dojo CheckBox widget programatically. I have tried
>> >> >>
>> >> >> dojo.widget.byId("xxx").domNode.style.diplay = "none";
>> >> >>
>> >> >> dojo.widget.byId("xxx").domNode.style.diplay = "";
>> >> >>
>> >> >> It works on FF, but on IE, the CheckBox picture sometimes does not appear
>> >> >> when setting display = "", but when move the mouse over the position where
>> >> >> the picture should be, the picture reappears.
>> >> >>
>> >> >> Does this an IE bug or a dojo issue? What is the correct way to do this?
>> >> >>
>> >> >> Thanks and best regards.
>> >> >>
>> >> >> _______________________________________________
>> >> >> Dojo FAQ: http://dojo.jot.com/FAQ
>> >> >> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> >> >> [hidden email]
>> >> >> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>> >> >>
>> >> >>
>> >> >>
>> >> > _______________________________________________
>> >> > Dojo FAQ: http://dojo.jot.com/FAQ
>> >> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> >> > [hidden email]
>> >> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
>> >> >
>> >> _______________________________________________
>> >> Dojo FAQ: http://dojo.jot.com/FAQ
>> >> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> >> [hidden email]
>> >> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>> >>
>> >>
>> >>
>> > _______________________________________________
>> > Dojo FAQ: http://dojo.jot.com/FAQ
>> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> > [hidden email]
>> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
>> >
>> _______________________________________________
>> Dojo FAQ: http://dojo.jot.com/FAQ
>> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> [hidden email]
>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>
>>
>>
>
>
> --
> "People's characters are strengthened through struggle against
> difficulties; they are weakened by comfort."
> - Old Chinese adage
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> [hidden email]
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
[hidden email]
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|

Re: How to hide/show the CheckBox?

sanket1789
I am using dojo version 1.8, this issue is still reproducible for IE9
Reply | Threaded
Open this post in threaded view
|

Re: How to hide/show the CheckBox?

Kitson Kelly
I highly doubt this defect from 6 years ago you are still experiencing.  It is likely something else going on.

You should provide a working example, like on JSFiddle.net, demonstrating the issue.

On 11 February 2013 11:50, sanket1789 <[hidden email]> wrote:
I am using dojo version 1.8, this issue is still reproducible for IE9


________________________________________________________
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest