View Full Version : Iframe help.
ff123
05-28-2008, 10:59 PM
is there anyway for AUTO change in Iframe's Height and Width according to that page which is loaded inside it?
So, do you want it to load half the size? The full page?
ff123
05-28-2008, 11:34 PM
full page..
Medyman
05-29-2008, 03:12 PM
If all of your pages are from the same domain, you can use this script (http://dynamicdrive.com/dynamicindex17/iframessi2.htm). DD to the rescue, one again :D
ff123
05-29-2008, 04:12 PM
Its not helping.. It just show the first loaded page fine but if i Click another link inside that page and it shows half of that..
Medyman
05-29-2008, 08:25 PM
Do you have a link to your page? Are you nesting iframes here - opening up a page with frames within the iframe? When you view the "first loaded page" by itself, does it work properly?
I think, we'll need to see the site in question to fully understand and help rectify the situation.
jscheuer1
05-30-2008, 12:18 AM
There are a plethora of iframe resizing scripts available. I am guilty of authoring at least two such scripts. In doing so, and in troubleshooting those authored by others, I can tell you that none (including mine, and DD's) are even close to 100% reliable across browsers, particularly when you consider that even those that are to a degree cross browser, often cannot deal with the idiosyncrasies of a given page loaded into the 'resizable' iframe. This can often be worked out by reformatting the page(s) to be displayed in the 'resizable' iframe, if you have the access, time, and patience to do so. But, with iframe becoming deprecated, it's still not the ideal approach.
With notable exceptions, AJAX is a better approach in these sorts of cases. The most notable exception being where a script or scripts must run on the external page. However, even in these cases, something usually can get worked out. That's the good news. The bad news is that with imported scripts and AJAX, you really need to be quite lucky, or quite expert, or have someone who is, that will do it for you.
ff123
06-01-2008, 12:15 AM
hmm so is there any tutorial for Ajax, never worked with it actually Im not in programming.. anyone have any solution?
jscheuer1
06-01-2008, 12:26 AM
This is not a one size fits all situation. Without any specifics about your pages, we can only guess. I would say, in general, look here:
http://www.dynamicdrive.com/dynamicindex17/indexb.html
particularly at the AJAX scripts. This is a good entry level AJAX script from that index:
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
ff123
06-01-2008, 11:06 AM
the problem is i have nested links in the page that is loaded in iframe and they are of different height..
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.