pigsfoot
08-29-2007, 09:57 AM
Hi,
I'm new to this forum so apologies if this has been answered before, I have looked but didn't find anything.
I am writing a website that needs to use iFrames, I know there not great but the system runs off a bid MySQL database which then feeds several websites hence the reason i need them.
The issue I have is being able to alter the height of an iframe via a hyperlink.
The site address is http://www.smovemovedemo.co.uk , this is my work in progress site so it's a bit messy I’m afraid.
The index page center frame calls the different pages via iframe tags. The first page also sets the default centre iframe height to be around 900px.
What I need to be able to do is when the show ads ( bottom left ) link is clicked the hyper link calls a new page and places it in my centre frame. The problem is this page is built from the database and shows houses for sale. When the page is put together the height is around 300px taller than the default so i need to change the height on the fly for different pages.
The code for my first page is
<iframe Name="centremain" FRAMEBORDER="0" HEIGHT="898" WIDTH="708" src="http://www.smovemovedemo.co.uk/mainpagecontent.htm"></iframe>
The code for the hyper link is
<A HREF="http://www.smovemove.co.uk/estate/cgi-bin/mojoEstate.cgi?type=search&action=search&cat_c=0&min_property_price=0&max_property_price=100000000&cat_a=&submit.x=27&submit.y=24" TARGET="centremain" title="text by rod">show ads</a>
Is this possible ??. I have looked at various Java Script solutions but they don't seem to work via a hyperlink.
Any help would be appreciated as I have been working on this for 3 days now and it's getting frustrating.
Thanks.... Pigsfoot
I'm new to this forum so apologies if this has been answered before, I have looked but didn't find anything.
I am writing a website that needs to use iFrames, I know there not great but the system runs off a bid MySQL database which then feeds several websites hence the reason i need them.
The issue I have is being able to alter the height of an iframe via a hyperlink.
The site address is http://www.smovemovedemo.co.uk , this is my work in progress site so it's a bit messy I’m afraid.
The index page center frame calls the different pages via iframe tags. The first page also sets the default centre iframe height to be around 900px.
What I need to be able to do is when the show ads ( bottom left ) link is clicked the hyper link calls a new page and places it in my centre frame. The problem is this page is built from the database and shows houses for sale. When the page is put together the height is around 300px taller than the default so i need to change the height on the fly for different pages.
The code for my first page is
<iframe Name="centremain" FRAMEBORDER="0" HEIGHT="898" WIDTH="708" src="http://www.smovemovedemo.co.uk/mainpagecontent.htm"></iframe>
The code for the hyper link is
<A HREF="http://www.smovemove.co.uk/estate/cgi-bin/mojoEstate.cgi?type=search&action=search&cat_c=0&min_property_price=0&max_property_price=100000000&cat_a=&submit.x=27&submit.y=24" TARGET="centremain" title="text by rod">show ads</a>
Is this possible ??. I have looked at various Java Script solutions but they don't seem to work via a hyperlink.
Any help would be appreciated as I have been working on this for 3 days now and it's getting frustrating.
Thanks.... Pigsfoot