Results 1 to 1 of 1
Aug 3, 2010, 15:38 #1
- Join Date
- Aug 2010
- 0 Post(s)
- 0 Thread(s)
Trying to resize an iframe window or find an alternative
I have a mysql database with a bunch of quotations in it. I created a blog at http://aro2220.blogspot.com
At the top of the blog is an iframe window that directs to http://aro2220.com/blog
On that page it uses php to pull out a random quote from the database. The iframe window displays that quote onto the blog.
It works great except that the height is not automatically resizing.
var stringvariable = http://aro2220.com/blog/index.html;
int stringlength = stringlength(stringvariable);
int autosize = 200 + stringlength * 5;
<iframe width="100%" frameborder="0" src="http://aro2220.com/blog" height=$autosize scrolling="no"></iframe>