?
Solved

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

Posted on 2007-12-04
5
Medium Priority
?
220 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Suggested Courses
Course of the Month8 days, 2 hours left to enroll

765 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