Re: ie dynamic rendering 'feature'



if anyone is interested, I came up with this :

// :: Common.js
// Add common scripts here. To consume the scripts on a control add
//
// [RequiredScript(typeof(CommonScripts))]
// public class SomeExtender : ...
//
// to the controls extender class declaration.

var _layoutPending = false;
function _forceLayout()
{
if (!_layoutPending )
{
_layoutPending=true;
window.setTimeout( _forceLayout2 , 0 );
}
}
function _forceLayout2()
{
Sys.UI.DomElement.addCssClass( document.body , "JuNkJuNkJuNk" );
Sys.UI.DomElement.removeCssClass( document.body , "JuNkJuNkJuNk" );
_layoutPending=false;
}
Sys.UI.ForceLayout = _forceLayout;

.....

// :: ExtenderBehavior.js

....

Extender.Behavior.prototype = {
initialize: function() {
Extender.Behavior.callBaseMethod(this, 'initialize');
.....
Sys.UI.ForceLayout();
},
...
}





"gerry" <simpson-msdn@xxxxxxxxx> wrote in message
news:uxECVExgIHA.5624@xxxxxxxxxxxxxxxxxxxxxxx
I was playing around with ajax control extenders and created a simple
FrameExtender.
Basically it takes a panel and puts it inside a div that includes other
divs arranged in a frame around the original panel - pretty standard
stuff.
Only the target panel exists on the server , all other divs are created on
the client by the extender behaviour script. The extender created divs
are assigned css classes to get the desired layout & appearance.

Everything seemed to work very well until I tried adding multiple
Panels/Extenders to the page - in which case it seems that only the last
'frame' created is properly laid out. The problem being related to
background images not being constrained to their containers. Resizing the
browser window fixes the problem.
I tried different combinations of background image , color , repeat ,
position , overflow to no avail.

I am looking at this using IE7 , Firefox2 & Opera9 - IE is the only
browser in this group that has this problem, the other browsers display
the page as intended.

A complete bare essentials web project example of the problem is located
at http://dev2.gerzio.ca/webtest.zip

I think I am basically doing this correctly - FF/Opera seem to bear this
out, so I guess I am looking for a work around to get this working in IE.

Gerry







.



Relevant Pages

  • Re: IE - Insert newline into
    ?
    ... support innerHTML. ... // Webkit and Futhark both support outerHTML. ... The page will probably have other scripts that I don't control. ...
    (comp.lang.javascript)
  • RE: text truncation in dropdownlist control
    ... Thanks for the followup and your understanding. ... encapsulated control rather than a certain control with lots of scripts ... Thanks & Regards, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: command line vs grid control
    ... get grid control; ... If your scripts cover your requirements, ... The fact that their code is tested: Oracle wins ...
    (comp.databases.oracle.server)
  • Re: command line vs grid control
    ... get grid control; ... If your scripts cover your requirements, ... customers and developers will also remain in the dark. ... instruct your customers NOT to upgrade. ...
    (comp.databases.oracle.server)
  • Re: Non-JMS Scripts
    ... played to slimy perfection by Keith Szarabajka. ... even if he can't sell us the scripts. ... contrariwise, no amount of force can control a free man, a man whose mind ...
    (rec.arts.sf.tv.babylon5.moderated)