Zach Clark | 1 Aug 2011 03:55
Picon
Favicon

Delete item from JsonRestStore without making it dirty

I have a need to delete an item from a JsonRestStore without making it dirty and making a delete xhr request on the next save().  Is there any way to do this?

 

My reason for this is that I have 1 client make a store.deleteItem(…) call, which makes a delete request on .save(), the server deletes the item from the database and tells all clients to remove this item from their local stores.  When these clients try to remove the item from their local stores via deleteItem, they mark that item as dirty so that each client will attempt to make an xhrDelete request on the already deleted item on their next save. This could cause problems down the track.

 

-Zach

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

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Yiqin Yu | 1 Aug 2011 05:10
Picon

Re: Set preload false not working when programmatically creating a content pane as a hidden child of a tab container

Hi, Bill,

Thanks for your code! It runs well in my test case.
I also create a ticket for this problem:
http://bugs.dojotoolkit.org/ticket/13552
Thanks!

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Set-preload-false-not-working-when-programmatically-creating-a-content-pane-as-a-hidden-child-of-a-tr-tp3196970p3214797.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Yiqin Yu | 1 Aug 2011 08:33
Picon

Re: Set preload false not working when programmatically creating a content pane as a hidden child of a tab container

One place. 

It would be better to use con.closeChild(child) instead of
con.removeChild(child).

removeChild just removes the child widget instance from the tab container
but does not destroy it. 

If the child content pane contains other widgets with a specified id, and
this content pane is attached to the tab container again when clicking the
button, in certain user click sequence, there will be an error: Error
parsing in _ContentSetter#Setter_Test_1_3 Error: Tried to register widget
with id==content but that id is already registered.
It is because the widget in the child content pane is not destroyed by
con.removeChild(child).

It can be tested in the following test case (modified from the previous
one):
http://dojo-toolkit.33424.n3.nabble.com/file/n3215176/test0727.html
test0727.html 
http://dojo-toolkit.33424.n3.nabble.com/file/n3215176/test0727-2.html
test0727-2.html 

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Set-preload-false-not-working-when-programmatically-creating-a-content-pane-as-a-hidden-child-of-a-tr-tp3196970p3215176.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Tom Elliott | 1 Aug 2011 08:34
Favicon
Gravatar

New hardware for trac.dojotoolkit - I love you

Have just browsed trac for the first time in a while.


Whoever moved it to new hardware - I love you! If you're ever in London (or Palo Alto during the next two weeks) let me know and I'll buy you a beer.

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

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Bill Keese | 1 Aug 2011 10:09
Favicon
Gravatar

Re: Set preload false not working when programmatically creating a content pane as a hidden child of a tab container

Ah right, after the removeChild(child) you need to call child.destroyRecursive().

On Mon, Aug 1, 2011 at 3:33 PM, Yiqin Yu <yyqxiaoyu <at> gmail.com> wrote:
One place.

It would be better to use con.closeChild(child) instead of
con.removeChild(child).

removeChild just removes the child widget instance from the tab container
but does not destroy it.

If the child content pane contains other widgets with a specified id, and
this content pane is attached to the tab container again when clicking the
button, in certain user click sequence, there will be an error: Error
parsing in _ContentSetter#Setter_Test_1_3 Error: Tried to register widget
with id==content but that id is already registered.
It is because the widget in the child content pane is not destroyed by
con.removeChild(child).

It can be tested in the following test case (modified from the previous
one):
http://dojo-toolkit.33424.n3.nabble.com/file/n3215176/test0727.html
test0727.html
http://dojo-toolkit.33424.n3.nabble.com/file/n3215176/test0727-2.html
test0727-2.html

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Set-preload-false-not-working-when-programmatically-creating-a-content-pane-as-a-hidden-child-of-a-tr-tp3196970p3215176.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

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

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
David Raab | 1 Aug 2011 12:16
Picon

dojo.query in Online API

Hi,

I do not know whom should I contact, but I think a responsible person
will read this.

In the Online API browser, the documentation to dojo.query() is just an
empty page: http://dojotoolkit.org/api/dojo/query

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

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

vtsuper | 1 Aug 2011 12:21
Picon

cannot totally remove contentpane from borderContainer

I try to remove a contentpane in borderContainer by the follow code
removeFrm:function(){
    	console.log('before',this.frmPane.getDescendants());
    	this.outerBC.removeChild(this.frmPane);
        this.frmPane.destroyRecursive();
        console.log('after',this.frmPane.getDescendants());
        console.log(this.frmPane);
    },

the result in firebug like this
http://dojo-toolkit.33424.n3.nabble.com/file/n3215610/log.gif 
http://dojo-toolkit.33424.n3.nabble.com/file/n3215610/log2.gif 

I suppose this.frmPane will be totally removed and
this.frmPane.getDescendants() will be return nothing.
but why I can see both of them are still here?  

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/cannot-totally-remove-contentpane-from-borderContainer-tp3215610p3215610.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Ralf Hecktor | 1 Aug 2011 15:00
Picon
Picon

dojo mobile bug? image in tabbar breaks when content is scrolled

I'm trying to build a Dojo Mobile App at the moment and got a little problem on iOS which I couldn't figure out
how to solve. I need a tabbar at the bottom of the application. I positioned it and everything works fine
until I start to scroll the content above. The same also happens with demo application from the tutorials
(TweetView). Does  anybody has any idea how to solve this? Is there a workaround? Can maybe somebody tell
me, whether it will be fixed in 1.7? At the moment I'm using 1.6 and it works fine on Android and also on my
desktop webkit browser. The error only occurs on iOS. Here some screenshots:

Before scrolling:

http://i.stack.imgur.com/uoOqT.png

After scrolling:

http://i.stack.imgur.com/h0XAs.png

If anybody has any advice I would be thankful.

Thanks, Ralf
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Felix E. Klee | 1 Aug 2011 15:14
Picon
Gravatar

dojoConfig + scopeMap: how?

Seems like the following documentation is outdated:

http://dojotoolkit.org/reference-guide/quickstart/multiversion.html

It mentions "djConfig", but that is deprecated:

<url:http://dojotoolkit.org/reference-guide/releasenotes/1.6.html#djconf
ig-deprecated>

However, when specifying "dojoConfig", then the "scopeMap" is not
applied. It looks like "dojoConfig" is not recognized at all.

So what to do?

Also: Where do I find exhaustive documentation concerning all the
"dojoConfig" parameters and their default values?

--

-- 
Dipl.-Phys. Felix E. Klee
Mobile: +49.174.1386060
Fax: +49.3212.1021049
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Karl Tiedt | 1 Aug 2011 16:12
Picon
Gravatar

Re: dojoConfig + scopeMap: how?

dojoConfig has never existed... the replacement for djConfig would be
dojo-data-config I imagine, the live test cases should be using that
method to confirm it.

-Karl Tiedt
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


Gmane