My guess is that onLoad="resizeIframeToFitContent(this) fires before the AJAX request has been satisfied, so calculates new height based on the served (pre AJAX) rendering of the page.
A workaround would be to get the AJAX response handler to call resizeIframeToFitContent() as its last statement before returning.
By leaving onLoad="resizeIframeToFitContent(this) in place for the other JSPs, the function would be called twice but maybe this is something you could live with. I doubt the extra processing time will be noticable. If it is noticable (or gives an odd visual effect) then I'm sure there must be some simple way to suppress the first call. Testing the URL of the loaded page would be unsophistocated but simple to implement.Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372