【发布时间】:2011-02-17 07:23:19
【问题描述】:
我想执行一个远程 javascript,它将用户重定向到我域上的另一个页面,其中包含 s 作为查询字符串传递的数据。我想获取传递到我域上的页面的这些数据。
$.getScript('http://site.com/foo.js', function() {
//foo.js redirects to another page on my domain with data
// and i d like to capture that data from this function,
// at least if i find the parameters that passed on there, i ll be fine.
});
怎么办?
【问题讨论】:
-
你能解释一下这个重定向是怎么发生的吗? foo.js 是否包含更改 window.location.href 的脚本?当您说“s 作为查询字符串传递的数据”时,s 是什么?
-
foo.js 重定向到我的页面说:mypage.aspx?a=1&b=2 等等。
-
你被重定向了对吧?你需要什么?更改重定向的查询字符串?
-
你能看一下这个问题吗?
标签: asp.net javascript asp.net-ajax jquery