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

  • Home
  • SEARCH
  • 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 3626976
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:49:48+00:00 2026-05-18T23:49:48+00:00

My code is working fine in Firefox and Internet Explorer 6 but Internet Explorer

  • 0

My code is working fine in Firefox and Internet Explorer 6 but Internet Explorer 7 is not showing images.

Here is the code,

<script type="text/javascript">
    function ShowImage()
    {
        //document.getElementById('videoupload').valuedocument.getElementById('videoupload').value.replace( "file:///", "")
        var img = document.createElement("IMG");
        if(document.all)
            img.src = document.getElementById('videoupload').value;
        else if(window.sidebar)
        {
            //  solution for FF
            img.src = document.getElementById('videoupload').files.item(0).getAsDataURL();
        }
        else
            img.src = document.getElementById('videoupload').value;

        document.getElementById('show').appendChild(img);
        //alert(img.src);
    }
</script>
<form name="frmlist" enctype="multipart/form-data" method="post">
      Filename: <INPUT type="file" id="videoupload">
      <INPUT type="button" id="btn_video" onClick="ShowImage();" value="Upload">
 </form>
 <div id="show"></div>
  • 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-18T23:49:48+00:00Added an answer on May 18, 2026 at 11:49 pm

    It is a security issue since IE7.
    It will only work from low security, e.g. people will need to add your site to trusted sites or load the page from harddisk

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

Sidebar

Related Questions

This line of code is working fine for Firefox $(#<%=txt1.ClientID%>).text() but not for IE8
This is my code.Its working fine on firefox <script language=JavaScripttype=text/javascript> window.onload=function createDiv() { var
I have javascript that working fine in Firefox 3.x.x, but it does not work
Why is my following code not working in Internet Explorer? It work fine in
Hi Javascript gurus, I have this Javascript code which is working fine on Firefox
Its working in Firefox but in Internet Explorer the select(dropdown) just hide from the
My CSS code below is working fine in Chrome, but isn't working in Firefox.
Why this Simple Javascript function not working in Internet Explorer Version 8. Why myvalue
I'm seeing this issue in Internet Explorer 8, but not in Safari or Firefox.
I have tested alot. Code is working fine in FIREFOX 5 but same code

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.