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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:36:42+00:00 2026-06-10T22:36:42+00:00

Below is my code…… Response.Write(<Table style=’border:1px solid #0B5226;background-color: white;’ runat=’server’ width = ‘100%’> <Tr

  • 0

Below is my code……

    Response.Write("<Table style='border:1px solid #0B5226;background-color: white;' runat='server' width = '100%'> <Tr style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#000000; vertical-align:middle; text-align:left;'><Td width='15%'> <img src='../Images_v4/Common/Progress.gif' /></Td><Td width='80%' style='text-align: left;word-break: break-all;'><Div>In</Div></Td></Table>");
    Response.Flush();
    Response.Write("<script language='javascript'>");

    Response.Write("var nr = document.all.length;");
    Response.Write("for(i=0;i<nr;i++)");
    Response.Write("{");

    Response.Write("if(document.all(i).tagName == 'IMG' && document.all(i).nameProp == 'Progress.gif')");
    Response.Write("{");
    Response.Write("document.all(i).src = '../Images_v4/Common/Success.png';");
    Response.Write("}");

    Response.Write("if(document.all(i).tagName == 'DIV' && document.all(i).innerHTML == 'In Progress...')");
    Response.Write("{");
    Response.Write("document.all(i).innerHTML = 'Processed Successful';");
    Response.Write("}");



    Response.Write("}");
    Response.Write("</script>");

    Response.Flush(); 

The above code shows status message from an aspx page by writing response and after some time when a particular things has completed working it changes the status image from progress to success.
The above code works fine in IE since the document.all(i).nameProp seems to work in IE.But this thing does’nt work in other browser such as chrome and mozilla.Is there any alternative to document.all(i).nameProp which works in all browsers.Or any other method of achieving this.
I’m using c# web application

  • 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-10T22:36:43+00:00Added an answer on June 10, 2026 at 10:36 pm

    I’d suggest document.getElementsByTagName('*'). document.all is for old IE (IE5) only.

    nameProp is also IE only, but a similar can be easily achieved by a simple regex function:

    For absolute compatibility:

    function getFileName(path) {
        return path.match(/[-_\w]+[.][\w]+$/i)[0];
    }
    
    var all = document.all || document.getElementsByTagName('*');
    for(var i=0, elem; elem=all[i++];) {
        if (elem.tagName == 'IMG' && getFileName(elem.src) == 'Progress.gif') {
            elem.src = '../Images_v4/Common/Success.png';
        }
        ... THE SAME FOR THE DIVS.
    }
    

    It might also be a good to not go through all the elements on the page:

    var imgs = document.getElementsByTagName('img');
    var divs = document.getElementsByTagName('div');
    for(var i=0, elem; elem=imgs[i++];) {
        if (getFileName(elem.src) == 'Progress.gif') {
            elem.src = '../Images_v4/Common/Success.png';
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below code is not working in IE but working in Chrome... $(this).css(border,solid 1px green)
Below code is not working in IE.. input:focus,textarea:focus,select:focus { border:1px solid #fafafa; -webkit-box-shadow:0 0
Below code doesn't seem to change the background color of dropdownlist. Please advice. var
Below code is the response from the server: xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema><soap:Body><SendCardDetailsResponse xmlns=http://tempuri.org/><SendCardDetailsResult><ROOT xmlns=><DocumentElement><res-auth><auth-data count='1' ><**attribute
Below code works fine: <?php session_start(); $_SESSION['color'] = 'blue'; class utilities { public static
Below is my code and I have been trying to color the cells but
Below code not work, but it's work fine for jsf1.2. Now the framework is
Below code saying error incorreect syntax near Main INSERT INTO tbl ( 'Week', Main,
below code is my databasehandler class i got it from a tutorial. Beside that
Below code : URL oracle = new URL(http://www.oracle.com/); URLConnection inputStream =oracle.openConnection(); InputStream in =

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.