在iframe中提交表单奇怪的结果

时间:2013-03-19 13:52:07

标签: forms iframe

我有一个测试页面,里面有一个iframe。如果我在父页面表单上搜索某些内容(即PR,IT),它会在iframe中触发结果,但是有一个小问题,我们在左列没有正确的选项,这是过滤选项(nr。所产生的作业,城市选择等)。如果我在iframe上搜索同样的东西,结果是正确的,我们可以过滤结果。我不明白我做错了什么。

这是在iframe中触发结果的父页面表单:

<form id="SearchForm" action="http://mysite.com/search-results-jobs/" target="my-iframe"   method="post">
    <input type="hidden" name="action" value="search" />
    <input type="hidden" name="listing_type[equal]" value="Job" />
            <label><strong>What?</strong>
<em>
<input type="text" value="job title, keywords or company name" 
onblur="if(this.value=='') this.value='job title, keywords or company name'" 
onFocus="if(this.value =='job title, keywords or company name' ) this.value=''" name="keywords   [all_words]" />

</em></label>




            <label><strong class="color">Where?</strong><b><input      type="text" value="city, state or zip code"  
onblur="if(this.value=='') this.value='city, state or zip code'" onFocus="if(this.value =='city, state or zip code' ) this.value=''" name="City[all_words]" /></b></label>


            <a href="#" class="SearchForm-link" onclick="one(); two();   three(); four();">Search</a>
        <input type="submit" id="btn-search" class="button"  value="Cauta"/></form>

0 个答案:

没有答案
相关问题