View Full Version : Using lytebox, would like to transfer value to text field.

01-29-2009, 09:29 PM
Hello all, I just found your forum... Look forward to chatting.

Right now, I have a text field in my registration area for URL for a image, and it has option to upload image, they click on that link, and get a popup with browse button. They select their image, and then select upload button, when it finishes I use the below to close the window and introduce value to readonly field.

<body onLoad=";document.select_all.T1.focus();document.select_all.T1.select();window.focus();javascript:window.clo se();" bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\n<form name=select_all><input onFocus="document.select_all.T1.focus();document.select_all.T1.select()" type=text style="border: none" name=T1 size=163 onSelect=opener.document.dx_add.txtIMG.value=this.value value=" . $installedURL . $path . $my_uploader->file['name'] . "></form>

I would like to the same thing but use lytebox (http://dolem.com/lytebox/)and be able to automatically close that iframe and transfer value of field to parent window. Would there be a way to do this?