We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

Background:The insert image functions I have seen will not suit my needs because I have of lot's of images, therefore I have stored all image-information in a database. This means that I can search for images and store much information about them. I'm developing in ASP.

Problem:I have made I pop-up window where all image (information) are listed (imagelist.asp)with paging possibility)). When I choose one of the images I wan't to insert into the htmlArea I direct to a new page (image_choose.asp). The pop-up window are using this script from the htmlarea.js file:

case "insertimage": if (HTMLArea.is_ie) { window.open(this.popupURL("imagelist.asp"), "insertimage", "toolbar=no,menubar=no,personalbar=no,width=640,height=480," + "scrollbars=yes,resizable=yes"); } HTMLArea._object = this; Question: Is it possible to make image_choose.asp "remember" the htmlArea-values, I'm not sure which values and how to grab those values because I'm not the best coder in javascript. I wan't image_choose.asp to work as the insert_image.html page, but I'm not sure if this is possible because I go via another page first.

I will do that as soon as it's working good enough. Have to warn you, the code is a little bit messy in the ASP-file that list's the images since I'm a hobby-coder and only do this spare time. I have used MX to make the paging and the recordset. I have skipped the upload-function for the moment because I have made another version for that. It's also made with pure ASP-upload, and to be sure I don't replaces any other images I rename the start of the imagename with an autonumber ID taken from my Access DB. All images goes to the same directory.

I understand your problem sort of. I had the same trouble filling in the txtFileName. And I didnt manage to fix that the way I wanted. So in my source I have kept the txtFileName hidden, which makes it possible use that in the background enabling the rest of the script to work. And in the end I replace the actual URL with the command elmImage.src = document.PREVIEWPIC.src, maybe you can do something similar. Please compare the original 2.03 source with my and you'll see the small changes.

My actual problem was that I couldnt pass the values directly from the browsescript into the txtFileName without using a form in between, and I couldnt get the input type txtFileName to work within a form, thus leaving me with two fields (one outside and one inside the form). Since I am no javascript pro I couldnt get it to work any other way. Now, it does work, without causing trouble to the user so i am satisfied with that.