473,608 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

beacon
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.

Thanks...
Feb 8 '08 #1
7 2912
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
beacon
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>
  4.  
  5. <style>
  6. <!--
  7.  
  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. }
  14.  
  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. }
  21.  
  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. }
  28.  
  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. }
  35.  
  36. //-->
  37. </style>
  38.  
  39. <title><<=>> Computer Help Center <<=>>&nbsp Provided by CRS Support &nbsp</title>
  40.  
  41. <link rel="shortcut icon" href="P:/HTML Docs/favicon.ico"/>
  42. <link rel="stylesheet" type="text/css" href="link.css" />
  43.  
  44. <!-- <table style="margin-left:0px" width="900px" height="150px" border="0" cellpadding="0" cellspacing="0" bgcolor="gray">
  45. <tr><td>
  46.  
  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">
  55.  
  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>
  73.  
  74. <hr style="color:#153e7e" />
  75.  
  76. <a class="left" href="FAQs[real].html" target="_top"></a>
  77.  
  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 />
  82.  
  83.  
Thanks for the help...
Feb 8 '08 #3
beacon
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
beacon
579 Contributor
Forget it...I figured it out by myself.
Feb 10 '08 #5
Markus
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

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
Feb 11 '08 #7
beacon
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

5
5825
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...
1
1994
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.
1
4924
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.
7
2248
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...
0
8011
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,...
0
8503
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8488
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8358
tracyyun
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...
0
6826
agi2029
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...
0
3972
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4036
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2479
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
1
1611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.