Solved

get "file download security warning" as a result of dynamically added script tag

Posted on 2007-12-04
5
218 Views
Last Modified: 2013-12-08
I create dynamically a script tag in the DOM, set it's type to text/javascript and its source to the url of my server.
The server replies with valid javascript and contentType 'application/x-javascript'
On some of my clients machines running IE6 occasionally this reply is causing a download box to popup.
Any pointers would be appreciated.
0
Comment
Question by:livepersoninc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 20402686
http://annevankesteren.nl/2005/02/javascript-mime-type

seems to tell us it is not understood by IE

Is the filename ending in .js too?
0
 
LVL 1

Author Comment

by:livepersoninc
ID: 20402746
Yes. That was the first thing that we changed - made sure that the request had a file.js part in it. We are now in the process of deploying a fix that will use 'text/javascript' as a content type.
Maybe it will be helpful: all instances of this problem happen on the corporate network computers.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 20953151
PAQed with points refunded (500)

Computer101
Community Support Moderator
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Debugging Html 8 32
Bootstrap question 4 32
How to build a web site 17 57
Table header must be on top 2 30
Several part series to implement Internet Explorer 11 Enterprise Mode
This article discusses how to implement server side field validation and display customized error messages to the client.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question