jmimi | 1 Apr 03:00 2011
Picon

SEO friendly url in DataGrid pagination

Hi
I have paginated datagrid. If I go to page 3 for example , can I use its
specific url to access it directly? I it possible?
Thanks

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/SEO-friendly-url-in-DataGrid-pagination-tp2761385p2761385.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

Rob Gillan | 1 Apr 03:45 2011

dijit.form.SimpleTextarea placeHolder?

Hi,

Programmatically creating a dijit.form.SimpleTextarea using 1.6.  The  
placeHolder does not show up for some reason.

Creation:
var inp = new dijit.form.SimpleTextarea(cellparams);

where cellparams:
{id:"library_search_keywords", name:"document_keywords",  
style:"width:auto;", placeHolder:"keywords", maxLength:"255",  
cols:"30", rows:"2"}

We've tested with Chrome and Firefox with the same result.  Any ideas  
greatly appreciated,

Cheers
Rob
_______________________________________________
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

Kenneth G. Franqueiro | 1 Apr 03:49 2011

Re: dijit.form.SimpleTextarea placeHolder?

This is a known issue, due to the fact that the Textarea widgets are 
currently a single node and thus there's nothing to really properly 
position the placeHolder node.  From what I understand, Bill gave it a 
few tries but couldn't come up with something yet that didn't face some 
sort of regression.

http://bugs.dojotoolkit.org/ticket/11145

--Ken

On 3/31/2011 9:45 PM, Rob Gillan wrote:
> Hi,
>
> Programmatically creating a dijit.form.SimpleTextarea using 1.6.  The
> placeHolder does not show up for some reason.
>
> Creation:
> var inp = new dijit.form.SimpleTextarea(cellparams);
>
> where cellparams:
> {id:"library_search_keywords", name:"document_keywords",
> style:"width:auto;", placeHolder:"keywords", maxLength:"255",
> cols:"30", rows:"2"}
>
> We've tested with Chrome and Firefox with the same result.  Any ideas
> greatly appreciated,
>
> Cheers
> Rob
> _______________________________________________
(Continue reading)

Rob Gillan | 1 Apr 03:51 2011

Re: dijit.form.SimpleTextarea placeHolder?

Ken,

Thanks, my bad for not checking the list first.

Cheers
Rob
On 01/04/2011, at 12:49 PM, Kenneth G. Franqueiro wrote:

> This is a known issue, due to the fact that the Textarea widgets are
> currently a single node and thus there's nothing to really properly
> position the placeHolder node.  From what I understand, Bill gave it a
> few tries but couldn't come up with something yet that didn't face  
> some
> sort of regression.
>
> http://bugs.dojotoolkit.org/ticket/11145
>
> --Ken
>
> On 3/31/2011 9:45 PM, Rob Gillan wrote:
>> Hi,
>>
>> Programmatically creating a dijit.form.SimpleTextarea using 1.6.  The
>> placeHolder does not show up for some reason.
>>
>> Creation:
>> var inp = new dijit.form.SimpleTextarea(cellparams);
>>
>> where cellparams:
>> {id:"library_search_keywords", name:"document_keywords",
(Continue reading)

Mark Easton | 1 Apr 05:26 2011
Picon

dojo.position - Possible Bug in 1.6 on iPhone 2g Safari

Hi

I believe there is a bug in the dojo.position method for iPhone 2G Safari.
Uncompressed dojo.js file line 6408 reads:

ret = node.getBoundingClientRect();

Safari on the 2G does not support the getBoundingClientRect so falls over when this is called.

To get around this I wrote the following code:

var ret;
if (node.getBoundingClientRect )
    ret = node.getBoundingClientRect()
else
{
    var element = node;
    var coords = { x: 0, y: 0, width: element.offsetWidth, height:element.offsetHeight };
    while (element) {
        coords.x += element.offsetLeft;
        coords.y += element.offsetTop;
        element = element.offsetParent;
     }
     ret =  {left:coords.x, right:coords.x + coords.width,top:coords.y,bottom:coords.y+coords.height};
}

Am sure this is not totally robust but is certainly solving the problem on my phone
             
This may be related to bug 10724

Regards

Mark Easton
Core Technology Ltd

_______________________________________________
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
Ali Gangji | 1 Apr 05:58 2011
Picon

Re: (no subject)

I can't speak to the intentions of those who wrote the stores available in Dojo, but it seems to me that functions like getIdentity should not require the item to be in the store. In this case the grid's onDelete handler will be executed whether the item is removed through the grid or by some other means. It needs to still be able to get information about the item. This is perhaps why functions like getValue take the whole item as a parameter and not just an id. It also enables you to call these functions on items before they are put in to the store.

On Thu, Mar 31, 2011 at 3:42 AM, Dave Kelsey <d_kelsey <at> uk.ibm.com> wrote:

I have been trying to implement my own datastore for use with the Datagrid.
My implementation of "deleteItem" deletes the item from my local store,
then calls onDelete. The problem I see is that the datagrid tries to invoke
another store call for the item just deleted, in my case it invokes
getIndentity(item). As my item has been deleted, this throws an exception
to say the item is not valid (as it has been deleted from the store), Other
stores in Dojo (but not all) don't bother to check isItem for a getIdentity
call so don't experience the same problem.

I was wondering if someone could clarify the deleteItem contract as well as
the onDelete notification regarding whether other calls to the same item
during an onDelete notification should be honoured or not.

Regards
Dave



_______________________________________________
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



--
Ali Gangji
_______________________________________________
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
Daniele Leorsini | 1 Apr 10:29 2011
Picon

Custom build djconfig and dojo 1.6

Hi,
i'm using custom build and i'm trying to upgrade my webapp from dojop 1.5 to new dojo 1.6
On my profile, i embedded the djConfig parameter on command line, but if i replace it with data-dojo-config on new version it doesn't work

sh build.sh profile=myprofile mini=true copyTests=off localeList=it-it optimize="shrinksafe,comments" layerOptimize="shrinksafe,comments" action="clean,release" data-dojo-config="isDebug:false,parseOnLoad:true,locale:'it-it'" version=1.6

there is any solution?

Thanks in advance
Daniele

--

Daniele Leorsini
Web development

www.leorsini.it
via tiberina sud 7/C
Ponte S. Giovanni
Perugia 06132 Italy
Email: daniele <at> leorsini.it
http://www.linkedin.com/in/leorsini




_______________________________________________
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
Dave Kelsey | 1 Apr 10:56 2011
Picon

Re: Datastore Notification API OnDelete Query

Many thanks for the clarification Jared, is GetIndentity the only one with
this caveat ?

regards
Dave Kelsey

> There's an explicit caveat that getIdentity should still work for a
> deleted item specifically so widgets that use identity to map items
> can use it to clear caches, etc.  All dojo provided stores that
> implement notification work that way.
>
> Sincerely,
> -- Jared Jurkiewicz
>
> On Thu, Mar 31, 2011 at 7:13 AM, Dave Kelsey <d_kelsey <at> uk.ibm.com> wrote:
> >
> > (Appologies forgot to include a subject header)
> >
> > I have been trying to implement my own datastore for use with the
Datagrid.
> > My implementation of "deleteItem" deletes the item from my local store,
> > then calls onDelete. The problem I see is that the datagrid tries to
invoke
> > another store call for the item just deleted, in my case it invokes
> > getIndentity(item). As my item has been deleted, this throws an
exception
> > to say the item is not valid (as it has been deleted from the store),
Other
> > stores in Dojo (but not all) don't bother to check isItem for a
getIdentity
> > call so don't experience the same problem.
> >
> > I was wondering if someone could clarify the deleteItem contract as
well as
> > the onDelete notification regarding whether other calls to the same
item
> > during an onDelete notification should be honoured or not.
> >
> > Regards
> > Dave
> >

_______________________________________________
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

Rio | 1 Apr 12:53 2011
Picon

Page Reflow on IE 8 with Dojo 1.6

Hello 
I have a large DOM with a lot of dojo widgets (eg. table with 100 row, 30
cols, with TextBox).

On FF 4 the complete work (loading, table creating by inline js,  parsing
the tree) is finished in 3 sec which is ok for me.

On IE 8 it takes 8.5 sec.
The reason is, according to the dynaTrace Timeline, the dozents of 
"setTimeout trigger by load event on " happen, after the parser has finished
and the page should be displayed completely. Each event seems to force a
page reflow (calculating generic layout).

I can create a simple example html file where I can see that IE touches the
lage table cell by cell or line by line and repaints.

My question then is:
Why does Dojo use the setTimeout trigger in this situation?
For me it seems that Dojo is moving a pice of work to a later point in time,
which should be done imediately, cause it leeds to a reflow.

Where exactly does his happen?
Did I miss some configuration to avoid this situation?

PS:
This is not a problem of the parser. (see
http://dojo-toolkit.33424.n3.nabble.com/Dijit-parser-performance-under-Internet-Explorer-td2604888.html)
I could deliver a simple example or the screenshots of dynaTrace Timeline.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Page-Reflow-on-IE-8-with-Dojo-1-6-tp2762891p2762891.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

Evan | 1 Apr 13:37 2011
Picon

Re: DropDownButton in the grid - problem with opening menu!

Hi Pawel,

Your way of adding widget to Grid is correct - by using formatter. 

Selecting a row by clicking anywhere within the row was supposed to be a
consistent behavior across various scenario, e.g.
-
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_data_grid_edit_dijit.html
-
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_grid_selectors.html
-
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_edit_keyNav.html

Please feel free to raise ticket on http://bugs.dojotoolkit.org/ if this
break any common scenario.

Regarding the DropDownButton, isn't it an expected behavior? - the dropdown
menu is closed once blurred, e.g. similar as the 'Type' column in
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_data_grid_edit_dijit.html

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/DropDownButton-in-the-grid-problem-with-opening-menu-tp2755801p2763001.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