Solved

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

Posted on 2007-12-04
5
213 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
5 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed with points refunded (500)

Computer101
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This article discusses how to create an extensible mechanism for linked drop downs.
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.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now