|
Feedback: irt.org FAQ Knowledge Base Q267
Feedback on: irt.org FAQ Knowledge Base Q267
Sent by Joe on January 13, 2002 at 13:01:40: - feedback #3484
Technical: Not technical enough
Comments: How about an example of reading hidden frame text with JavaScript? I've tried several different methods and everyone returns the error 'Access Denied'. Thanks! Joe
Sent by Raghavendra Singari on Friday September 21, 2007 at 01:50:11 - feedback #5048
Worth: Not worth reading
Length: Too short
Technical: Not technical enough
Comments: Hi we can try using this function below..even though it activates the activex content i guess that should be fine ******************************************************************* function loadworddoc(){
var doc = new ActiveXObject("Word.Application"); // creates the word object
doc.Visible=false; // doesn't display Word window
doc.Documents.Open("C:\\Documents and Settings\\trainer\\Desktop\\Samjad.doc"); // specify path to
document
//copy the content from my word document and throw it into my variable
var txt;
txt = doc.Documents("C:\\Documents and Settings\\trainer\\Desktop\\raghu.doc").Content;
document.all.myarea.value = txt;
doc.quit(0); // quit word (very important or you'll quickly chew up memory!)
} *******************************************************************
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.