[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

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

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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.
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…
Suggested Courses

656 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