473,714 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Link to a file -- file download dialog box prompts user twice

579 Contributor
I've searched and searched for the answer to this question, but all I can find is javascript answers and I'm really not using javascript in my code.

I have a link to a powerpoint presentation and when it's selected, a dialog box comes up and asks if the user wants to open the file, save it, or cancel.

If open is selected, the presentation opens just fine. However, once you scroll to the next slide, the dialog box appears again asking if you want to open the file, save it, or cancel.

Does anyone know if this is because my file is too large, I've written something incorrectly in my code, or what the problem may be?

I appreciate any help I can get...I'm fairly new to html, so please be thorough in your explanation if you have one.

Feb 8 '08 #1
7 2919
Death Slaught
1,137 Top Contributor
I don't think your problem is with HTML, but post your code any ways.

(' . ')
(")(") , Death
Feb 8 '08 #2
579 Contributor
Ok...here's my code up to where I insert the links to the powerpoint presentations.

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  5. <style>
  6. <!--
  8. .mouseBeOffMe {
  9. border-top:    5px  solid #B7CEEC; 
  10. border-bottom: 5px  solid #B7CEEC; 
  11. border-left:   5px  solid #B7CEEC;
  12. border-right:  5px  solid #B7CEEC; 
  13. }
  15. .mouseBeOnMe {
  16. border-top:    3px  solid #B7CEEC;
  17. border-bottom: 7px  solid #B7CEEC;
  18. border-left:   5px  solid #B7CEEC; 
  19. border-right:  5px  solid #B7CEEC;
  20. }
  22. .mouseBeDown {
  23. border-top:    7px  solid #B7CEEC;
  24. border-bottom: 3px  solid #B7CEEC; 
  25. border-left:   5px  solid #B7CEEC; 
  26. border-right:  5px  solid #B7CEEC;
  27. }
  29. .mouseBeUp {
  30. border-top:    4px  solid #B7CEEC;
  31. border-bottom: 6px  solid #B7CEEC; 
  32. border-left:   5px  solid #B7CEEC; 
  33. border-right:  5px  solid #B7CEEC;
  34. }
  36. //-->
  37. </style>
  39. <title><<=>> Computer Help Center <<=>>&nbsp Provided by CRS Support &nbsp</title>
  41. <link rel="shortcut icon" href="P:/HTML Docs/favicon.ico"/>
  42. <link rel="stylesheet" type="text/css" href="link.css" />
  44. <!-- <table style="margin-left:0px" width="900px" height="150px" border="0" cellpadding="0" cellspacing="0" bgcolor="gray">
  45. <tr><td>
  47. <h1 align=center></td></tr></h1> -->
  48. </head>
  49. <a name="top"></a>
  50. <table BORDER="5" cellpadding="0" cellspacing="0" width="100%" bgcolor="#C11B17">
  51. <td width="234" valign="top">
  52. </a>
  53. </td>
  54. <th valign="middle" align="left" class="right">
  56. </table>
  57. <body>
  58. <table style="margin-left:1px" width="790px" border="0" cellpadding="0" cellspacing="2">
  59. <tr>
  60. <td width="137" class="content" valign="top"><br />
  61. <a class="left" href="FAQs[real].html" target="_top">
  62. <center>
  63. <img src="home5.jpg" 
  64. width="70" 
  65. height="30" 
  66. border="0" 
  67. alt="home" 
  68. class="mouseBeOffMe" 
  69. onmouseover="this.className='mouseBeOnMe'" 
  70. onmousedown="this.className='mouseBeDown'"
  71. onmouseup="this.className='mouseBeUp'" 
  72. onmouseout="this.className='mouseBeOffMe'"></center></a>
  74. <hr style="color:#153e7e" />
  76. <a class="left" href="FAQs[real].html" target="_top"></a>
  78. <b><a style="color:#C11B17">Introduction</a></b><br />
  79. <a class="left" target="_top" style="text-decoration:none" href="LAN_Presentation.ppt" onmouseover="this.style.textDecoration='underline';this.style.fontWeight='bold'" onmouseout="this.style.textDecoration='none';this.style.fontWeight=''">LAN Presentation</a><br />
  80. <a class="left" target="_top" style="text-decoration:none" href="RADplus_Presentation.ppt" onmouseover="this.style.textDecoration='underline';this.style.fontWeight='bold'" onmouseout="this.style.textDecoration='none';this.style.fontWeight=''">RADplus Presentation</a><br />
  81. <br />
Thanks for the help...
Feb 8 '08 #3
579 Contributor
I'm not sure if I mentioned it or not, but this site is being used at my job and isn't on a web server.

It's basically just a document that opens in a browser. We're using it for training purposes, so it's important that it function properly to prevent the user from questioning what's going on.

If anyone can help me out I would be extremely grateful...
Feb 9 '08 #4
579 Contributor
Forget it...I figured it out by myself.
Feb 10 '08 #5
6,050 Recognized Expert Expert
Forget it...I figured it out by myself.
Maybe if you'd post in the relevant forum, you'd get an answer.
Feb 11 '08 #6
Death Slaught
1,137 Top Contributor
Your page is invalid. That doesn't have anything to do with your presentation though, and I have no idea what could be causing it. Try asking in the Misc Question forum

(' . ')
Feb 11 '08 #7
579 Contributor
Maybe if you'd post in the relevant forum, you'd get an answer.
Are you serious? Relevant forum? And what forum would that be? I was only using HTML/CSS and if I'm not mistaken this is the HTML/CSS forum.
Feb 15 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

by: peetm | last post by:
I'd like to write to a log whenever a visitor to my site downloads a file. So, I'd like the link they click to be to a php 'page' that returns the file. Don't know how to do that! Side Question ... Presumably, the dialog that you see when you download a binary (asking for a 'Save As...' file name) is put up by your browser when it 'sees' non-text data coming back as a response? So, how would you download a text file - and cause...
by: Navin | last post by:
hi, guys i am using the following code to force a file download dialog in asp Response.ContentType = "application/vnd.ms-excel" response.AddHeader "content-disposition","attachment; filename=" &" & StrFileName Now the it works fine in ie5.5 sp2 but no ie5.5 sp1 it prompts the user twice the open dialog box.
by: Navin | last post by:
hi, guys i am using the following code to force a file download dialog in asp Response.ContentType = "application/vnd.ms-excel" response.AddHeader "content-disposition","attachment; filename=" &" & StrFileName Now the it works fine in ie5.5 sp2 but no ie5.5 sp1 it prompts the user twice the open dialog box.
by: Brian Paul | last post by:
When a user clicks on a linkbutton on a page, i would like to render a printer-friendly version of the asp.net page and download it as an html attachment to the browser. The code below works great, with a few exceptions: 1) IE displays the FIle Download dialog box twice. (You have to click the Open button twice) 2) the encoding of the page is set to Western European (Windows) versus UTF-8. #1 above is just a pain. #2 above results in...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.