GaRaGeD Style | 1 Feb 2009 13:31
Picon
Gravatar

Re: looking for suggestions on retaining comoboboxvalues even after pageload

On Fri, Jan 30, 2009 at 3:33 AM, venkatesh rao <venky034 <at> yahoo.co.in> wrote:
> Hi Claudio,
>
>
>
> I am working on java and I tried to use the syntax which you suggested but
> this is not working.
>
>
>
> dijit.byId('myComboBoxId').setValue(
>
> <%= "Welcome"%>);
>
>
>
> This gives Welcome undefined.
>

You are missing quotes:
 ...setValue('<%= "Welcome"%>');

I still have a similar problem,I try to put (via setValue or
attr('value'...) but the combo displays what I put as value.

If i put
dijit.byId('combo').attr('value', 15);

The combo displays "15", instead of the actual value corresponding to the 15 ID.

(Continue reading)

John.C.Cartwright | 1 Feb 2009 22:09
Picon
Favicon

update the store for a Grid

Hello All,

I'd like to dynamically update the content of a Grid (snippet below). 
My first attempt was to simply change the url of the DataStore that the
Grid used:

dataStore.url = newUrl;

When this didn't work, I tried creating a new DataStore and assigning it:

var vstore = new dojo.data.ItemFileReadStore({url: newUrl });
grid.store = vstore;

However this didn't work either - no error in the console, just no
change in the table.

Can anyone please point out what I'm doing wrong or suggest an alternative?

Thanks!

--john

        <table id="gridNode" jsid="grid" dojoType="dojox.grid.DataGrid"
query="{ id: '*' }" store="dataStore" rowsPerPage="20"
        region="center">
        <thead>
            <tr>
                <th field="id" width="auto">ID</th>
                <th field="name" width="auto">Name</th>
                <th field="description" width="auto">Description</th>
(Continue reading)

Gary Acord | 1 Feb 2009 22:48

Re: update the store for a Grid

John,
Here's a little Dojo Cookie that should help you out.

http://dojocampus.org/content/2009/01/31/refeshing-an-itemfilereadstore/

Cheers,
gary

-----Original Message-----
From: dojo-interest-bounces <at> dojotoolkit.org
[mailto:dojo-interest-bounces <at> dojotoolkit.org] On Behalf Of
John.C.Cartwright <at> noaa.gov
Sent: Sunday, February 01, 2009 3:09 PM
To: dojo-interest <at> dojotoolkit.org
Subject: [Dojo-interest] update the store for a Grid

Hello All,

I'd like to dynamically update the content of a Grid (snippet below). 
My first attempt was to simply change the url of the DataStore that the Grid
used:

dataStore.url = newUrl;

When this didn't work, I tried creating a new DataStore and assigning it:

var vstore = new dojo.data.ItemFileReadStore({url: newUrl }); grid.store =
vstore;

However this didn't work either - no error in the console, just no change in
(Continue reading)

John.C.Cartwright | 2 Feb 2009 05:09
Picon
Favicon

Re: update the store for a Grid

Perfect! Thanks so much for your prompt help.

--john

----- Original Message -----
From: Gary Acord <gary <at> acordinfo.com>
Date: Sunday, February 1, 2009 2:48 pm
Subject: Re: [Dojo-interest] update the store for a Grid

> John,
> Here's a little Dojo Cookie that should help you out.
> 
> http://dojocampus.org/content/2009/01/31/refeshing-an-
> itemfilereadstore/
> Cheers,
> gary
> 
> 
> 
> -----Original Message-----
> From: dojo-interest-bounces <at> dojotoolkit.org
> [mailto:dojo-interest-bounces <at> dojotoolkit.org] On Behalf Of
> John.C.Cartwright <at> noaa.gov
> Sent: Sunday, February 01, 2009 3:09 PM
> To: dojo-interest <at> dojotoolkit.org
> Subject: [Dojo-interest] update the store for a Grid
> 
> Hello All,
> 
> I'd like to dynamically update the content of a Grid (snippet 
(Continue reading)

venkatesh rao | 2 Feb 2009 12:33
Picon
Favicon

Back button handling using DOJO

Hi All,
 
Anyone knows how back and forward button handling is done in dojo?. I want this as I am using dojo in my application where it is failing at back and forward buttons. The example given are not that informative.
I will be more than happy if I get some examples also and bit early also.                   

Connect with friends all over the world. Get Yahoo! India Messenger.
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
Claudio D'angelo | 2 Feb 2009 12:51
Picon

Re: looking for suggestions on retaining comoboboxvalues even after pageload

ComboBox is an InputBox with auto complete. If you want key/value 
selection you can use the dojox.form.DropDownSelect  (example):

    <script type="text/javascript">
        dojo.require("dojox.form.DropDownSelect");
        dojo.require("dojo.data.ItemFileReadStore");

       
        function init() {
            var selectedValue = "C1"; <-- the code
            dataStore.fetch( onItem: function(item) {
                myDataId.addOption({value : dataStore.getValue(item, 
"code"), label: dataStore.getValue(item, "name")});
            }
            , onComplete:function(){
                myDataId.attr("value", selectedValue);
            }
            });
        }
        dojo.addOnLoad(init);
    </script>
</head>

<body class="tundra">
<div dojoType="dojo.data.ItemFileReadStore" jsId="dataStore"
    url="simpleData.json"></div>

<input dojoType="dojox.form.DropDownSelect" name="myData" id="myDataId" 
jsid="myDataId" />

kenny ha scritto:
> GaRaGeD Style a écrit :
>> On Fri, Jan 30, 2009 at 3:33 AM, venkatesh rao <venky034 <at> yahoo.co.in> wrote:
>>   
>>> Hi Claudio,
>>>
>>>
>>>
>>> I am working on java and I tried to use the syntax which you suggested but
>>> this is not working.
>>>
>>>
>>>
>>> dijit.byId('myComboBoxId').setValue(
>>>
>>> <%= "Welcome"%>);
>>>
>>>
>>>
>>> This gives Welcome undefined.
>>>
>>>     
>>
>> You are missing quotes:
>>  ...setValue('<%= "Welcome"%>');
>>
>>
>> I still have a similar problem,I try to put (via setValue or
>> attr('value'...) but the combo displays what I put as value.
>>
>> If i put
>> dijit.byId('combo').attr('value', 15);
>>
>> The combo displays "15", instead of the actual value corresponding to the 15 ID.
>>
>> I can set the "DisplayedValue", but doesn't make sense, and doesn't
>> appear to actually select the corresponding row.
>>
>> Max
>>   
>
> dijit.byId('combo').attr('value', 15); should be ok.
> value -> set the id of the combo list to 15
> displayedValue (with lower d at beginnning) -> set the record that has the visible value to 15
>
> Can you show us a bit of your json data behind your comboBox.
>
> Kenny
>   
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest <at> dojotoolkit.org
> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
>   

-- 
__________________________________

Claudio D'Angelo
Programmatore
Direzione Sviluppo Area di Staff Tecnologie

Lombardia Informatica S.p.A.
Via Don G. Minzoni, 24
20158 Milano ITALY
www.lispa.it

Mail: claudio.dangelo <at> lispa.it
Office:  +39 02 39331 485
Fax:     +39 02 39331 250
__________________________________

Le informazioni contenute in questo messaggio e ogni documento o file ad esso allegato sono riservati e
confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio o a diversa
persona da questo autorizzata, per le finalità indicate nel messaggio medesimo. Qualora Lei non fosse
la persona cui il presente messaggio è destinato, La invitiamo a eliminarlo dal Suo Sistema e a
distruggere le varie copie o stampe, dandocene gentilmente comunicazione. Ogni utilizzo improprio è
contrario ai principi del D.Lgs. 196/03 e alla legislazione europea (Direttiva 2002/58/CE). Lombardia
Informatica S.p.A. opera in conformità al D.Lgs. 196/2003 citato. Per qualsiasi informazione a
riguardo si prega di contattare la nostra Società al seguente indirizzo e-mail: info <at> lispa.it

The information contained in this message, as well as any attached file(s), is private and confidential
and is only intended for the person to whom it is addressed. If the reader of this message is not the intended
recipient or the employee or agent responsible for delivering the message to the intended recipient, or
you have received this communication in error, please be aware that any dissemination, distribution or
duplication is strictly prohibited, and may be illegal. Please notify us immediately and delete all
copies from your mailbox and other archives. Thank you.

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

Jared Jurkiewicz | 2 Feb 2009 14:40
Picon

Re: Back button handling using DOJO

  Have you read over the documentation on docs.dojocampus.org?

http://docs.dojocampus.org/dojo/back

-- Jared

On Mon, Feb 2, 2009 at 6:33 AM, venkatesh rao <venky034 <at> yahoo.co.in> wrote:
> Hi All,
>
> Anyone knows how back and forward button handling is done in dojo?. I want
> this as I am using dojo in my application where it is failing at back and
> forward buttons. The example given are not that informative.
> I will be more than happy if I get some examples also and bit early also.
>
> ________________________________
> Connect with friends all over the world. Get Yahoo! India Messenger.
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest <at> dojotoolkit.org
> http://turtle.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://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Jared Jurkiewicz | 2 Feb 2009 14:42
Picon

Re: Back button handling using DOJO

   The concept itself is simple.  Each time you do something you want
to be able to go 'back' on, or 'forward' from, you register a state
object with a back and forward function definition that tells the app
how to get back to the state you desired.   For example if you wanted
a back to invoke a previous query on a grid, your back function would
set the previous query on the grid to run it.

-- Jared

On Mon, Feb 2, 2009 at 8:40 AM, Jared Jurkiewicz
<jared.jurkiewicz <at> gmail.com> wrote:
>  Have you read over the documentation on docs.dojocampus.org?
>
> http://docs.dojocampus.org/dojo/back
>
> -- Jared
>
> On Mon, Feb 2, 2009 at 6:33 AM, venkatesh rao <venky034 <at> yahoo.co.in> wrote:
>> Hi All,
>>
>> Anyone knows how back and forward button handling is done in dojo?. I want
>> this as I am using dojo in my application where it is failing at back and
>> forward buttons. The example given are not that informative.
>> I will be more than happy if I get some examples also and bit early also.
>>
>> ________________________________
>> Connect with friends all over the world. Get Yahoo! India Messenger.
>> _______________________________________________
>> FAQ: http://dojotoolkit.org/support/faq
>> Book: http://dojotoolkit.org/docs/book
>> Forums: http://dojotoolkit.org/forum
>> Dojo-interest <at> dojotoolkit.org
>> http://turtle.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://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Xinyi Xu | 3 Feb 2009 01:02
Picon
Favicon

Xinyi added you as a friend on Reunion.com!

Reunion.com - Invitation
Xinyi Xu added you as a friend on Reunion.com.
Please confirm you know Xinyi so we can connect you.
Do you know Xinyi?
Yes No
Accept this connection and you'll see Xinyi's profile and photos for free!
You'll also get access to the popular feature: Who's Searching for YOU?
Reunion.com - Find Everyone from Your Past.™
You have received this email because a Member
sent an invitation to this email address.
For assistance, please refer to our FAQ or Contact Us .
Our Address: 2118 Wilshire Blvd., Box 1008, Santa Monica, CA 90403-5784
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
Jose.L.Leviaguirre | 3 Feb 2009 01:04
Picon
Favicon

Accordion pane to control a stack container

Hello

I am trying to do have an accordion pane on the left side of the page that can control a stack container. When
the accordion opens, a guide of what the page does is shown in the accordion but I want also to display the
corresponding content on the right side of the page.

Similar to the dojocampus feature explorer.

Where can I get a snippet or learn how to do so?

.=========================================.
| *Dogs*       |                          |
|--------------|                          |
|  Dogs are    |                          |
|  shown       |                          |
| here         |    [show of dog pics]    |
|==============|                          |
| *Cats*       |                          |
|==============|                          |
| *Birds*      |                          |
.=========================================.

Thanks!

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


Gmane