Vernier
01-27-2013, 12:08 PM
Hi guys,
I've created a dropdown which will show different forms when each button is clicked. They work correctly but the iframe height won't set at 100%.
I'm currently using this:
<button class='button_$form[form_id]'>Show</button> $form[name]<div id='job_".$form[form_id]."'><iframe src='jobs.php?id=$form[form_id]' width='100%' scrolling='no'></iframe></div>
Each forms height will be different so I can't just set it at (x)px. What's the best way to do this?
Thanks :)
I've created a dropdown which will show different forms when each button is clicked. They work correctly but the iframe height won't set at 100%.
I'm currently using this:
<button class='button_$form[form_id]'>Show</button> $form[name]<div id='job_".$form[form_id]."'><iframe src='jobs.php?id=$form[form_id]' width='100%' scrolling='no'></iframe></div>
Each forms height will be different so I can't just set it at (x)px. What's the best way to do this?
Thanks :)