Showing posts with label creates. Show all posts
Showing posts with label creates. Show all posts

Wednesday, March 28, 2012

UpdateProgress Renders Differently in IE7

I am using an update progress control which contains an animated gif and then some text below. The style on the DIV creates a box around it. It renders fine in IE6 but IE7 the Please Wait...shows up outside the box...any suggestions? Here is the code and css style:

<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<Div class="wdeProgressIndicator">
<img src="http://pics.10026.com/?src=images/progressbar.gif" alt="Please Wait..." />
Please Wait...
</Div>
</ProgressTemplate>
</asp:UpdateProgress>

background-color: #ffffff;
margin: auto;
height: 10px;
width: 300px;
position: absolute;
left: 50%;
top: 40%;
margin-left: -150px;
margin-top: -5px;
border-right: #5d7b9d thin solid;
border-top: #5d7b9d thin solid;
border-left: #5d7b9d thin solid;
border-bottom: #5d7b9d thin solid;
padding-right: 5px;
padding-left: 5px;
padding-bottom: 5px;
padding-top: 10px;

If i do the following it works fine, so there has to be more html in the page, that is manipulating something. In any case, why not make the image a background-image on the div with the css, and rmeove the image tag all together, so the image is just part of the div anyway.

<html>
<style>
.wdeProgressIndicator{
background-color: #ffffff;
margin: auto;
height: 10px;
width: 300px;
position: absolute;
left: 50%;
top: 40%;
margin-left: -150px;
margin-top: -5px;
border-right: #5d7b9d thin solid;
border-top: #5d7b9d thin solid;
border-left: #5d7b9d thin solid;
border-bottom: #5d7b9d thin solid;
padding-right: 5px;
padding-left: 5px;
padding-bottom: 5px;
padding-top: 10px;
}
</style>

<body>
<Div class="wdeProgressIndicator">
<img src="http://pics.10026.com/?src=images/progressbar.gif" alt="Please Wait..." />
Please Wait...
</Div>
</body>
</html>


Good suggestion..thanks. That seems to work for now.

Saturday, March 24, 2012

upgraded to new March ctp, having 2 menu creates js error?

Hi I just upgraded to march ctp...

1. Are there any scripts? I saw in another topic post talk about copying the new scripts, but I thought its all in the dll now, http module to provide the javascript right? there are no .js files right?

2. I have 2 menus.. i am getting this error often (not always) upon moving my mouse off the menu/tab:

A Runtime Error has occurred.
Do you wish to Debug?

Line 220
Error: '0.cells' is null or not an object

I think it has something to do with the "Menu_Unhover" function for the menus, but I am not sure

First menu is in masterpage, second menu is tabbed and on a page that uses the ScriptManager and UpdatePanel

bump - this has been mentioned a few times.

It generates that error with a menu in a updatepanel.

If anyone knows how to fix the javascript to prevent this error as a workaround let me know.


I have not thoroughly tested, but I did this:

protected void Page_Load(object sender, EventArgs e)
{
//ScriptManager1.RegisterAsyncPostBackControl(ResumeWizardTabbedMenu);
ScriptManager1.RegisterControl(ResumeWizardTabbedMenu);
}

The idea came from this post:

http://forums.asp.net/1223652/ShowPost.aspx
ScriptManager1.RegisterAsyncPostbackControl(Menu1);

-chau


Hi everyone,

The Menu hover issue will be fixed in the April CTP of Atlas (soon to be released!).

Thanks,

Eilon