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 8812367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:35:25+00:00 2026-06-14T03:35:25+00:00

As the title says.. is there a way to get it to work with

  • 0

As the title says.. is there a way to get it to work with IE?

I’m using:

document.getElementById('loadingImage').style.visibility='visible';

For

<img id="loadingImage" src="images/25.gif" style="padding:0px;margin-bottom:-7px;visibility:hidden;">

But it isn’t working. Thanks.

Edit:
Is is being called with list this
alert then reload page IN detect file extension upload script :

function TestFileType( fileName, fileTypes ) {
if (!fileName) return;

dots = fileName.split(".")
//get the part AFTER the LAST period.
fileType = "." + dots[dots.length-1];

if (fileTypes.join(".").indexOf(fileType) != -1) {
   document.getElementById('loadingImage').style.visibility='visible';
   return true;
} else {
   alert('Please select (.w3g) file only!');
   return false;
}
}

with

<input name="replay_file" id="replay_file" type="file" accept=".w3g*"/>
<input type="submit" id="upload_file" value="Upload" name="uploadReplay" onClick="return TestFileType(this.form.replay_file.value, ['w3g','.w3g']);" />
<img id="loadingImage" src="images/25.gif" style="padding:0px;margin-bottom:-7px;visibility:hidden;">

PS: This is not a duplicate question as the others were not so related.

  • 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-06-14T03:35:26+00:00Added an answer on June 14, 2026 at 3:35 am

    How about these 2 changes:

    replace this.form.replay_file.value with:

    document.getElementById('replay_file').value
    

    and add the missing semicolon at the end of this line:

    dots = fileName.split(".");
    

    By the way, you take the second argument of the function as an array and join it to a string. why not pass it as a string to begin with?

    Moreover, out of the 2 array members, ‘w3g’ will never match (only ‘.w3g’ might match) because you always look up a string that begins with a dot…

    And a recommendation: be consistent with the return type. If this function is expected to return a boolean, then the first line should be changed to:

    if (!fileName) return false;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Title says it pretty much all : is there a way to get the
As the title says, is there any way to get ahold of this information?
Well as the title says is there any way to get the system architecture
so basically like the title says is there a way to use NSSortDescriptor to
As the title says, is there a way to make the maximum value of
What the title says. Is there a way to change intellisense settings (intellisense box
As title says, is there any way to pull something like this up?: std::set<boost::shared_ptr<MyClass>>
As the title says, is there a way to load a Magento theme from
As the title says, what's the most efficient way to get a random selection
Like the Title says, Is there a way to disable bing's map auto background

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.