•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 402,965 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 2,587 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 JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1332 | Replies: 7
![]() |
•
•
Join Date: Aug 2007
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
I have been trying to figure out how to open documents such as Word and Excel files with functional toolbars but I am stumped. Can anyone provide some insight on this?
This is the code I'm using to launch the links:
function deadCenter(url) {
putItThere = window.open(url,'putItThere','width='+wd+',height='+ht+',left='+((chasm-wd-10)*.5)+',top='+((mount-ht-25)*.5)+',scrollbars,status,titlebar,toolbar,directories');
if (putItThere & !putItThere.closed)
putItThere.focus();
}
THis sounds like a security issue.
Allowing a web page to do this would also allow a web page to access parts of a user's hard disk without the user's permission. It could also give the user unwanted access to server files. So the user is allowed to see the document using the program, but not allowed to edit it.
For the user to be able to edit the document, it must be downloaded to the user's computer with FTP or a similar means. Then the user must on his own volition act to open the file, using Windows Explorer or My Computer.
Allowing a web page to do this would also allow a web page to access parts of a user's hard disk without the user's permission. It could also give the user unwanted access to server files. So the user is allowed to see the document using the program, but not allowed to edit it.
For the user to be able to edit the document, it must be downloaded to the user's computer with FTP or a similar means. Then the user must on his own volition act to open the file, using Windows Explorer or My Computer.
Daylight-saving time uses more gasoline
•
•
Join Date: Aug 2007
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
THis sounds like a security issue.
Allowing a web page to do this would also allow a web page to access parts of a user's hard disk without the user's permission. It could also give the user unwanted access to server files. So the user is allowed to see the document using the program, but not allowed to edit it.
For the user to be able to edit the document, it must be downloaded to the user's computer with FTP or a similar means. Then the user must on his own volition act to open the file, using Windows Explorer or My Computer.
I'm just trying to allow the user to print or save the document. How do I enable the print and save functionality?
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation:
Rep Power: 5
Solved Threads: 47
Simply allow the user to donwload the document rather than showing it in a popup window. A good browser will give an option; for the user to either save the file, or open it; when one clicks a link like:
http://mysite.tld/mydocument.doc
Opening the document should open it in the registered application for .doc files. To my knowledge, it's only internet explorer that defaults without asking to opening word files in an internet explorer-mixed-with-ms word window. It's an awful feature.
However, the print and save features of the File toolbar should work anyway; even when the doc is in an IE window..
http://mysite.tld/mydocument.doc
Opening the document should open it in the registered application for .doc files. To my knowledge, it's only internet explorer that defaults without asking to opening word files in an internet explorer-mixed-with-ms word window. It's an awful feature.
However, the print and save features of the File toolbar should work anyway; even when the doc is in an IE window..
If it only works in Internet Explorer; it doesn't work.
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation:
Rep Power: 5
Solved Threads: 47
I would. That way, a nice browser; Firefox, Opera etc, will prompt to open ( in the default .doc application ) or save the file, and IE may or may not open the file in the browser window depending on preferences... File>Print and File>Save as should certainly still work, even in an IE mixed with Word window...
If it only works in Internet Explorer; it doesn't work.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax apple applications asp cocoa codeweavers commercial computer crossover dell developer development download drivers exchange firefox framework google graphics home intel internet java linux mac microsoft microsystems mozilla msdn news next office open open source open-source openoffice operating pricing red hat software source sql step sun super system ubuntu vista windows wine
- Shortcuts (Windows tips 'n' tweaks)
- WIN98SE protection (Viruses, Spyware and other Nasties)
- For Kali2005: HackTool.Rootkit - Help Needed (Viruses, Spyware and other Nasties)
- Wireless Internet is Terminated in an Abnormal Way!!! (Networking Hardware Configuration)
- Need Help for DNS Problem and 'about:blank' Problem ... (Viruses, Spyware and other Nasties)
- icon appears on desktop? (Windows 9x / Me)
- Internet access problems linked to norton? (Viruses, Spyware and other Nasties)
- Yet another IE home page hijacking (Viruses, Spyware and other Nasties)
- Set Permissions for Shared Files and Folders (Windows tips 'n' tweaks)
- Set, View, Change, or Remove Special Permissions for Files and Folders in Windows XP (Windows tips 'n' tweaks)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How to get the javascript objects in html body tag
- Next Thread: Problem with javascript:setInterval



Linear Mode