SilverbackReef | 1 Aug 2010 01:30
Favicon

Dialogs and Forms


<noob>
Hi Folks,

I've got an app that will need lots of Dialog+Forms in a one-page app.  I'm
doing it all programmatically mostly because I'm more comfortable that way
and I like having everything in one place.

At this point, I've figured out all the code to make Dialog+Form work
correctly/look nice/i18n/validate/etc. and can move on to implementing a
bunch of them.  Before I do, I'm uncertain that I'm doing things the "right"
way:  

1) It looks like there's some code here that I can factor out to a
"DialogForm" class that will serve as a parent to a class defining the
specifics of each Dialog I need in that app.  Does these seem like an
appropriate approach?

2) A quick look at the Dialog source shows _FormMixin as part of
_DialogBase.  Does this imply that Dialogs should be able to behave like a
form without a contained Form?  My experiment with removing my contained
Form would say no:  I lost the Enter key handling and my onSubmit didn't
fire.

Thanks for any suggestions.  I think I've got a grip on things but I can't
shake the suspicion that I'm 'doing it wrong'...

-M

--

-- 
(Continue reading)

David Ge | 1 Aug 2010 02:26
Picon

Re: claroGrid.css missing tree grid definitions

Thanks,

Just added http://bugs.dojotoolkit.org/ticket/11516

David Ge

On Thursday, July 29, 2010 19:56:43 you wrote:


>
> Nice.
>
> Please file this as a .patch on bugs.dojotoolkit.org (signup at
> my.dojofoundation.org if you haven't before) and we'll get someone to
> merge the changes back into the repo ... CLA/tracking/etc.
>
> ~phiggins
>
>
>
> David Ge wrote:
> > I added following definition to claroGrid.css, now test_treegrid.html
would

> > work with claro theme.
> >
> > The values are taken from claro/tree.css and tundraGrid.css.
> >
> > /* Tree Grid */
> > .claro .dojoxGridExpando {
> > float: left;
> > height: 16px;
> > width: 16px;
> > text-align: center;
> > margin-top: -3px;
> > }
> > .claro .dojoxGridCell {
> > border-style: dotted
> > }
> > .claro .dojoxGridExpandoCell {
> > padding-top: 5px;
> > }
> > .claro .dojoxGridExpandoNode {
> > background-image:
> > url('../../../dijit/themes/claro/images/treeExpandImages.png');
> > width: 16px;
> > height: 16px;
> > background-position: 1px 0px;
> > }
> > .claro .dojoxGridExpandoOpened .dojoxGridExpandoNode {
> > background-position: -35px 0px
> > }
> > .claro .dojoxGridExpandoLoading .dojoxGridExpandoNode {
> > background-image:
> > url('../../../dijit/themes/claro/images/treeExpand_loading.gif');
> > }
> > .claro .dojoxGridTreeModel .dojoxGridNoChildren .dojoxGridExpando {
> > visibility: visible !important;
> > }
> > .claro .dojoxGridTreeModel .dojoxGridNoChildren .dojoxGridExpandoNode {
> > background-image: none;
> > }
> > .claro .dojoxGridExpandoNodeInner {
> > visibility: hidden;
> > }
> > .dijit_a11y .dojoxGridExpandoNodeInner {
> > visibility: visible;
> > }
> >
> > .claro .dojoxGridSummaryRow .dojoxGridCell {
> > border-top-color: #999;
> > border-top-style: solid;
> > }
> > .claro .dojoxGridSubRowAlt {
> > background-color: #F8F8F8;
> > }
> > .claro .dojoxGridRowOdd .dojoxGridSubRowAlt {
> > background-color: #EDEFF3;
> > }
> >
> >  
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> [hidden email]
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
> ______________________________________
> View message <at> http://dojo-toolkit.33424.n3.nabble.com/TreeGrid-didn-
tp995212p1005191.html
>
> To unsubscribe from Re: claroGrid.css missing tree grid definitions, click
http://dojo-
<Link Removed>
>

View this message in context: Re: claroGrid.css missing tree grid definitions
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Sebastian Barszczewski | 1 Aug 2010 12:30
Picon

Re: fetchProperties mixin on ComboBox doesnt work properly??

  Hi,

i found my mistake. I specified the fetchProperties wrong:

this.fetchProperties = {queryOptions:{deep:true}};

works.

Regards,
Sebastian

Am 31.07.2010 21:01, schrieb Sebastian Barszczewski:
>    Hi,
>
> i am trying to extend FilteringSelect. In my new 'class'  i specified
> the fetchProperties object in the postCreate method like so:
>
> postCreate: function(){
>       this.fetchProperties = {deep:false};
>       this.inherited(arguments);
>    }
>
> When i realized that this doesnt take effect i opened the ComboBox.js
> source file and debuged the _startSearch method of dijit.form.ComboBoxMixin.
>
> After the part where the fetch object is created dojo.mixin(fetch,
> _this.fetchProperties) is called (line 579 ComboBox.js). It seems that
> this mixin operation doesnt work. When i use
> console.log(_this.fetchProperties) to output the state of the object i
> can see my specified fetchProperties object.
>
> I am new to Dojo so my assumtions are probably wrong. Any help would be
> appreciated. It is important to me to prevent a deep fetch from the
> store object. I am using Dojo 1.4.3
>
> For now i dont see any other possibility than overriding
> the whole startSearch method.
>
> Kind regards,
> Sebastian
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest <at> mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

vivek40 | 1 Aug 2010 13:14
Picon

dojo and json


hi so I have a json file and i have used it to populate a select list which
on change calls a function , which in turn is supposed to select the value
of another attribute for the item selected, can someone please tell me how
do i pass the item to that function which is being called ... the json file
and the respective html tags are here http://pastebin.com/Hwb8m2nc   .
--

-- 
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojo-and-json-tp1013117p1013117.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

ALien_13 | 1 Aug 2010 13:23
Picon
Favicon

Re: Odd behavior from validation textbox


In a very simple word, the 3rd textbox start to show error msg when u typed
1st numeric character(this is because the length required is 10) while 1st
and 2nd the textbox is not showing the error msg until you typed in non
digit character. If you jz typing in 5 digit and focus to other textbox, it
will jz highlighted in yellow.
--

-- 
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Odd-behavior-from-validation-textbox-tp1003261p1013131.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

ALien_13 | 1 Aug 2010 13:26
Picon
Favicon

Re: Odd behavior from validation textbox


to get the result as i mentioned, I will suggest tester jz typed only digit
character inside.

1st and 2nd textbox will react as below:
No error msg is shown until u exceed the 10 digit character.

3rd textbox will react as below:
the error msg start showing at the 1st digit character until the 10 digit
character is typed in.
--

-- 
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Odd-behavior-from-validation-textbox-tp1003261p1013134.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Lee Jenkins | 1 Aug 2010 15:06

ItemFileReadStore Hierarchical Items


I've been searching about and have not found any examples.  The docs say that 
ItemFileReadStore supports hierarchical data, but what is the syntax for 
retrieving that kind of data using getValue?.  Is dot notation used or am I 
missing something?

Thanks,

--
Warm Regards,

Lee

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Serg Gulko | 1 Aug 2010 16:24
Picon

Re: How disable certain MenuItem's depends on DataGrid data?


Hello Evan! 

Thanks for your answer. This is a way which I using now. His biggest
disadvantage is that application need know much more details about menu
items. From my point of view better keep logic about enabling/disabling
according the selected row closer to certain item but I still did not find
right solution to do this with dojo.

Serg Gulko
--

-- 
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/How-disable-certain-MenuItem-s-depends-on-DataGrid-data-tp999801p1013406.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Dan Lee | 1 Aug 2010 21:11
Picon
Gravatar

Re: Odd behavior from validation textbox

It looks like a typo in your regExp attribute. You missed a backslash?

regExp="[\d]{10}"

should be

regExp="[\\d]{10}"

Dan


On Sun, Aug 1, 2010 at 7:26 AM, ALien_13 <alien_ck_13 <at> hotmail.com> wrote:

to get the result as i mentioned, I will suggest tester jz typed only digit
character inside.

1st and 2nd textbox will react as below:
No error msg is shown until u exceed the 10 digit character.

3rd textbox will react as below:
the error msg start showing at the 1st digit character until the 10 digit
character is typed in.
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Odd-behavior-from-validation-textbox-tp1003261p1013134.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
ALien_13 | 1 Aug 2010 21:19
Picon
Favicon

Re: Odd behavior from validation textbox


Inside HTML it doesn't required a double slash but javascript. This also can
be verify by the 2nd textbox that i do in programmatically way. there is jz
one line different and gave the different result. This gave me a problem
when some of the validation textbox is do in declarative some is
programmatically. Both of then react different from user input.

var tb1 = new dijit.form.ValidationTextBox({
                    id:"tb1",
                    regExp:"[\\d]{10}"
                    },"tb1"); 

var tb2 = new dijit.form.ValidationTextBox({
                    id:"tb2",
                    },"tb2");
     tb2.regExp = "[\\d]{10}";
--

-- 
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Odd-behavior-from-validation-textbox-tp1003261p1013852.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


Gmane