I am trying to change the picture description with an onclick event. I have it working where it updates a text field with the pic description but the text field has size limitation so I just wanted to have text(strPhotoDescrip).
Everything seems to work...the alert shows the right Photo Description, the image updates, but nothing will ever show up after the Testing. And nothing shows up in the view source so it's like it's not recognizing strPhotoDescrip.
<IMG name="imgMain" width="250" border="1" src="db/listimages/<%= strPhoto %>"><br>
Testing <%= strPhotoDescrip %><br>
strPhoto2 = "<a href=""/db/listimages/" & oRS.Fields(14).Value & """ onclick=""document.images.imgMain.src=this.href;strPhotoDescrip ='" & oRS.Fields(28).Value & "';alert(strPhotoDescrip);return false;""><IMG border=""0"" width=""114"" border=""0"" src=""db/listimages/" & oRS.Fields(14).Value & """></a>
Thanks!!
Everything seems to work...the alert shows the right Photo Description, the image updates, but nothing will ever show up after the Testing. And nothing shows up in the view source so it's like it's not recognizing strPhotoDescrip.
<IMG name="imgMain" width="250" border="1" src="db/listimages/<%= strPhoto %>"><br>
Testing <%= strPhotoDescrip %><br>
strPhoto2 = "<a href=""/db/listimages/" & oRS.Fields(14).Value & """ onclick=""document.images.imgMain.src=this.href;strPhotoDescrip ='" & oRS.Fields(28).Value & "';alert(strPhotoDescrip);return false;""><IMG border=""0"" width=""114"" border=""0"" src=""db/listimages/" & oRS.Fields(14).Value & """></a>
Thanks!!