I am trying to take a static iframe product offering and make it responsive or at least change its contents if a user changes the window size.
When I display products from my suppliers affiliate interface all is static. I call the cols, rows, width and height to output an iframe of a set amount of products.
The individual products are always 250px wide and 300px height. So as you can see the below gives me a 750 x 1200px iframe with 12 products:
<div id="products">
<script type="text/javascript" src="http://www.mysupplier.com/aff_interface.php?cols=3&rows=4&w=750&h=1200"></script>
</div>
I have tried numerous ways, with no success to get the product frame to dynamically change the size of the inside product grid ... I can get the new values into cols, rows, w and h based on the resize() of the div "products" but I cannot get the scr in the script to reload with the changed values.
I've got no idea if I am going about this correctly. Your help is greatly appreciated.