Jagarm Posted October 19, 2008 Share Posted October 19, 2008 Hello everyone, My web site http://beta.berwari.net/music uses an iframe to display a music page from http://music.berwari.net/andromeda.php, since I cannot use it otherwise. So I am trying to get height of the other page in order to set the iframe height the same size as the other page. Thanks Link to comment https://forums.phpfreaks.com/topic/129129-get-heightwidth-of-another-page/ Share on other sites More sharing options...
DarkWater Posted October 19, 2008 Share Posted October 19, 2008 ...What? Link to comment https://forums.phpfreaks.com/topic/129129-get-heightwidth-of-another-page/#findComment-669437 Share on other sites More sharing options...
Jagarm Posted October 19, 2008 Author Share Posted October 19, 2008 What do you mean "what?". If you need more info I'll be happy to give. Link to comment https://forums.phpfreaks.com/topic/129129-get-heightwidth-of-another-page/#findComment-669454 Share on other sites More sharing options...
DarkWater Posted October 19, 2008 Share Posted October 19, 2008 Yeah. I don't get what you mean by height/width of the iframe, since it seems like the page is full width/height of the screen when you access it directly. Also, why can't you 'use it otherwise' if the page is on the same site? >_> Just explain a little bit more and hopefully someone can help. Link to comment https://forums.phpfreaks.com/topic/129129-get-heightwidth-of-another-page/#findComment-669456 Share on other sites More sharing options...
Jagarm Posted October 19, 2008 Author Share Posted October 19, 2008 I just realized that I have posted on the wrong topic under regex where it should be under php help. Apologize for that. I have this page: http://music.berwari.net/andromeda and I display it inside an iframe in http://beta.berwari.net/music, right now I have a fixed width of 2500px. I want to know if there is a way to get the height of http://music.berwari.net/andromeda and use that height on the iframe, so nobody notices it is an iframe I'm using. I hope this makes it clear. Thanks for the reply Link to comment https://forums.phpfreaks.com/topic/129129-get-heightwidth-of-another-page/#findComment-669460 Share on other sites More sharing options...
DarkWater Posted October 19, 2008 Share Posted October 19, 2008 I'm going to have to say that you can't get the height of the rendered page. Maybe someone else can think of a way, but I really can't. Sorry. >_< Link to comment https://forums.phpfreaks.com/topic/129129-get-heightwidth-of-another-page/#findComment-669461 Share on other sites More sharing options...
Jagarm Posted October 19, 2008 Author Share Posted October 19, 2008 That's all right. Thanks anyways. We'll wait if there's a way to do this or anyone else may know Link to comment https://forums.phpfreaks.com/topic/129129-get-heightwidth-of-another-page/#findComment-669462 Share on other sites More sharing options...
DarkWater Posted October 19, 2008 Share Posted October 19, 2008 Come to think of it, you might be able to pull off some Javascript solution. Read the search results for 'javascript document height'. I thought of it and searched, then found things like: http://codylindley.com/Webdev/295/javascript-get-page-height-with-scroll Try some things out. It might take some clever JS to actually work though. >_< Link to comment https://forums.phpfreaks.com/topic/129129-get-heightwidth-of-another-page/#findComment-669464 Share on other sites More sharing options...
Jagarm Posted October 20, 2008 Author Share Posted October 20, 2008 I found other sites with the same issue as me like the following site: http://www.webdeveloper.com/forum/showthread.php?t=93094 but still does not work. I'm playing around with it, hopefully it'll work. I know it'll deny me to get the height from another domain but both of the pages are on the same domain. Link to comment https://forums.phpfreaks.com/topic/129129-get-heightwidth-of-another-page/#findComment-669644 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.