Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: incrediBILL
I design online educational courses, the problematic one in this case being a Chemistry course for high school. Because of all the material that the instructor wanted to include in the course, we decided to put a lot of it on CD and ship it out to the students that the website would automatically access when the students clicked on the appropriate link. I knew this caused problems in Firefox with accessing a local file etc, but at the time less than 1% of our students were using it. Now it seems that SP2 has the same problems.
So the question is, how do I access a file on a CD, from a link on our web server? Currently, all I do is use the following:
onclick="window.open('file:///' + top.CDPath() + '/data/demonstrations/demo3.htm','','width=570,height=430')"
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="400">
<param name="movie" value="demo3.swf">
<param name="quality" value="high">
<embed src="demo3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400"></embed>
If I use the object tag from a file on the server, I can access the swf files with no problem, but seeing as how the code is already there, I was wondering if there was a way to access the htm files on the CD. Anyone have any ideas?
(Assuming the CDPath variable is a reference to a drive letter with trailing colon (D:), probably established by the student during the session's start.)
Just thinking ...
Anyway, if I download the page to my harddrive and then access the cd from there, there is no problem. It's only when a server tries to access the local computer that the problem arises. Anyway, I'll see if I can figure anything out by playing with a few things.
<edit>In particular, note the info on the "UniversalFileRead" privilege about half-way down the page. (allows window.open of file:/// URIs)</edit>