im also having problem regarding javascript in fire fox here is my cod ewhich im callin g from server side
it works fine in IE
but fails in FIREFOX
Expand|Select|Wrap|Line Numbers
- public static void PrintProgressBar()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("<div id='updiv' style='Font-weight:bold;font-size:11pt;Left:320px;COLOR:black;font-family:verdana;Position:absolute;Top:140px;Text-Align:center;'> </div>");
- sb.Append("<script language='javascript' type='text/javascript'> var up_div=document.getElementById('updiv');up_div.innerText='';</script>");
- sb.Append("<script language='javascript' type='text/javascript'>");
- sb.Append("var dts=0; var dtmax=10;");
- sb.Append("function ShowWait()");
- sb.Append("{");
- sb.Append("var output;");
- sb.Append("output='Please wait while uploading!!!';");
- sb.Append("dts++;");
- sb.Append("if(dts>=dtmax)");
- sb.Append("dts=1;");
- sb.Append("for(var x=0;x < dts; x++)");
- sb.Append("{");
- sb.Append("output+='σ';");
- sb.Append("}");
- sb.Append("up_div.innerText=output;");
- sb.Append("up_div.style.color='red';");
- sb.Append("}");
- sb.Append("function StartShowWait()");
- sb.Append("{");
- sb.Append("up_div.style.visibility='visible';");
- sb.Append("ShowWait();");
- sb.Append("window.setInterval('ShowWait()',200);");
- sb.Append("}");
- sb.Append("StartShowWait();");
- sb.Append("</script>");
- HttpContext.Current.Response.Write(sb.ToString());
- HttpContext.Current.Response.Flush();
- }
it shows a progress bar in IE
but not in FireFOx
In FF it give error message
LENGTH PARAMETER CANT BE LESS THAN ZERO: PARAMETER LENGTH
Please post back a reply soon
Its urgent
Thanx in advance