Adam,
Great, that works. What did you have to do to get it working? I notice the extra line in the javascript function in the ASPX page. I think you also made some CE configuration changes because the dialog was looking for a different directory. Which files did you change? I need to apply the same changes to my source-controlled version.
Just one problem that I see with the code as it stands. If you cancel from the image gallery dialog, the Javascript loop runs on until you close or reload the page. I have put an alert statement into the InputUrl function to show you what I mean. Just run the page, click on the button and then cancel out of the dialog.
Not knowing the CE Javascript API implementation, I don't know if there is a way of detecting that the cancel button has been pressed that could be used to break out of the loop. Can you suggest a way?
Thanks,
Paul
Paul Taylor
Dotcom Software Solutions