Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 998731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:14:41+00:00 2026-05-16T07:14:41+00:00

It appears this code will request the file in Chrome and IE but not

  • 0

It appears this code will request the file in Chrome and IE but not in Firefox.

<script type="text/my-custom-mime-type" src="test.ashx">
</script>

Is there a some spec that says browsers should only process JavaScript related mime-types?
I know IE probably supports this because of the history with vbscript.

Once you have “content” like this downloaded how can you get access to it?
Does JavaScript/jQuery/? have some way of getting at this.

UPDATE
So there is 2 parts to question. Sounds like for the first part – the browser will download what it will download and I guess there isn’t much you can do about that based off the answers so far.

Example:
<script type="text/xml-script">
<page xmlns="http://schemas.microsoft.com/xml-script/2005">
<components>
<application load="page_load" />
</components>
</page>
</script>
</pre>

this is a snippet from Microsoft’s declarative MSAjax tech. Could you pull this in from an external file. Note: I’m not trying to use MSAjax here, but its a good example of a custom type being used for a script tag.

Part 2 – can you get access to the text if the “content” does download? For example, lets say its JavaScript – could you display it in a textbox? (without an explicit Ajax call)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:14:41+00:00Added an answer on May 16, 2026 at 7:14 am

    Is there a some spec that says browsers should only process JavaScript related mime-types?

    See the type attribute:

    This attribute gives an advisory hint as to the content type of the content available at the link target address. It allows user agents to opt to use a fallback mechanism rather than fetch the content if they are advised that they will get content in a content type they do not support.

    If you want to fetch arbitrary content for use in a script, use XMLHttpRequest.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How does the SpotLocation work? The following code will not display digital signature request(DSR)
I'm trying to run this code but this error appear: Uncaught TypeError: string is
I'm using CakePHP to send an email. My controller code looks like: if ($this->User->save($this->request->data))
I'm trying to use this gem to create a honeypot field, but I'm not
It appears this is the case. If I am marking a generic as a
Having read around it appears this should be possible. I have the following content
I realized that appears this interface in .NET Framework 4.5 I was looking first
Possible Duplicate: Plugging in to Java compilers Edit - this appears to be a
i have a column in wich the result appears like this: Column 1 999999999990
I'm attempting to map values of properties (via reflection) between different objects. This appears

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.