mr_zhang Posted October 18, 2007 Share Posted October 18, 2007 Hi, I'm looking for a JS code that enables me to resize the height of iframe. The iframe is from external domain. So far I've found codes that enables from same domain. I understand php, but practically blind about JS, so codes would be appreciated. Regards, Quote Link to comment https://forums.phpfreaks.com/topic/73760-auto-resize-extermal-iframe/ Share on other sites More sharing options...
fenway Posted October 19, 2007 Share Posted October 19, 2007 This is a cross-domain issue, many restrictions here... why resize it? Quote Link to comment https://forums.phpfreaks.com/topic/73760-auto-resize-extermal-iframe/#findComment-373232 Share on other sites More sharing options...
mr_zhang Posted October 22, 2007 Author Share Posted October 22, 2007 thanks for replying. I want it to auto resize because some of the contents are long and some are short. So, moving from pages to pages might be "strange". I currently using a long 400px height to avoid the scroll bar. If it could be auto resize the height, then it would be "nice looking". Many restrictions? So it's impossible? Quote Link to comment https://forums.phpfreaks.com/topic/73760-auto-resize-extermal-iframe/#findComment-375785 Share on other sites More sharing options...
fenway Posted October 23, 2007 Share Posted October 23, 2007 Not impossible, just difficult, since not all properties can be accessed / changed... see here. Quote Link to comment https://forums.phpfreaks.com/topic/73760-auto-resize-extermal-iframe/#findComment-376306 Share on other sites More sharing options...
mr_zhang Posted October 28, 2007 Author Share Posted October 28, 2007 Hi Fenway, Thanks for the reply. Yeah I've met the page before when I searched through Google. Problem is, I can't put any file or modify anything with the source page. It's a merchant and affiliate relationship thingy. So, I have the right to display the content but I can't modify or upload anything. Any solution for this? Quote Link to comment https://forums.phpfreaks.com/topic/73760-auto-resize-extermal-iframe/#findComment-379652 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.