I am using the coding below to open my file from pc to the frame call "myRTF". its can be function in vs.net browser but cannot function when i debug it and using Internet Exporer to run it. the function cannot retrieve content of the file into "myRTF".

Actually this is html code. but i wan to combine with my asp.net project. Please help!!

<SCRIPT language="javascript">
function openUpFile(path)
{ alert (path);
document.all.myRTF.src=path;
}
function doCommandOpenFile(ctrl)
{
window.open("open.htm","","resizeable=no,scrollbars=yes, left=30, top=30, menu=no, status=yes");
}
</script>

document.all doesnt work in all browsers as far as i know. use the more robust document.getElementById("myRTF")

That doesnt always work either especially with older browsers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.