Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 68675 invoked from network); 9 Dec 2008 18:37:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2008 18:37:34 -0000 Received: (qmail 57563 invoked by uid 500); 9 Dec 2008 18:37:36 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 57527 invoked by uid 500); 9 Dec 2008 18:37:36 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 57516 invoked by uid 99); 9 Dec 2008 18:37:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 10:37:36 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aum.struts@gmail.com designates 209.85.132.240 as permitted sender) Received: from [209.85.132.240] (HELO an-out-0708.google.com) (209.85.132.240) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 18:37:21 +0000 Received: by an-out-0708.google.com with SMTP id b2so45819ana.17 for ; Tue, 09 Dec 2008 10:37:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=x56T6cuAezxY4+OxIfbES3RbOnrsItppB821o9PDEOs=; b=SVl/QnJwEeWa7SO1xhz7wiSYrNRiIDQuCqEqbWedv5fszj0eKmoV8+n0L8f0y7nV5w 5K4HESiayoMqEFZEaTZeUOgVSyKxq+RKMLKO7lZEm5TUK1JfEz9EMepYg/hyBrn5OQWH yjIsU4M7FzkkuGMa5y2zBJih+3slU+0jGvHH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=gErljDbdhANj31rdKxOAZuD+rhTQullT9mXA0Rz9ciohICM8qkXn8YtkNg/7j6sP5w iG72XABqNccxj9DLblHi452BkK6fUlfI/AkiUtPoZT0/z5Te3GQwIXkA9yAoU4AmGcwF qnzoI4N5HhF/FxrYR6Tx6X4+ns3vGQIyKz6MM= Received: by 10.100.11.14 with SMTP id 14mr401261ank.89.1228847820498; Tue, 09 Dec 2008 10:37:00 -0800 (PST) Received: by 10.100.108.17 with HTTP; Tue, 9 Dec 2008 10:37:00 -0800 (PST) Message-ID: Date: Wed, 10 Dec 2008 00:07:00 +0530 From: "aum strut" To: "Struts Users Mailing List" Subject: Validating Autocompleter using javascript MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_61807_25938775.1228847820410" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_61807_25938775.1228847820410 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, i am struck in a simple problem but not able to proceed as i m unable to find any solution for this. I am using struts2 UI tags and in order to validate the user input i am using javascript for validation(Currently not in a position to use validation frame work). everything was going ok but now i have to use auocompleter and here javascript validation is not working.i have created a seperated javascript file and validating the user input using this file. My javascript validation is working fine(even displaying errors) up to the point it encounters autocompleter but it stops validating the input fields after it. below is the code i m using to validtate autocompleter: and the code to validate this is: document.getElementById('addressPO.city').value = document.getElementById( 'addressPO.city').value.trim(); if(document.getElementById('addressPO.city').value == null || document.getElementById('addressPO.city').value == "" ) { alert("error"); } following is the error Mozilla is showing to me *Error: document.getElementById("addressPO.city") has no properties* * *Any suggestion for this are welcomed Pleaes suggest me where i am doing wrong in order to validate this autocomplete. thanks in advance, umesh ------=_Part_61807_25938775.1228847820410--