HELP
I use the following code to use the "InsertDocument" method as a file manager. Works perfectly fine in IE but in Firefox it doesn't write the value into the text box unless i put a something like a windows alert in front of the value set. With the alert not commented out this works in Firefox (as long as you don't close the alert before you pick a file). With it commented out it doesn't write the value to the eventPDF textbox.
function callInsertPDF()
{
var editor = obj_editorPDF;
editor.FocusDocument();
_Format(editor,"New");
_Format(editor,"InsertDocument");
InputURL();
document.getElementById("eventPDF").focus();
function InputURL()
{
var editdoc = editor._frame.contentWindow.document;
var imgs = editdoc.getElementsByTagName("a");
if(imgs.length>0)
{
//alert("File Selected");
document.getElementById("eventPDF").value = imgs[imgs.length-1].href;
}
else
{
setTimeout(InputURL,500);
}
}
}