I also posted this in the JavaScript section, hoping to find a solution there…
I’m working on a php program that allows instructors to see a list of classes that they are currently teaching as links which take them to a page of students that are in that class. If the student has submitted a paper (in .doc format), a link to the file is displayed beside the student’s name. The uploading of the file is taken care of by a separate program. Getting the file to download is no problem. My problem is that I need to track in the database if the file has been downloaded or not. Instead of making just a straight link to the file, I’m making the link go to a php function where after doing database work, I build a string containing the JavaScript window.open(path_to_file) which I pass to another page along with an updated list of students. On the new page, I get both the list of students and a file download dialog box in Firefox, but in IE, I only get the list of students. Pop-ups aren’t getting blocked, as I initially thought, because it works when I have the JavaScript in the original page with the list of students. Any thoughts? I’d like to hear any suggestions on how I can handle this better. I can show code if needed.