Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
I have following code with drop-list name "agencyName". But event .change() attached to this object never called. So i was wondering does jQuery ever work with Struts custom tag? or Am I doing something wrong? Thanks in advance. Anjib $('#agencyName').change( function() { /* Nev

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Eric Lentz
> I have following code with drop-list name "agencyName". But event.change() attached to this object never called. Make sure that the rendered form is actually creating a HTML object with an ID of agencyName. That's usually the problem that I encounter - using the wrong name. Also, make sure th

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
On 8/16/2011 10:51 AM, Eric Lentz wrote: I have following code with drop-list name "agencyName". But event.change() attached to this object never called. Make sure that the rendered form is actually creating a HTML object with an ID of agencyName. That's usually the problem that I encounter - u

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Dave Newton
Check for JS errors in the console then, jQuery works fine with S1. Dave On Aug 16, 2011 12:44 PM, "Anjib Mulepati" wrote: > On 8/16/2011 10:51 AM, Eric Lentz wrote: >>> I have following code with drop-list name "agencyName". But >> event.change() attached to this object never called. >> >> Make

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
There is no error at console but can run the script in console itself. Any suggestion? On 8/16/2011 12:53 PM, Dave Newton wrote: Check for JS errors in the console then, jQuery works fine with S1. Dave On Aug 16, 2011 12:44 PM, "Anjib Mulepati" wrote: On 8/16/2011 10:51 AM, Eric Lentz wrot

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Eric Lentz
> There is no error at console but can run the script in console itself. > Any suggestion? Are you saying that you can verify that the script is executing? For example, if you alert, breakpoint or print to console before the installation of the change event, do you get the expected feedback from

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Anjib Mulepati
Yes script runs fine. On 8/16/2011 1:19 PM, Eric Lentz wrote: There is no error at console but can run the script in console itself. Any suggestion? Are you saying that you can verify that the script is executing? For example, if you alert, breakpoint or print to console before the installation

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Dave Newton
What script? The script that attaches the handler? Dave On Aug 16, 2011 1:46 PM, "Anjib Mulepati" wrote: > Yes script runs fine. > On 8/16/2011 1:19 PM, Eric Lentz wrote: >>> There is no error at console but can run the script in console itself. >>> Any suggestion? >> Are you saying that you can

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Eric Lentz
> Yes script runs fine. I would suggest making it as simple as possible. For example, take your rendered form and make a html file out it and take your script and the jQuery framework and place them all on a file system and attempt to get that working (comment the ajax part out). If that works,