Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

ie dynamic rendering 'feature'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gerry - 11 Mar 2008 01:44 GMT
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
gerry - 11 Mar 2008 22:37 GMT
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();
   },
   ...
}

>I was playing around with ajax control extenders and created a simple
>FrameExtender.
[quoted text clipped - 24 lines]
>
> Gerry

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.