Hey guys,
Im working on a script that opens a window with an image chooser, then needs to put the path in a textbox. The problem is I THINK, that when the popup opens, you must select from a folder, which loads another page. Then that page has links that are supposed to insert the image.
The link that opens the popup looks like this:
<a href="#" onclick="javascript:window.open('dpv/index.php?insert=go', 'images', 'resizable=yes, scrollbars=yes, width=800, height=600, top=300, left=300, toolbar=yes, status=1, location=1');"><img src="img/imageInsert.gif" border="0" /></a>
The link under each image looks like this:
<a href="#" onclick="javascript:selectThis('100_6075.JPG');">Insert This Image</a>
The function is:
function selectThis(entry){
alert(entry);
window.opener.document.bgcolor="red";
}
(I just have the bgcolor to test, ive tried a few things)
Is it possible to open a popup that a user can change the page, then still be able to pass it back?
Any ideas?
Thanks alot,
John