Click to See Complete Forum and Search --> : Passing Parameters Between Windows??????


lloydsj
04-14-2003, 08:44 AM
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.

All I am trying to do, is combine an Insert Image command with an Upload Feature. Whats going to happen is this....

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.

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).

I am inserting the image using the 'InsertImage' command of 'execCommand'.

execCommand (http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/ifaces/controlrange/execcommand.asp)

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.

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.

Please help!

khaki
04-14-2003, 09:31 AM
this question is triple-posted:

ASP
HTML
Javascript

lloydsj
04-14-2003, 09:36 AM
Yes i know it is cheers.. but thanks for telling me :mad:

I wasn't sure where to post it, as it applies to asp, javascript and asp... as my code is using all three.

It would have been better if you had just helped me out.. rather than stating the obvious.

khaki
04-14-2003, 09:58 AM
that's what i was going to try to do :rolleyes:

i posted what i did for the benefit of others who may have been thinking of doing the same.
because... aside from being against the rules (multiple-posts of the same question)... it is also difficult to follow... especially when you have different people offering different (or the same) ideas in different loctions.

obvious or not... no one is obliged to answer questions here (no matter how many times the question is asked).
the rules are established for ALL of us because they have proven to be the most effective way of helping everyone.

you triple-posted.
and now you are mad at me.

... and my intention from the beginning was to try to help you.

:rolleyes: k

lloydsj
04-14-2003, 10:02 AM
Appologies then...

I was unaware that it was against the rules to post a question to more than 1 applicable forum. I only joined today... and i only joined because i am really stuck.... so if you can help... and if you could have a look at my code for me... it would be much appreciated.;)