Answered
flash form image swap
Hello,
I can' t find any examples anywhere of how to do an image swap on a flash form.
Here is my situation: I have a form with a text or hidden field that will contain the database recordID of an image. Next to that, the image will be displayed as a cfformitem type=html or as a cfinput type image (set up so the button click has no effect). They will default as recordID=1 and image src is an apple.
Next I have (not on the cfform) an iframe showing a large number of pictures. The user will click on a picture and it will then insert the recordID of that picture into the form (that part works) and it will change the picture in the form to the one that was selected.
This would be like selecting an avatar from a list of hundreds and getting the preview to show on the form.
Like I said, I can get the text field to change. I just need some help with the image.
It's not practical to load all the images into the form because there are hundreds of them and they are only loading based on a selected catagory - that's why I'm using an iframe and I'm relying on javascript to pass the selected values to the form on the parent. I just can't figure out the path in the DOM to get to the images value.
Thanks to anyone who can help.
I can' t find any examples anywhere of how to do an image swap on a flash form.
Here is my situation: I have a form with a text or hidden field that will contain the database recordID of an image. Next to that, the image will be displayed as a cfformitem type=html or as a cfinput type image (set up so the button click has no effect). They will default as recordID=1 and image src is an apple.
Next I have (not on the cfform) an iframe showing a large number of pictures. The user will click on a picture and it will then insert the recordID of that picture into the form (that part works) and it will change the picture in the form to the one that was selected.
This would be like selecting an avatar from a list of hundreds and getting the preview to show on the form.
Like I said, I can get the text field to change. I just need some help with the image.
It's not practical to load all the images into the form because there are hundreds of them and they are only loading based on a selected catagory - that's why I'm using an iframe and I'm relying on javascript to pass the selected values to the form on the parent. I just can't figure out the path in the DOM to get to the images value.
Thanks to anyone who can help.