Passing Parameters?

Basically this should be a simple problem... but if anyone could just tell me how to get my code to work it would be great, as I have been struggling on this for ages.<br />
<br />
All I am trying to do, is combine an Insert Image command with an Upload Feature. Whats going to happen is this....<br />
<br />
You click on an insert image button on my intranet, and it then brings up a window that allows you to select an image and then click an 'Upload and Insert' button (Which does exactly that). It uploads it to the server and then inserts the image into the Intranet.<br />
<br />
I have had the insert image bit working fine (without uploading the image)... and the upload feature (on its own) also works fine too. But now what i want to do is combine them and this involves passing commands between the windows and closing them etc (and I can't do this).<br />
<br />
I am inserting the image using the 'InsertImage' command of 'execCommand'.<br />
<br />
execCommand (<!-- m --><a class="postlink" href="http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/ifaces/controlrange/execcommand.asp">http://msdn.microsoft.com/library/defau ... ommand.asp</a><!-- m -->) <br />
<br />
So therefore to combine them I just set the user interface as false for InsertImage and put the Upload page as the parameter for the image location. This then brings up the upload window which allows you to select and upload the image to the server.<br />
<br />
Now comes the problem... I cant get the Upload window to close and return the new file path for the uploaded image? so that the InsertImage command will insert the image for me.<br />
<br />
Please help!<!--content-->this question is triple-posted:<br />
<br />
ASP<br />
HTML<br />
Javascript<!--content-->
 
Back
Top