struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sheva j" <shee...@gmail.com>
Subject Re: Issue getting autocompleter value in javascript
Date Tue, 30 Sep 2008 06:41:29 GMT
Hi,

     Thanks for your reply. I got the point. Below two lines of code,
will give the selected value of  autocompleter to js.

     var selectedValue = dojo.widget.byId('auto');

     var value1 = selectedValue.textInputNode.value;
Thank you again.


On 9/29/08, Struts Two <strutstwo@yahoo.ca> wrote:
>
> autocompleter is a dojo widget, you should try to get its value through
> dojo api for widgets not dom api. Your javascript will not work (as you have
> already noticed).
>
> regards,
>
>
>
> ----- Original Message ----
> From: sheva j <sheevaj@gmail.com>
> To: user@struts.apache.org
> Sent: Monday, September 29, 2008 9:56:43 AM
> Subject: Issue getting autocompleter value in javascript
>
> Hi,
>
> I am facing an issue in getting, selected value of autocompleter in
> javascript.
>
> Issue:
>
> On the onclick event of a button, I am calling a javascript function.
>
> getAutoValue() {
> var selectedValue = document.getElementById("auto").value;
> alert(selectedValue);
> }
>
> where 'auto' is autocompleter's name.
> I am not able to get the value of autocompleter(ajax). Is there any
> possiblity to get the selected value of autocompleter.
>
> Kindly help me.
> Thanks in advance.
>
>
>
>      __________________________________________________________________
> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your
> favourite sites. Download it now at
> http://ca.toolbar.yahoo.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message