It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Progress bar image not coming in IE & working fine in Mozil

Progress bar image not coming in IE & working fine in Mozil

Postby neha_kulkarni777 on Sat Dec 20, 2008 6:57 am

Hi all
My prgress bar image is working fine in Mozilla but not working in IE ...
js code
Code: Select all
var docs = document.getElementById("ProgressImg");
            docs.style.visibility="visible";
            docs.style.position="absolute";            
            document.getElementById("btnUpload").disabled=true;         


Xsl Code
Code: Select all
<tr>
                                    <td width="20%"></td>
                                    <td width="80%">
                                    <div id="ProgressImg" style="visibility:hidden;">
                                       <img id="img" src="images/action/animation/UploadStatus.gif" height='15' width='70%'/>
                                    </div>
                                    </td>
                                 </tr>


please help me
neha_kulkarni777
 
Posts: 21
Joined: Tue Nov 04, 2008 12:08 pm

Re: Progress bar image not coming in IE & working fine in Mozil

Postby rangana on Sat Dec 20, 2008 1:53 pm

Let us know how to run your code.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Re: Progress bar image not coming in IE & working fine in Mozil

Postby neha_kulkarni777 on Tue Dec 30, 2008 8:25 am

Thanks a lot sir for replying my post

this is my code from where i am calling my Javascript

Code: Select all
<tr>
                                    <td width="20%"></td>
                                    <td width="80%"><INPUT type="button" name="btnUpload" id="btnUpload" value="Upload" onclick="validateField()" /></td>
                                 </tr>
                                 
                                 <tr>
                                    <td width="20%"></td>
                                    <td width="80%">
                                    <div id="ProgressImg" style="visibility:hidden;" >
                                       <img id="img" src="images/action/animation/UploadStatus.gif" height='15' width='70%'/>
                                    </div>
                                    </td>
                                 </tr>


and the below code is javascript code

Code: Select all
function validateField()
{
........
........
if (document.getElementById("btnUpload"))
{
var checkOK = document.getElementById("hStripOutChars").value;
var eleValue = document.getElementById("Comments").value;
var allValid = true;
for (var x = 0;  x < eleValue.length;  x++)
{
var ch = eleValue.charAt(x);
for (var j = 0;  j < checkOK.length;  j++)
{
   if (ch == checkOK.charAt(j))
   {
   allValid = false;
   break;
   }
}
if (!allValid)
{
alert("A comment can not contain following characters " + checkOK);
document.getElementById("Comments").focus();
return false;
}
document.getElementById("btnUpload").disabled=true;
var docs = document.getElementById("ProgressImg");
//alert("Visibility-1- "+docs.style.visibility);
docs.style.visibility="visible";
//alert("Visibility-2- "+docs.style.visibility);
//docs.style.position="absolute";         
}
document.forms[0].submit();
return true;   
}
}



Problems
1> When i am using IE, then i am not able to see the progress bar ,only the image(box) is displayed but no animation is displayed inside the image(box).
2>I am using -->>
Code: Select all
// alert("Visibility-1- "+docs.style.visibility); 
docs.style.visibility="visible";
//alert("Visibility-2- "+docs.style.visibility);

when i click the Upload button this alert comes with the value hidden, when i click ok then i am able to view the status bar , with the alert with the value visible ,
But if i click ok again the image is there but animation is lost
.................... please can u help me ... i am unable to get where the problem exactly comming from..

Regards




Progress bar Working fine in FireFox , but not working in IE
Please Help
neha_kulkarni777
 
Posts: 21
Joined: Tue Nov 04, 2008 12:08 pm

Re: Progress bar image not coming in IE & working fine in Mozil

Postby chinnimp on Fri Mar 13, 2009 4:56 am

I am also facing same problem, if you found any solution pls help on this.

When we are working in Vista IE7, it is working fine. But, when we are werking in Windows Server 2008 IE7, it is not showing progress.

If you any answers pls post it.

Thanks in advance,
Chinni
chinnimp
 
Posts: 1
Joined: Wed Mar 11, 2009 5:15 pm

Re: Progress bar image not coming in IE & working fine in Mozil

Postby rangana on Fri Mar 13, 2009 5:31 am

Hi Chinni,

Could you please provide a link to your page?

...Also ensure that JS is enabled.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 6 guests