mostenscer
asked on
Changing Iframe Heigh (URGENT)
I have this Application and I can my web applications inside it as tools. But once the application is deployed It appears as an iframe.
Since my was not written to run as an iframe so but now since its deployed in another application client side pages of my application run as an Iframe.
Now since I never declared any ifram so there is no iframe id. I can refer to the parent window though.
My problem is that I want to change the height of iframe my application appears in within that large application. how can change that since i dont have the iframe id
but i can refer to the parent window.
Its really an SOS type issue right now
Since my was not written to run as an iframe so but now since its deployed in another application client side pages of my application run as an Iframe.
Now since I never declared any ifram so there is no iframe id. I can refer to the parent window though.
My problem is that I want to change the height of iframe my application appears in within that large application. how can change that since i dont have the iframe id
but i can refer to the parent window.
Its really an SOS type issue right now
assuming there are no other iframes, try parent.getElementsByTagNam e('IFRAME' )[0].setAt tribute('h eight', 100);
ASKER
no it doesnt have a name coz i never created my pages as frames they were adapted by the preant application as frames . so NO
and there are other frames as well.
Now what i am thinking abt is getting the listen of iframes from the parents {i dont know how though please help} and try with each one of them? please
shun me here if i am wring
and there are other frames as well.
Now what i am thinking abt is getting the listen of iframes from the parents {i dont know how though please help} and try with each one of them? please
shun me here if i am wring
getElementsByTagName('IFRA ME') will return an array with all of the iframes
ASKER
and how do iterate through that array? there are atmost 4 frames and how how do i set the height to 80% or so one by one to see which is the one i am looking for
I am sorry but i really need to get this done and i am not javascript developer:(
I am sorry but i really need to get this done and i am not javascript developer:(
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
its not doing any thing
What is the domain of the main page and the iframe page? Please look at my last comment which explains a security feature that would explain why it isn't working. Let me know if you have any questions.
bol
bol
Why the C grade (see grading guide at https://www.experts-exchange.com/help.jsp#hi73)? Did you still have a question or need help with this?
bol
bol
Does the iframe have a name? Is it the only iframe? You could try one of the options below.
parent.framename.height = '200px';
OR
parent.frames[0].height = '200px';
OR
parent.frames("framename")
Let me know if you have any questions or need more information.
b0lsc0tt