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

Language:
English Edit question
Status:
Answered
For:
PHPDevShell Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
TitanKing (titan-phpdevshell) said :
#1

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 :
#2

Actually all the resources are under the same domain.

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

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 :
#4

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.