Javascript iFrame URL参数是否指向Wordpress中的?

Javascript iFrame URL参数是否指向Wordpress中的?,javascript,php,html,wordpress,iframe,Javascript,Php,Html,Wordpress,Iframe,我有一个页面,其中有一个外部页面的iframe嵌入。我想找到邮政编码 这是我的iframe: <iframe src="http://mortgagerates.icanbuy.com/?zip=" width="1020" height="1200"> (主站点) 但我希望我的框架和我的浏览器url如下所示: (我想要那样的东西) 这在wordpress中可能吗?怎么做?这是ajax页面。您想要使用ajax http://mortgagerates.icanbuy.com/a

我有一个页面,其中有一个外部页面的iframe嵌入。我想找到邮政编码

这是我的iframe:

<iframe src="http://mortgagerates.icanbuy.com/?zip=" width="1020" height="1200">

(主站点)

但我希望我的框架和我的浏览器url如下所示:

(我想要那样的东西)


这在wordpress中可能吗?怎么做?

这是ajax页面。您想要使用ajax

http://mortgagerates.icanbuy.com/ajax/rates-search?callback=jQuery17209362620610679678_1385958692723&source=1&results_count=0&period=PERIOD_FIXED_30YEARS&state=33&property_type=34&occupancy=49&fico=740&points=1.5&currently_working=Yes&property_interested=Yes&show_fha=0&cashout=0&city=10458&valoans=0&militaryaff=1&hadvabefore=0&rate_lock=99&loan=200000&transaction=54&ltv=80&cltv=80&DO_UPDATE_WRITE=0&id=d4ea9f8db0477778&external=0&_=1385958692873

您需要将您的
zipcode
传递到
city=10458
。其返回的是json编码格式。您只需将其解析到您的设计中。

请检查它。。我希望它能工作

<iframe src="http://mortgagerates.icanbuy.com/?zip" width="1020" height="1200"  class="iframe-wrapper">

并添加这个jQuery。就这样

<script type="text/javascript">
     $(function() {
    var search = window.location.search;
    search = search.replace("?","&");

    $(".iframe-wrapper").attr("src", $(".iframe-wrapper").attr("src")+search);
    });
</script>

$(函数(){
var search=window.location.search;
搜索=搜索。替换(“?”,“&”);
$(.iframe wrapper”).attr(“src”),$(.iframe wrapper”).attr(“src”)+搜索);
});