You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by GEDA <ge...@romtelecom.ro> on 2007/06/07 14:28:41 UTC

Extract autocompleter value from javascript, when autocompleter is in a
Please tell me how can I extract the selected value of an autocompleter
(theme=simple) which rezides in a <s:div object ? Is there a way ? Thank
you.
-- 
View this message in context: http://www.nabble.com/Extract-autocompleter-value-from-javascript%2C-when-autocompleter-is-in-a-%3Cs%3Adiv-object-tf3883593.html#a11007078
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Extract autocompleter value from javascript, when autocompleter is in a Posted by GEDA <ge...@romtelecom.ro>.
Worked like a charm. 
Thanks musachy

-- 
View this message in context: http://www.nabble.com/Extract-autocompleter-value-from-javascript%2C-when-autocompleter-is-in-a-%3Cs%3Adiv-object-tf3883593.html#a11021197
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Extract autocompleter value from javascript, when autocompleter is in a Posted by Musachy Barroso <mu...@gmail.com>.
Soon we will be providing nice javascript functions to get the values, for
now:

var auto = dojo.widget.byId("auto");

//selected key
var key = auto.comboBoxSelectionValue.value;

//selected value
var value = auto.comboBoxValue.value;

//text entered by user
var text = auto.textInputNode.value

musachy


On 6/7/07, GEDA <ge...@romtelecom.ro> wrote:
>
>
> Please tell me how can I extract the selected value of an autocompleter
> (theme=simple) which rezides in a <s:div object ? Is there a way ? Thank
> you.
> --
> View this message in context:
> http://www.nabble.com/Extract-autocompleter-value-from-javascript%2C-when-autocompleter-is-in-a-%3Cs%3Adiv-object-tf3883593.html#a11007078
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd