menu iframe height percent

Asked by Bill Gosse

How do set the height of an Iframe using percent in a new menu. I tried using something like 80% but it didn't work very well. If I set it to something like just 1000 it looks pretty. I assume that defaults to pixels.

The reason we used the iframe option is because we are deploying existing content that's deployed on the same web server as the dev shell but that is in different directories. Using relative urls seems to work pretty well.

Question information

English Edit question
PHPDevShell Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
TitanKing (titan-phpdevshell) said :

Unfortunately you cant, this is a browser/javascript limitation that wont allow you to get the height of an external domain.

Revision history for this message
Bill Gosse (bill-gosse) said :

Actually all the resources are under the same domain.

Revision history for this message
TitanKing (titan-phpdevshell) said :

Why are you executing local content under an iFrame an not Ajax then? One should in general avoid iFrames like the plague.

Revision history for this message
tad (bittiez) said :

I don't know if you've solved this yet but if it's in the same domain why not use a include() instead of iFrame?

Can you help with this problem?

Provide an answer of your own, or ask Bill Gosse for more information if necessary.

To post a message you must log in.