Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 27th, 2004, 06:20 AM
Authorized User
 
Join Date: Jun 2003
Location: Kuala Lumpur, Wilayah Persekutuan, Malaysia.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to maha
Default Words Document

Hi all,

I created a html file and have a link to open a words document. Below is my code:

<a href="C:\Program Files\Microsoft Office\Office10\WINWORD.EXE" "G:\TTP\Template\maha-test.doc">View Document</a>

This command manage to open MS Words but not the document. I know something is not correct with the command. Please assist.

Thanks,
Maha
Reply With Quote
  #2 (permalink)  
Old September 27th, 2004, 06:31 AM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

That's odd. For me the browser tries to download the exe, even locally.

Anyhow, you can't have Windows command line as a link. Just link to the doc and it will open in Word by association, within or outside the browser, if the system is set up that way.

(o<
//\ =^..^=
Reply With Quote
  #3 (permalink)  
Old September 29th, 2004, 01:02 AM
Friend of Wrox
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simple <a href="/config.doc">link to word document </a> will also work if the document exist in the same directory otherwise you need to provide a qualified path

Charul Shukla
Reply With Quote
  #4 (permalink)  
Old September 29th, 2004, 01:56 AM
Friend of Wrox
Points: 1,288, Level: 14
Points: 1,288, Level: 14 Points: 1,288, Level: 14 Points: 1,288, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: Stockholm, Sweden
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Dear Charul Shukla your code wil try to download the file while Huma wants to open in in the browser or simply open in in word




(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is how you got it
Reply With Quote
  #5 (permalink)  
Old September 29th, 2004, 02:00 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
quote:Originally posted by qazi_nomi
 Dear Charul Shukla your code wil try to download the file while Huma wants to open in in the browser or simply open in in word

Untrue.

If Word is installed and in its file associations "Confirm open on download" is not checked then the link will open Word. Whether Word is integrated with IE or opened as a separate applicationis governed by the setting "Browse in same window".

--

Joe
Reply With Quote
  #6 (permalink)  
Old September 29th, 2004, 02:07 AM
Friend of Wrox
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Right joe

Charul Shukla
Reply With Quote
  #7 (permalink)  
Old September 29th, 2004, 02:16 AM
Friend of Wrox
Points: 1,288, Level: 14
Points: 1,288, Level: 14 Points: 1,288, Level: 14 Points: 1,288, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: Stockholm, Sweden
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

No no if we want to open it without any prompt then how we do as some of PDF files open in the browsers without any prompt
How to avoid the prompt message ?


(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is how you got it
Reply With Quote
  #8 (permalink)  
Old September 29th, 2004, 02:37 AM
Friend of Wrox
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As joe said earlier also, i think its more depand on the settings, like on my machine it did not asked me any question and open the word doucment right there in browser by integrating the MS-WORD in it.

Charul Shukla
Reply With Quote
  #9 (permalink)  
Old September 29th, 2004, 03:08 AM
Friend of Wrox
Points: 1,288, Level: 14
Points: 1,288, Level: 14 Points: 1,288, Level: 14 Points: 1,288, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: Stockholm, Sweden
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Dear it is due to that when first time message apears it ask that in future ask this or direct open it u clikc on open so that why there is no any prompt message


(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is how you got it
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count the number of words in a PDF document basil123 Pro PHP 5 May 27th, 2009 01:00 AM
why I can't use Chinese words? cash JSP Basics 4 February 19th, 2004 10:47 PM
why I can't use Chinese words? cash Pro JSP 1 February 17th, 2004 02:40 PM
Count the number of words in a PDF document. basil123 PHP How-To 0 October 16th, 2003 06:51 AM
generating words kozam C++ Programming 1 September 30th, 2003 12:54 PM



All times are GMT -4. The time now is 03:51 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.