Code & Technology Cocktail
Posts tagged bug
16
Feb
I had this very weird issue: there was a lot of whitespace around a flash movie for no reason.
The blue is generated by firebug when inspecting the object element.
After checking all the styles and the swfobject code, we found the issue: the browser zoom level was not at 100%.
So if you ever have the feeling that there is a whitespace bug in your flash movies, first check the browser zoom level.
2
Feb
Sweet you have all kind of cool jQuery on your page (overlayers, tooltips, hovers, …). Then you decide to add an asp:UpdatePanel but after the Update event all your scripts are broken.
We can fix this by executing all code within jQuery(document).ready() everytime the Update event is triggered:
<asp:UpdatePanel runat="server" ID="myUpdatePanel">
<ContentTemplate>
<!-- other code -->
</ContentTemplate>
</asp:UpdatePanel>
<script type="text/javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
documentReady(); //a function which contains all the code within jQuery(document).ready()
});
</script>
By Mike
