Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

theprizefight

macrumors member
Original poster
Oct 29, 2006
91
0
I have a page Im working on, on which I want to use an iframe. I want the iframe to be a login page which is already built and functional.

If I insert an iframe linking to google, e.g.
HTML:
<iframe src="http://www.google.com/" width="100%" height="260px" scrolling="no" /></iframe>

then it displays just as expected.

However, if I change the iframe source to that login page, e.g.:

HTML:
<iframe src="myLoginPage.aspx" width="100%" height="260px" scrolling="no" /></iframe>

something strange happens. When I load the page, it appears normally for a brief moment, but then the whole browser page changes to just the iframe source, full screen.

Since the iframe source page features some javascript, and is in the form .aspx, im wondering if this may be the reason why its acting strange? if thats the case, are there any known hacks to force it to stay in an iframe instead of opening as a new page?

thanks in advance.
 
I would temporarily remove the JavaScript from myLoginPage.aspx and see what happens. I've seen the same sort of thing happen before, due to scripts trying to resize the frame.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.