Questions about clicking a link to open a document
Source: Internet
Author: User
Questions about clicking a link to open a document.
1. Assume that there are "document 1.doc" and "document 2.docx" two documents under the file folder, the first one is Office 2003 and the second is Office 2007. I write Link1 in the program can be the normal link to get. If I write Link1, I'll be asked to open a file called "Document 2.zip". May I ask why this is?
2. When I click on Link1, a prompt box will appear asking if I want to open it directly or download it locally. Can you open this file directly without appearing in this box?
3. When you use LINK3 to create a link, the left side of the statement will pop up a window again. How to define the length and width of this new pop-up window, it is best to have a simple window, just need to have a close button on it! Do not need to use JS implementation, thank you!
------Solution--------------------
1, not clear
2. If you want to open it, ask you to write something that reads a Word document,
3, JS implementation, pop-up windows a lot of Js,google ha a big string
------Solution--------------------
1. Is your Word version too low?
2, this is the behavior of the browser, it is difficult to estimate.
3. Switch to window.open () method
------Solution--------------------
2nd, it's easy to use flex technology to read documents. can contact me q:1466519819 [email protected]
------Solution--------------------
3 is very simple.
------Solution--------------------
1, until Office 2003 Microsoft has been insisting on a pattern called Action Doc, in which any Office document can be easily opened in IE. But the reality is that many users are starting to give up ie. There seems to be no need to keep it going. So since Office 2007, Microsoft has adopted a zip-encapsulated XML as a carrier, so even IE no longer recognizes it.
2, for the browser, as long as the unrecognized file type encountered, will generate a download dialog box
3, must use JS to achieve, only simple window.open are not necessarily able to meet your needs, because most browsers are blocked by default such pop-up windows
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.