Hi,

I've got a DHTML problem that I have trouble figuring out.

I have an IFRAME that is used as a text editor, to add image-files to the text I'm using the following code:
Now what this doe is open a popup that gives me a dialogbox with which to select a file from my local system(the url is then inserted in to the IFRAME)
Is there any way to show a dropdownlist (populated with data from a db) instead of a browse -dialogbox?
(=Iknow how to do the db stuff, I'm sjust stumped by this dhtml thing..)

Thanks,..
------------------------------------------------------
function format(what,opt,ui) {
if (!bMode) {
alert(strErr);idEdit.focus();return
}
if (opt=="removeFormat") {
what=opt;opt=null
}
ui = (ui==true)
if (bMode) {
if (opt==null)
idEdit.document.execCommand(what,ui)
else
idEdit.document.execCommand(what,ui,opt)
var s=idEdit.document.selection.createRange(),p=s.parentElement()
if ((p.tagName=="FONT") && (p.style.backgroundColor!=""))
p.outerHTML=p.innerHTML
idEdit.focus()
}
sel=null
}
---------------------------------------------------------------------
AND...
----------------------------------------------------------------------
case "insertImage":
s+=" onmouseover='this.style.top=-25' onmouseout='this.style.top=0' ONCLICK=\""
s+="format('insertImage',null,true);this.style.top=0\" "
s+="TITLE=\"" + tooltip[i] + "\""
-------------------------------------------------------------------------