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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to