【发布时间】:2011-05-04 04:21:23
【问题描述】:
好的,我正在使用 WolfNet IDX 解决方案(住房搜索提供商)。他们提供脚本来返回指向其服务器上的页面的搜索结果。但是,客户希望将页面放置在他们自己站点内的 iframe 中,以便布局保持不变。
我的问题是这样的:
用户点击提交按钮后(下面的表单标签)
<form id="searchForm" name="searchForm" class="SearchForm" action="http://www.mlsfinder.com/ncsc_cmls/mollyazahn/index.cfm" method="post" onSubmit="quickSearch(this); return false;">
网站被重定向到另一个网站,我需要将返回的网站放入客户网站内另一个页面上的 iframe 中。
我该怎么做,不幸的是,除了 iframe 之外没有其他选项可供客户使用,它已被要求
这里是快速搜索功能
function quickSearch(frm) {
if (document.getElementById('temp_address')){if (frm.temp_address && frm.temp_address.value != "Address") frm.address.value = frm.temp_address.value;}
if (document.getElementById('temp_zip_code')){if (frm.temp_zip_code && frm.temp_zip_code.value != "Zip") frm.zip_code.value = frm.temp_zip_code.value;}
if (document.getElementById('temp_property_id')){if (frm.temp_property_id && frm.temp_property_id.value != "MLS Number") frm.property_id.value = frm.temp_property_id.value;}
frm.submit();
}
【问题讨论】:
标签: html forms iframe redirect