English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

OK this is what i am looking for...
if(Quicktime exists)
{
window.open(somthing)
}
else
window.open(somthing else)

I don't know how to check the (Quicktime=esixs) part... it should check for any computer... and see if the computer has that program... OK i will what for answers!!!! Thanks a lot for ur time

2007-06-15 05:29:33 · 4 answers · asked by bgarnik 1 in Computers & Internet Programming & Design

4 answers

You have to check for the plug in AND you have to write two versions of the code. Your javascript will have to "sniff" what flavor of browser is viewing the page. The link below is from irt.org, a useful reference for me when I did scripting.

Otherwise, this is a server-side program, which again "sniffs" the browser and then writes the html page on the fly before serving.

2007-06-15 05:40:20 · answer #1 · answered by Anonymous · 0 1

Try this:
http://blog.deconcept.com/2005/01/26/web-standards-compliant-javascript-quicktime-detect-and-embed/

2007-06-15 12:40:09 · answer #2 · answered by coffeeaddict_uk 3 · 1 0

javascript is not allowed to read files or check for the presence of information on the client's computer...so the best you can do is, do whatever you want in quicktime (if you can, in javascript) then have some provision for "gracefully degrading"...just as you must have provisions for gracefully degrading if the client has javascript totally disabled...i.e.,

You must have javascript enabled to see the above.

2007-06-15 12:36:28 · answer #3 · answered by fjpoblam 7 · 0 1

checking for programs can be a pain. there's loads of articles and helpful sites on getting round certain issues.

try: http://developer.apple.com/documentation/QuickTime/Conceptual/QTScripting_JavaScript/bQTScripting_JavaScri_Document/chapter_1000_section_2.html#//apple_ref/doc/uid/TP40001526-CH001-DontLinkElementID_4

2007-06-15 12:44:19 · answer #4 · answered by Dan M 2 · 1 0

fedest.com, questions and answers