Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-18-2002, 07:34 PM   PM User | #1
ksridhar69
New Coder

 
Join Date: Jun 2002
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
ksridhar69 is an unknown quantity at this point
is there a way to detect MS Word on client M/c

Hi Friends,
Is there a way to detect MS Word on client M/C.? Because we have a MIME type word. If word is not there on client M/C it is showing in html and user does not understand

ksridhar69 is offline   Reply With Quote
Old 06-18-2002, 07:36 PM   PM User | #2
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
What do you mean by "Client M/C" ?
QuackHead is offline   Reply With Quote
Old 06-18-2002, 09:45 PM   PM User | #3
scroots
Senior Coder

 
Join Date: Jun 2002
Location: UK
Posts: 1,137
Thanks: 0
Thanked 0 Times in 0 Posts
scroots is an unknown quantity at this point
i think he means clients machine (e.g. the user PC)

scroots
__________________
Spammers next time you spam me consider the implications:
(1) that you will be persuaded by me(in a legitimate mannor)
(2)It is worthless to you, when i have finished
scroots is offline   Reply With Quote
Old 06-18-2002, 09:47 PM   PM User | #4
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
Ok, I thought that's what he meant, but I was really not sure...

as far as detecting word or not, as someone said in the other posting of this same topic (Hint hint - no cross posting!) you can't detect word because it isn't a browser plugin.

All you can do is offer a download to Microsoft's free "word reader" it's kinda the same idea as acrobat...

~Quack
QuackHead is offline   Reply With Quote
Old 06-19-2002, 03:00 AM   PM User | #5
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
You can specify the MIME type - check out Dave Clark's posts by searching for "MIME" (you might want to check out the old forum on javascriptkit.com).
__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Old 06-19-2002, 03:05 AM   PM User | #6
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
another way is using client-side vbscript. it's a server-side forum but i'll post it anyway.

possible in IE only and activex is enabled in the browser

<script language="vbscript">
function detectWord()
on error resume next
set objWordDoc = CreateObject("Word.Document")
if (err.number<>0) then
detectWord=false
else
detectWord=true
end if
set objWordDoc=nothing
end function
</script>

<script language="javascript">
if (document.all) {
if (detectWord()) alert("You have MS Word installed.");
else alert("You must allow ActiveX control to run in your browser and \nYou must have

Microsoft Word installed in your computer.");
}
</script>
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app

Last edited by glenngv; 06-19-2002 at 03:16 AM..
glenngv is offline   Reply With Quote
Old 06-19-2002, 02:30 PM   PM User | #7
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
You can do alot of *weird* things with ActiveX controls, but that would assume that all the users to your site have ActiveX enabled... (I'm not sure if IE comes installed with ActiveX enabled...) AND all the users have to be using IE - because ActiveX is a Microsoft thing, and Gecko, Mozilla, Opera, etc. do not support it.

In short - there is no sure fire way to detect word.

~Quack
QuackHead is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:31 AM.


Advertisement
Log in to turn off these ads.