Questions about clicking the link to open a document

Source: Internet
Author: User
Click the link to open a document. Question 1: assume that there are two documents under the Filefolder: file 1.docx and file 2.docx. The first one is from office2003 and the second one is from office2007. I wrote & lt; ahref = & quot; file/document 1.doc & quot; & gt; link1 & l in the program about clicking the link to open a document.
Question 1: There are two documents under the Filefolder: document 1.docx and document 2.docx. The first is office 2003, and the second is office 2007. I can write link1 in the program to get a normal link. If you write link1, you will ask me to open a file named document 2.zip. Why?

Question 2: When I click link1, a prompt box is displayed asking if I want to open it directly or download it to a local device. Can I open this file without the prompt box?


Problem 3: When link3 is used to establish a link, a window is displayed on the left. How to define the length and width of the new pop-up window? it is best to have a simple window. you only need a close button! JavaScript is not required. thank you!

------ Solution --------------------
1. unclear
2. if you want to open it, you must write something to read the word document,
3. js implementation. many js pop-up windows, a string of google's
------ Solution --------------------
1. is your word version too low?
2. this is the behavior of the browser, which is difficult to estimate.
3. use the window. open () method instead.
------ Solution --------------------
Second, it is not difficult to use FLEX technology to read documents .. You can contact me Q: 1466519819 .. ATTILAX2@QQ.COM
------ Solution --------------------
3 is very simple.
------ Solution --------------------
1. Microsoft has always adhered to an action doc mode until office 2003. In this mode, any office document can be conveniently opened in ie. But the reality is that many users are beginning to give up ie. It seems unnecessary to continue. Since office 2007, Microsoft has adopted zip-encapsulated xml as the carrier, so ie does not recognize it anymore.

2. for a browser, a download dialog box is generated if it encounters an unrecognized file type.

3. Javascript must be used for implementation. simple window. open may not meet your needs, because most browsers intercept such pop-up windows by default.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.