Jared Jurkiewicz | 1 Oct 05:41 2007
Picon

Re: 0.9 ItemFileWriteStore converts object properties into arrays

   The simple answer to the concern (And sorry for the brevity, I'm
back from a long trip and it's very late for me),  Is that dojo.data
is an API with a defined interface for accessing the attributes of an
item regardless of how the service behind dojo.data returned the data.
 Therefore, internal structure the store uses to represent the item
intended to be opaque by design.  You shouldn't have to know or care
about how the store keeps data internally.  Stick to the API got
getting and setting values and it shouldn't matter
(store.getValue(item, attribute)).

  In the case of ItemFileStore, Sam is right, it normalizes the
structure so accessing values for the store is simpler.

Sincerely,
-- Jared Jurkiewicz

On 9/24/07, rishson <rishson <at> gmail.com> wrote:
>
> Thanks for the reply Sam.
> I should have been clearer in my post as I am using the ItemFileWriteStore
> as an API implementation of dojo.data.
> myItemFileWriteStore.getItem(...) might return the selected item in its
> original format ( not used that function to  be honest), however, if you use
> myItemFileWriteStore.fetch(...) you get the item(s) from the store that
> match your fetch criteria, but reformatted as I mentioned previously.
>
> My issue with the store implementation is that the items you place in the
> store are mutated (see original post). This forces client code to remember
> if an item has come from a store and so is a poor separation of concerns. I
> think that if a store implementation needs to do property conversion on an
(Continue reading)

Jared Jurkiewicz | 1 Oct 16:40 2007
Picon

Re: 0.9 ItemFileWriteStore converts object properties into arrays

And for reference, the why the internals were intended to be opaque
and always accessed through store functions is:

http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/what-dojo-data/dojo-data-design

On 9/30/07, Jared Jurkiewicz <jared.jurkiewicz <at> gmail.com> wrote:
>    The simple answer to the concern (And sorry for the brevity, I'm
> back from a long trip and it's very late for me),  Is that dojo.data
> is an API with a defined interface for accessing the attributes of an
> item regardless of how the service behind dojo.data returned the data.
>  Therefore, internal structure the store uses to represent the item
> intended to be opaque by design.  You shouldn't have to know or care
> about how the store keeps data internally.  Stick to the API got
> getting and setting values and it shouldn't matter
> (store.getValue(item, attribute)).
>
>   In the case of ItemFileStore, Sam is right, it normalizes the
> structure so accessing values for the store is simpler.
>
> Sincerely,
> -- Jared Jurkiewicz
>
>
>
>
> On 9/24/07, rishson <rishson <at> gmail.com> wrote:
> >
> > Thanks for the reply Sam.
> > I should have been clearer in my post as I am using the ItemFileWriteStore
> > as an API implementation of dojo.data.
(Continue reading)

sophia2.testweb2 | 1 Oct 17:21 2007
Picon

(pas d'objet)


de : dojo-interest <at> dojotoolkit.org
envoyé : 30/09/07 22:52
a :  dojo-interest <at> dojotoolkit.org
objet : Re: [Dojo-interest] 0.4/0.9: ComboBox DataURL, what now?

there is a dojo.data store that can now also work with your 100.000+ records :-)
I just wrote a basic store that dynamically loads the data from the server, see here
http://trac.dojotoolkit.org/ticket/4597
may be
http://trac.dojotoolkit.org/ticket/4596 is interesting too

cu

Wolfram

On 9/28/07, Jacek Pawlowski <jacek <at> myecho.ca> wrote:
Hi,
I agree with Jeff - lack of server side query limits the combobox.  I have 100,000+ records to query.
I just can't migrate to 0.9 without this feature.
-- jacek


Dustin Machi wrote:
That was some pretty horrible english on my part...it must be too early.
Anyway, I understand that there is a forum topic discussing this, so
you might want to search the forums on the dojo website. In general

however, a store can retrieve all your data at once and it keeps it in a
n in memory data structure (for itemFileReadStore) which you can query
at your leisure. I'm not personally sure whether the ability to search

directly against the server still exists or not, but the larger idea
would be that it is actually the store that you want to talk to the
server and so you can write or extend a store to be specific to your
application.


Anyway, I do recommend searching the forum for this as there is probably
more info for you there than I can give right now, plus i'm going to be
gone for the day so this will be the last email from me on this subject

at least until tomorrow :)

Dustin



Jeffrey Porter wrote:
Hi Dustin,

I think I understand what you are saying, and I can populate a ComboBox from a URL.
But...
This only happens once, not each time I type in the comboBox.

Presviously I had a ComboBox being populated via the dataurl...

dataUrl="http://<%=Constants.HOSTING_IP%>/feederServlet?search=%{searchString}"

So that the '{searchString}' would be passed to the servlet, allowing me to query my database.


Any idea how to do this in 0.9 ?

Jeff Porter


Jeffrey Porter Bsc (hons)
Programming Lead
IARC
Warwick Manufacturing Group
University of Warwick
Gibbet Hill Road
Coventry CV4 7AL
Tel +44(0)24 76575929

Fax +44(0)24 76528961

The contents of this e-mail and any attachments are the property of Warwick Manufacturing Group and are intended solely for the named recipient(s). The contents may be confidential and should not be communicated to anyone else without our express consent. If you have received this in error please notify the sender and delete it from your system.




-----Original Message-----
From: dojo-interest-bounces <at> dojotoolkit.org [
mailto:dojo-interest-bounces <at> dojotoolkit.org] On Behalf Of Dustin Machi
Sent: 28 September 2007 13:49

To: dojo-interest <at> dojotoolkit.org
Subject: Re: [Dojo-interest] 0.4/0.9: ComboBox DataURL, what now?

I believe the store you give you combobox accepts are url from which to
populate itself. See

http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_ComboBox.html


Dustin

Jeffrey Porter wrote:
/home/dmachi/work/sitepen/training/labs



Since DataUrl has been removed from ComboBox, what am I meant to use
now?



I've looked into "dijit.form.FilteringSelect", but this seems to only

request the data once.



Any idea's people?



Jeff Porter





Jeffrey Porter Bsc (hons)

Programming Lead

IARC

Warwick Manufacturing Group


University of Warwick

Gibbet Hill Road

Coventry CV4 7AL

Tel +44(0)24 76575929

Fax +44(0)24 76528961



The contents of this e-mail and any attachments are the property of
Warwick Manufacturing Group and are intended solely for the named

recipient(s). The contents may be confidential and should not be
communicated to anyone else without our express consent. If you have
received this in error please notify the sender and delete it from your
system.









------------------------------------------------------------------------

_______________________________________________
FAQ:
http://dojotoolkit.org/support/faq

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


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



_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest




--
cu

Wolfram

test test test + modif


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Jared Jurkiewicz | 1 Oct 18:16 2007
Picon

Re: 0.4/0.9: ComboBox DataURL, what now?

That store doesn't completely implement the Read API of dojo.data, though.  To be considered for commit into dojo/dojox, it would require the complete Read API at minimum, and Unit tests.  If you're willing to finish the Read implementation and provide some basic UT, that would be awesome.

Sincerely,
-- Jared Jurkiewicz

On 9/30/07, Wolfram Kriesing <wolfram.kriesing <at> gmail.com> wrote:
there is a dojo.data store that can now also work with your 100.000+ records :-)
I just wrote a basic store that dynamically loads the data from the server, see here
http://trac.dojotoolkit.org/ticket/4597
may be
http://trac.dojotoolkit.org/ticket/4596 is interesting too

cu

Wolfram


On 9/28/07, Jacek Pawlowski <jacek <at> myecho.ca> wrote:
Hi,
I agree with Jeff - lack of server side query limits the combobox.  I have 100,000+ records to query.
I just can't migrate to 0.9 without this feature.
-- jacek


Dustin Machi wrote:
That was some pretty horrible english on my part...it must be too early.
Anyway, I understand that there is a forum topic discussing this, so
you might want to search the forums on the dojo website. In general

however, a store can retrieve all your data at once and it keeps it in a
n in memory data structure (for itemFileReadStore) which you can query
at your leisure. I'm not personally sure whether the ability to search

directly against the server still exists or not, but the larger idea
would be that it is actually the store that you want to talk to the
server and so you can write or extend a store to be specific to your
application.


Anyway, I do recommend searching the forum for this as there is probably
more info for you there than I can give right now, plus i'm going to be
gone for the day so this will be the last email from me on this subject

at least until tomorrow :)

Dustin



Jeffrey Porter wrote:
Hi Dustin,

I think I understand what you are saying, and I can populate a ComboBox from a URL.
But...
This only happens once, not each time I type in the comboBox.

Presviously I had a ComboBox being populated via the dataurl...

dataUrl="http://<%=Constants.HOSTING_IP%>/feederServlet?search=%{searchString}"

So that the '{searchString}' would be passed to the servlet, allowing me to query my database.

Any idea how to do this in 0.9 ?

Jeff Porter


Jeffrey Porter Bsc (hons)
Programming Lead
IARC
Warwick Manufacturing Group
University of Warwick
Gibbet Hill Road
Coventry CV4 7AL
Tel +44(0)24 76575929

Fax +44(0)24 76528961

The contents of this e-mail and any attachments are the property of Warwick Manufacturing Group and are intended solely for the named recipient(s). The contents may be confidential and should not be communicated to anyone else without our express consent. If you have received this in error please notify the sender and delete it from your system.




-----Original Message-----
From: dojo-interest-bounces <at> dojotoolkit.org [
mailto:dojo-interest-bounces <at> dojotoolkit.org] On Behalf Of Dustin Machi
Sent: 28 September 2007 13:49

To: dojo-interest <at> dojotoolkit.org Subject: Re: [Dojo-interest] 0.4/0.9: ComboBox DataURL, what now? I believe the store you give you combobox accepts are url from which to populate itself. See http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_ComboBox.html
Dustin Jeffrey Porter wrote:
/home/dmachi/work/sitepen/training/labs



Since DataUrl has been removed from ComboBox, what am I meant to use
now?



I've looked into "dijit.form.FilteringSelect", but this seems to only

request the data once.



Any idea's people?



Jeff Porter





Jeffrey Porter Bsc (hons)

Programming Lead

IARC

Warwick Manufacturing Group

University of Warwick

Gibbet Hill Road

Coventry CV4 7AL

Tel +44(0)24 76575929

Fax +44(0)24 76528961



The contents of this e-mail and any attachments are the property of
Warwick Manufacturing Group and are intended solely for the named

recipient(s). The contents may be confidential and should not be
communicated to anyone else without our express consent. If you have
received this in error please notify the sender and delete it from your
system.









------------------------------------------------------------------------

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


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest




--
cu

Wolfram

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Wolfram Kriesing | 1 Oct 18:29 2007
Picon

Re: 0.4/0.9: ComboBox DataURL, what now?

i will do that, implement the full read api.
this was just a first shot so ppl can try  it if they are interested and please also give feedback

cu

wolfram

On 10/1/07, Jared Jurkiewicz <jared.jurkiewicz <at> gmail.com> wrote:
That store doesn't completely implement the Read API of dojo.data, though.  To be considered for commit into dojo/dojox, it would require the complete Read API at minimum, and Unit tests.  If you're willing to finish the Read implementation and provide some basic UT, that would be awesome.

Sincerely,
-- Jared Jurkiewicz


On 9/30/07, Wolfram Kriesing < wolfram.kriesing <at> gmail.com> wrote:
there is a dojo.data store that can now also work with your 100.000+ records :-)
I just wrote a basic store that dynamically loads the data from the server, see here
http://trac.dojotoolkit.org/ticket/4597
may be
http://trac.dojotoolkit.org/ticket/4596 is interesting too

cu

Wolfram


On 9/28/07, Jacek Pawlowski <jacek <at> myecho.ca> wrote:
Hi,
I agree with Jeff - lack of server side query limits the combobox.  I have 100,000+ records to query.
I just can't migrate to 0.9 without this feature.
-- jacek


Dustin Machi wrote:
That was some pretty horrible english on my part...it must be too early.
Anyway, I understand that there is a forum topic discussing this, so
you might want to search the forums on the dojo website. In general


however, a store can retrieve all your data at once and it keeps it in a
n in memory data structure (for itemFileReadStore) which you can query
at your leisure. I'm not personally sure whether the ability to search


directly against the server still exists or not, but the larger idea
would be that it is actually the store that you want to talk to the
server and so you can write or extend a store to be specific to your
application.


Anyway, I do recommend searching the forum for this as there is probably
more info for you there than I can give right now, plus i'm going to be
gone for the day so this will be the last email from me on this subject


at least until tomorrow :)

Dustin



Jeffrey Porter wrote:
Hi Dustin,

I think I understand what you are saying, and I can populate a ComboBox from a URL.
But...
This only happens once, not each time I type in the comboBox.

Presviously I had a ComboBox being populated via the dataurl...


dataUrl="http://<%=Constants.HOSTING_IP%>/feederServlet?search=%{searchString}"

So that the '{searchString}' would be passed to the servlet, allowing me to query my database.

Any idea how to do this in 0.9 ?

Jeff Porter


Jeffrey Porter Bsc (hons)
Programming Lead
IARC
Warwick Manufacturing Group
University of Warwick
Gibbet Hill Road
Coventry CV4 7AL
Tel +44(0)24 76575929


Fax +44(0)24 76528961

The contents of this e-mail and any attachments are the property of Warwick Manufacturing Group and are intended solely for the named recipient(s). The contents may be confidential and should not be communicated to anyone else without our express consent. If you have received this in error please notify the sender and delete it from your system.





-----Original Message-----
From: dojo-interest-bounces <at> dojotoolkit.org [
mailto:dojo-interest-bounces <at> dojotoolkit.org] On Behalf Of Dustin Machi
Sent: 28 September 2007 13:49


To: dojo-interest <at> dojotoolkit.org Subject: Re: [Dojo-interest] 0.4/0.9: ComboBox DataURL, what now? I believe the store you give you combobox accepts are url from which to populate itself. See http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_ComboBox.html

Dustin Jeffrey Porter wrote:
/home/dmachi/work/sitepen/training/labs



Since DataUrl has been removed from ComboBox, what am I meant to use
now?



I've looked into "dijit.form.FilteringSelect", but this seems to only


request the data once.



Any idea's people?



Jeff Porter





Jeffrey Porter Bsc (hons)

Programming Lead

IARC

Warwick Manufacturing Group

University of Warwick

Gibbet Hill Road

Coventry CV4 7AL

Tel +44(0)24 76575929

Fax +44(0)24 76528961



The contents of this e-mail and any attachments are the property of
Warwick Manufacturing Group and are intended solely for the named


recipient(s). The contents may be confidential and should not be
communicated to anyone else without our express consent. If you have
received this in error please notify the sender and delete it from your
system.









------------------------------------------------------------------------

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


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest




--
cu

Wolfram

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest



_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest




--
cu

Wolfram
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest
Jared Jurkiewicz | 1 Oct 18:54 2007
Picon

Re: 0.4/0.9: ComboBox DataURL, what now?

Sweet.  Thanks for impl'ing that.  :-)

Sincerely,
-- Jared Jurkiewicz

On 10/1/07, Wolfram Kriesing < wolfram.kriesing <at> gmail.com> wrote:
i will do that, implement the full read api.
this was just a first shot so ppl can try  it if they are interested and please also give feedback

cu

wolfram


On 10/1/07, Jared Jurkiewicz <jared.jurkiewicz <at> gmail.com> wrote:
That store doesn't completely implement the Read API of dojo.data, though.  To be considered for commit into dojo/dojox, it would require the complete Read API at minimum, and Unit tests.  If you're willing to finish the Read implementation and provide some basic UT, that would be awesome.

Sincerely,
-- Jared Jurkiewicz


On 9/30/07, Wolfram Kriesing < wolfram.kriesing <at> gmail.com> wrote:
there is a dojo.data store that can now also work with your 100.000+ records :-)
I just wrote a basic store that dynamically loads the data from the server, see here
http://trac.dojotoolkit.org/ticket/4597
may be
http://trac.dojotoolkit.org/ticket/4596 is interesting too

cu

Wolfram


On 9/28/07, Jacek Pawlowski <jacek <at> myecho.ca> wrote:
Hi,
I agree with Jeff - lack of server side query limits the combobox.  I have 100,000+ records to query.
I just can't migrate to 0.9 without this feature.
-- jacek


Dustin Machi wrote:
That was some pretty horrible english on my part...it must be too early.
Anyway, I understand that there is a forum topic discussing this, so
you might want to search the forums on the dojo website. In general



however, a store can retrieve all your data at once and it keeps it in a
n in memory data structure (for itemFileReadStore) which you can query
at your leisure. I'm not personally sure whether the ability to search



directly against the server still exists or not, but the larger idea
would be that it is actually the store that you want to talk to the
server and so you can write or extend a store to be specific to your

application.


Anyway, I do recommend searching the forum for this as there is probably
more info for you there than I can give right now, plus i'm going to be
gone for the day so this will be the last email from me on this subject



at least until tomorrow :)

Dustin



Jeffrey Porter wrote:
Hi Dustin,

I think I understand what you are saying, and I can populate a ComboBox from a URL.
But...
This only happens once, not each time I type in the comboBox.

Presviously I had a ComboBox being populated via the dataurl...



dataUrl="http://<%=Constants.HOSTING_IP%>/feederServlet?search=%{searchString}"

So that the '{searchString}' would be passed to the servlet, allowing me to query my database.


Any idea how to do this in 0.9 ?

Jeff Porter


Jeffrey Porter Bsc (hons)
Programming Lead
IARC
Warwick Manufacturing Group
University of Warwick
Gibbet Hill Road
Coventry CV4 7AL
Tel +44(0)24 76575929



Fax +44(0)24 76528961

The contents of this e-mail and any attachments are the property of Warwick Manufacturing Group and are intended solely for the named recipient(s). The contents may be confidential and should not be communicated to anyone else without our express consent. If you have received this in error please notify the sender and delete it from your system.






-----Original Message-----
From: dojo-interest-bounces <at> dojotoolkit.org
[
mailto:dojo-interest-bounces <at> dojotoolkit.org] On Behalf Of Dustin Machi
Sent: 28 September 2007 13:49



To: dojo-interest <at> dojotoolkit.org Subject: Re: [Dojo-interest] 0.4/0.9: ComboBox DataURL, what now? I believe the store you give you combobox accepts are url from which to populate itself. See http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_ComboBox.html


Dustin Jeffrey Porter wrote:
/home/dmachi/work/sitepen/training/labs



Since DataUrl has been removed from ComboBox, what am I meant to use
now?



I've looked into "dijit.form.FilteringSelect", but this seems to only



request the data once.



Any idea's people?



Jeff Porter





Jeffrey Porter Bsc (hons)

Programming Lead

IARC

Warwick Manufacturing Group


University of Warwick

Gibbet Hill Road

Coventry CV4 7AL

Tel +44(0)24 76575929

Fax +44(0)24 76528961



The contents of this e-mail and any attachments are the property of
Warwick Manufacturing Group and are intended solely for the named



recipient(s). The contents may be confidential and should not be
communicated to anyone else without our express consent. If you have
received this in error please notify the sender and delete it from your

system.









------------------------------------------------------------------------

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


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest




--
cu

Wolfram

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest



_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest




--
cu

Wolfram

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest
rcavallo | 2 Oct 16:39 2007
Picon

Re: dojo history iframe gets its location changed immediately after being written


Looking into this further. Opened the *.url file in my favorites folder for
the above mentioned bookmarked page and found this 

[DEFAULT]
BASEURL=http://localhost:8080/abc/controller?x=23&y=45&z=45
[DOC_djhistory]
BASEURL=http://localhost:8080/view/js/dojo-0.4.2/iframe_history.html?1191332713156
ORIGURL=/view/js/dojo-0.4.2/iframe_history.html
[InternetShortcut]
URL=http://localhost:8080/abc/controller?x=23&y=45&z=45#secondTag
Modified=40FBC977FA04C80142
IconFile=http://localhost:8080/favicon.ico
IconIndex=1

Base URL saved by IE while bookmarking the page has query string in it. 

This behaviour is not consistent. Any explanation or ideas ??? 

rcavallo wrote:
> 
> Hi everyone,
> 
> Started to work on back/forward/bookmark support using DOJO. My page has
> multiple tabs. Each can be bookmarked 
> The problem happens when I try to go to a bookmarked page. Once the iframe
> is written during dojo initialization
> its location is immediately changed to
> http://127.0.0.1:8080/view/js/dojo-0.4.2/iframe_history.html?1190926361531
> The query parameter 1190926361531 remains the same no matter how many time
> I visit the page (tried clearing IE cache, also used referesh on every
> visit option etc...)
> Though by looking at the script I know that query parameter is created
> using current date and time. 
> 
> The problem with this is that once after browsing through tabs when i
> reach initial state the back to the initial state doesn't work 
> because of logic in iframeLoaded function stating 
> 
> var _261=this._getUrlQuery(_260.href);
> if(_261==null){ // this is not null
> 	if(this.historyStack.length==1){
> 	this.handleBackButton();
> }
> 
> Now the value of _261 is not null. Initially the iframe shouldn't have any
> query parameters. That's the way to identify initial state
> Correct me if I am wrong 
> 
> 
> My enviornment 
> Dojo 0.4.3 / IE 6 / Tomcat (local) 
> 
> I put some debug statments in dojo.js as 
> 
> if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){
> 	dojo.debug
> (djConfig["dojoIframeHistoryUrl"]||dojo.hostenv.getBaseScriptUri()+"iframe_history.html");
> 	document.write("<iframe style='border: 0px; width: 1px; height: 1px;
> position: absolute; bottom: 0px; right: 0px; visibility: visible;'
> name='djhistory' id='djhistory'
> src='"+(djConfig["dojoIframeHistoryUrl"]||dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");
> 	dojo.debug("written the iframe ");
> 	dojo.debug ("AT time of writing iframe elements are ");
> 	var iframe = window.frames["djhistory"];
> 	if (iframe){
> 		dojo.debugShallow(iframe);
> 	}
> }
> }
> catch(e){
> }
> 
> the result is ...........
> 
> Is this because I am running this app locally. I know there is warning for
> IE with local disk but I thought that was only for file type URL's.
> 
> Appreciate your input.....
> 
> 
> DEBUG:  /view/js/dojo-0.4.2/iframe_history.html
> DEBUG:  written the iframe 
> DEBUG:  AT time of writing iframe elements are 
> DEBUG:  ------------------------------------------------------------
> DEBUG:  Object: [object]
> DEBUG:  Image: [object]
> DEBUG:  Option: [object]
> DEBUG:  clientInformation: 
> DEBUG:  clipboardData: [object]
> DEBUG:  closed: false
> DEBUG:  defaultStatus: 
> DEBUG:  document: [object]
> DEBUG:  event: null
> DEBUG:  external: 
> DEBUG:  frameElement: [object]
> DEBUG:  frames: [object]
> DEBUG:  history: [object]
> DEBUG:  length: 0
> DEBUG:  location:
> http://127.0.0.1:8080/view/js/dojo-0.4.2/iframe_history.html?1190926361531
> DEBUG:  name: djhistory
> DEBUG:  navigator: 
> DEBUG:  offscreenBuffering: auto
> DEBUG:  onafterprint: null
> DEBUG:  onbeforeprint: null
> DEBUG:  onbeforeunload: null
> DEBUG:  onblur: null
> DEBUG:  onerror: null
> DEBUG:  onfocus: null
> DEBUG:  onhelp: null
> DEBUG:  onload: null
> DEBUG:  onresize: null
> DEBUG:  onscroll: null
> DEBUG:  onunload: null
> DEBUG:  opener: undefined
> DEBUG:  parent: [object]
> DEBUG:  screen: [object]
> DEBUG:  screenLeft: 1003
> DEBUG:  screenTop: 141
> DEBUG:  self: [object]
> DEBUG:  status: 
> DEBUG:  top: [object]
> DEBUG:  window: [object]
> DEBUG:  ------------------------------------------------------------
> 

--

-- 
View this message in context: http://www.nabble.com/dojo-history-iframe-gets-its-location-changed-immediately-after-being-written-tf4534520.html#a13000098
Sent from the Dojo mailing list archive at Nabble.com.

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

rcavallo | 2 Oct 21:31 2007
Picon

Back Button skipping the initial state


Here are the steps to recreate the problem using IE6 / Tomcat 5.x / Windows
XP / Dojo 0.4.x

1) Under %TOMCAT_HOME%/webapps/ROOT (you can include subfolders) place the
tests folder that came with dojo distribution 
2) Change (if needed) the value of dojoIframeHistoryUrl and location of
dojo.js in test_browser_bookmark.html to represent correct path.
3) I also changed iframe_history.html and put an alert in init() method to
give me location of iframe alert ("IFRAME url "+document.location.href); so
I can see what location is being loaded. 
4) Open browser and go to url (your path will be different)
http://localhost:8080/view/js/dojo-0.4.2/src/tests/undo/test_browser_bookmark.html
	You will see alert displaying location attribute of iframe in this case its 
	IFRAME url http://localhost:8080/view/js/dojo-0.4.2/iframe_history.html
So far so good 
5) Now click on XHR 2 the browser url changes to 
http://localhost:8080/view/js/dojo-0.4.2/src/tests/undo/test_browser_bookmark.html#xhr2
and alert from iframe comes as 
	IFRAME url
http://localhost:8080/view/js/dojo-0.4.2/iframe_history.html?1191351099468
The query parameter is function of current date and time so yours will be
different 
6)Now bookmark this page using Favorites-->add to favorites
7)Close browser and reopen and go to the recently bookmarked page. 
This is the step where inconsistency comes in play :-

case when things work fine:

The iframe alert says IFRAME url
http://localhost:8080/view/js/dojo-0.4.2/iframe_history.html
Go to XHR 3 then click back button the initial state is reached (XHR 2). 
Go to your favorites folder your bookmark is saved as a link file. Right
click and use send To --> any editor of your choice
You will see (Note ORIGURL has server name)

[DEFAULT]
BASEURL=http://localhost:8080/view/js/dojo-0.4.2/src/tests/undo/test_browser_bookmark.html
[DOC_djhistory]
BASEURL=http://localhost:8080/view/js/dojo-0.4.2/iframe_history.html?1191352181984
ORIGURL=http://localhost:8080/view/js/dojo-0.4.2/iframe_history.html
[InternetShortcut]
URL=http://localhost:8080/view/js/dojo-0.4.2/src/tests/undo/test_browser_bookmark.html#xhr2
Modified=7015ADD62705C801FD
IconFile=http://localhost:8080/favicon.ico
IconIndex=1
	
Case when things go wrong (with same configuration and fiollowing the same
steps)

The iframe alert says IFRAME url
http://localhost:8080/view/js/dojo-0.4.2/iframe_history.html?1191352181984
(Note the number URL sanme one as generated during test setup)
Go to XHR 3 then click back button. Back button will not goto the inital
state  (XHR 2). Clikcing back button once more will take you back to your
home page skiiping initial state. 
Go to your favorites folder your bookmark is saved as a link file. Right
click and use send To --> any editor of your choice
You will see (Note ORIGURL has no server name)

[DEFAULT]
BASEURL=http://localhost:8080/view/js/dojo-0.4.2/src/tests/undo/test_browser_bookmark.html
[DOC_djhistory]
BASEURL=http://localhost:8080/view/js/dojo-0.4.2/iframe_history.html?1191350026015
ORIGURL=../../../iframe_history.html
[InternetShortcut]
URL=http://localhost:8080/view/js/dojo-0.4.2/src/tests/undo/test_browser_bookmark.html#xhr2
Modified=40B216CE2205C801C6
IconFile=http://localhost:8080/favicon.ico
IconIndex=1

Looking at iframeLoaded function in dojo.js stating 

var _261=this._getUrlQuery(_260.href);
if(_261==null){ // this is not null even initial state has query parameter 
	if(this.historyStack.length==1){
	this.handleBackButton();
}

Tells us why the back button is skipped. 

If you modify the above bookmark *.url file to include server name your
bookmark will work fine. 
--

-- 
View this message in context: http://www.nabble.com/Back-Button-skipping-the-initial-state-tf4557483.html#a13006216
Sent from the Dojo mailing list archive at Nabble.com.

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

m h | 2 Oct 22:25 2007
Picon

Re: Dojo Grid is coming soon

How timely.  I've gone from using dojo in my project to YUI simply
because there was a 3rd party treegrid widget.  Turns out the widget
looks horrible in IE and guess what?  The clients are using IE.  I'm
anxiously awaiting a checkin with the grid into SVN.  I promise to
file bugs/patches.  (Else I need to overhaul the YUI code so it works
with IE....)

Thanks much to all companies/partys/groups involved in the grid donation!

On 9/17/07, Dylan Schiemann <mail <at> dylans.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> The new Dojo Grid is coming soon, and I'm now ready to announce the plan.
>
> Blog entry: http://www.sitepen.com/blog/2007/09/16/the-dojo-grid/
> Press release: http://sitepen.com/pressReleases.php?item=20070917
>
> Short version of the story:
>
> - - TurboGrid is coming to Dojo thanks to SitePen, Mozilla, Nexaweb,
> Redfin, Snaplogic, and TurboAjax Group (prior to and after their
> acquisition by ActiveGrid).
> - - It will be updated for the 1.0 release and feature all of the Dijit
> goodness.
> - - We expect something checked into trunk before the 1.0 release, and for
> it to be ready by the time 1.0 comes out in late October!
>
> Regards,
> - -Dylan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG7iFi8nLgh/JJsxERAleyAJ0ZsIHdbBCXmaGcrvK+yIhM0FlNzACgksn/
> vfzHB6IqqpvXj9SaTKCsLl0=
> =LrpS
> -----END PGP SIGNATURE-----
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest <at> dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest

Peter Ansell | 3 Oct 00:02 2007
Picon

Re: 0.4/0.9: ComboBox DataURL, what now?

How do you make up a unit test for an application which uses a live server? Dojo (at least 0.9) seems to be focused on only solving test cases which can easily be translated to static resources, where the real world doesn't happen like that. This patch is a good start to changing that but how does it fit with the current testing framework.

Peter

On 02/10/2007, Jared Jurkiewicz <jared.jurkiewicz <at> gmail.com> wrote:
That store doesn't completely implement the Read API of dojo.data, though.  To be considered for commit into dojo/dojox, it would require the complete Read API at minimum, and Unit tests.  If you're willing to finish the Read implementation and provide some basic UT, that would be awesome.

Sincerely,
-- Jared Jurkiewicz


On 9/30/07, Wolfram Kriesing < wolfram.kriesing <at> gmail.com> wrote:
there is a dojo.data store that can now also work with your 100.000+ records :-)
I just wrote a basic store that dynamically loads the data from the server, see here
http://trac.dojotoolkit.org/ticket/4597
may be
http://trac.dojotoolkit.org/ticket/4596 is interesting too

cu

Wolfram


On 9/28/07, Jacek Pawlowski <jacek <at> myecho.ca> wrote:
Hi,
I agree with Jeff - lack of server side query limits the combobox.  I have 100,000+ records to query.
I just can't migrate to 0.9 without this feature.
-- jacek


Dustin Machi wrote:
That was some pretty horrible english on my part...it must be too early.
Anyway, I understand that there is a forum topic discussing this, so
you might want to search the forums on the dojo website. In general


however, a store can retrieve all your data at once and it keeps it in a
n in memory data structure (for itemFileReadStore) which you can query
at your leisure. I'm not personally sure whether the ability to search


directly against the server still exists or not, but the larger idea
would be that it is actually the store that you want to talk to the
server and so you can write or extend a store to be specific to your
application.


Anyway, I do recommend searching the forum for this as there is probably
more info for you there than I can give right now, plus i'm going to be
gone for the day so this will be the last email from me on this subject


at least until tomorrow :)

Dustin



Jeffrey Porter wrote:
Hi Dustin,

I think I understand what you are saying, and I can populate a ComboBox from a URL.
But...
This only happens once, not each time I type in the comboBox.

Presviously I had a ComboBox being populated via the dataurl...


dataUrl="http://<%=Constants.HOSTING_IP%>/feederServlet?search=%{searchString}"

So that the '{searchString}' would be passed to the servlet, allowing me to query my database.

Any idea how to do this in 0.9 ?

Jeff Porter


Jeffrey Porter Bsc (hons)
Programming Lead
IARC
Warwick Manufacturing Group
University of Warwick
Gibbet Hill Road
Coventry CV4 7AL
Tel +44(0)24 76575929


Fax +44(0)24 76528961

The contents of this e-mail and any attachments are the property of Warwick Manufacturing Group and are intended solely for the named recipient(s). The contents may be confidential and should not be communicated to anyone else without our express consent. If you have received this in error please notify the sender and delete it from your system.





-----Original Message-----
From: dojo-interest-bounces <at> dojotoolkit.org [
mailto:dojo-interest-bounces <at> dojotoolkit.org] On Behalf Of Dustin Machi
Sent: 28 September 2007 13:49


To: dojo-interest <at> dojotoolkit.org Subject: Re: [Dojo-interest] 0.4/0.9: ComboBox DataURL, what now? I believe the store you give you combobox accepts are url from which to populate itself. See http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_ComboBox.html

Dustin Jeffrey Porter wrote:
/home/dmachi/work/sitepen/training/labs



Since DataUrl has been removed from ComboBox, what am I meant to use
now?



I've looked into "dijit.form.FilteringSelect", but this seems to only


request the data once.



Any idea's people?



Jeff Porter





Jeffrey Porter Bsc (hons)

Programming Lead

IARC

Warwick Manufacturing Group

University of Warwick

Gibbet Hill Road

Coventry CV4 7AL

Tel +44(0)24 76575929

Fax +44(0)24 76528961



The contents of this e-mail and any attachments are the property of
Warwick Manufacturing Group and are intended solely for the named


recipient(s). The contents may be confidential and should not be
communicated to anyone else without our express consent. If you have
received this in error please notify the sender and delete it from your
system.









------------------------------------------------------------------------

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


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest




--
cu

Wolfram

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest



_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org

http://dojotoolkit.org/mailman/listinfo/dojo-interest


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

Gmane