PDA

View Full Version : Quick Iframe Question



travist6983
02 Sep 2009, 02:54 PM
Ok i have a form that i would like to post data to an iframe from and i get it to work with the iframe on the page. but once i try to post to the iframe on a different page then the form is on my iframe doesn't show anything

here is a sample of what i was using to get it to work all on the same page and i am trying to get the iframe to work on property-search-mls.php



<form id="searchForm" name="searchForm" target="iframe" action="http://www.mlsfinder.com/oh_cbr/streetsothebysrealty/index.cfm" method="post" onSubmit="document.getElementById('iframe').src='http://www.mlsfinder.com/oh_cbr/streetsothebysrealty/index.cfm';">
<input id="action" name="action" value="newsearchsession" type="hidden">
<input id="search" name="search" value=" Search for Properties" type="submit">

<iframe name="iframe" id="iframe" width="100%" height="800"></iframe>

if anyone can give me some insite on this i would be forever greatful i have spent a good part of today trying to get this to work

thanks