[jQuery] Change event for hidden form field
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=998090815-28082008><FONT face=Arial size=2>I'm modifying the
value of a hidden input field from a popup window. I thought it would be a
simple thing to bind a change event on this field so that when it's value
changed, something else would happen. This doesn't seem to work. Am I doing
something wrong, or am I misunderstanding what I need to do?</FONT></SPAN></DIV>
<DIV><SPAN class=998090815-28082008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=998090815-28082008><FONT face=Arial size=2>Or is there another
way to do this, one that's "better"? In essence, this is what I'm
doing.</FONT></SPAN></DIV>
<DIV><SPAN class=998090815-28082008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=998090815-28082008><FONT face=Arial size=2>1) Open a new
window</FONT></SPAN></DIV>
<DIV><SPAN class=998090815-28082008><FONT face=Arial size=2>2) In this new
window, click a link which corresponds to an image</FONT></SPAN></DIV>
<DIV><SPAN class=998090815-28082008><FONT face=Arial size=2>3) In the new
window, get the filename of the selected image; pass it back to a specified
hidden input field in the parent window.</FONT></SPAN></DIV>
<DIV><SPAN class=998090815-28082008><FONT face=Arial size=2>4) When the hidden
input field's value changes, fire an event/function which changes the src
attribute of an img tag to match the value of the hidden form
field.</FONT></SPAN></DIV>
<DIV><SPAN class=998090815-28082008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=998090815-28082008><FONT face=Arial size=2>Any ideas? The
value of the input field updates properly, but it just doesn't fire the change
handler.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV align=left><SPAN style="FONT-SIZE: 14px"><B><FONT face="Century Gothic">
<DIV align=left><SPAN class=159130414-05012007><FONT face=Arial size=2><SPAN
class=159130414-05012007><FONT face=Arial
size=2>____________________________________</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=159130414-05012007><FONT face=Arial size=2><SPAN
class=159130414-05012007></SPAN></FONT></SPAN> </DIV>Andy
Matthews<BR></FONT></B></SPAN><SPAN style="FONT-SIZE: 11px"><FONT
face="Century Gothic"><SPAN
style="FONT-SIZE: 8.5pt; FONT-FAMILY: 'Century Gothic'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-no-proof: yes">Senior
ColdFusion Developer</SPAN><BR></FONT></SPAN><SPAN style="FONT-SIZE: 11px"><FONT
face="Century Gothic"><FONT color=#808080><SPAN
style="FONT-SIZE: 11px"></SPAN><IMG alt="" hspace=0
src="cid:998090815@28082008-25D2" align=baseline border=0></FONT><BR>Office:
615.627.9747<BR>Fax: 615.467.6249</FONT></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 11px"><FONT face="Century Gothic"><A
href="http://www.dealerskins.com/">www.dealerskins.com</A></FONT></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 11px"></SPAN> </DIV>
<DIV><SPAN style="FONT-SIZE: 11px"><SPAN style="FONT-SIZE: 12px"><FONT
face="Century Gothic">Total customer satisfaction is my number 1 priority! If
you are not completely satisfied with the service I have provided, please let me
know right away so I can correct the problem, or notify my manager <FONT
color=#fe6500>Aaron West</FONT> at <FONT
color=#0000ff><U>awest@dealerskins.com</U></FONT>.</FONT></SPAN></SPAN></DIV>
<DIV> </DIV></BODY></HTML>