User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 391,912 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,666 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 875 | Replies: 1
Reply
Join Date: Mar 2007
Location: malaysia
Posts: 10
Reputation: Joycelyn is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Joycelyn's Avatar
Joycelyn Joycelyn is offline Offline
Newbie Poster

Help!!!!open function cannot run in IE

  #1  
Mar 26th, 2007
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>
Always be happy!!No matter u sad o happy, the life still going on!!
joycelsnjar@yahoo.com
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2006
Location: Its the internet... i am everywhere lol
Posts: 274
Reputation: f1 fan is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 10
f1 fan f1 fan is offline Offline
Posting Whiz in Training

Re: Help!!!!open function cannot run in IE

  #2  
Mar 27th, 2007
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 7:52 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC