avatar
JAVA URL question, help# Java - 爪哇娇娃
a*s
1
在看白饭如霜的生存者,
赫然间里面出现了:
训练地,美国俄勒冈胡德山,猪背岭
哈哈哈哈哈
avatar
l*0
2
Hi,
I'm using JAVA URL to download some data from U.S Census. I have a problem.
http://factfinder.census.gov/servlet/AGSGeoAddressServlet?_MapEvent=&_category=&_subcategory=&_stateSelectedFromDropDown=Pennsylvania&context=ags&programYear=50%3A420&street=1383%2BLONG%2BRUN%2BRD&city=FRIEDENSBURG&states=Pennsylvania&zip=17933&geo_id=&_p
if you copy the above url and put them into the explore. you will find the
Census
website would pop up a window saying "Factfinder cannot locate the address
you
ent
avatar
i*n
3
为什么 哈哈?

【在 a****s 的大作中提到】
: 在看白饭如霜的生存者,
: 赫然间里面出现了:
: 训练地,美国俄勒冈胡德山,猪背岭
: 哈哈哈哈哈

avatar
g*g
4
When you talk about popup, check javascript in that page.

【在 l*****0 的大作中提到】
: Hi,
: I'm using JAVA URL to download some data from U.S Census. I have a problem.
: http://factfinder.census.gov/servlet/AGSGeoAddressServlet?_MapEvent=&_category=&_subcategory=&_stateSelectedFromDropDown=Pennsylvania&context=ags&programYear=50%3A420&street=1383%2BLONG%2BRUN%2BRD&city=FRIEDENSBURG&states=Pennsylvania&zip=17933&geo_id=&_p
: if you copy the above url and put them into the explore. you will find the
: Census
: website would pop up a window saying "Factfinder cannot locate the address
: you
: ent

avatar
a*s
5
恩,我以为我们这个小破地儿没人知道

【在 i*******n 的大作中提到】
: 为什么 哈哈?
avatar
l*0
6
the server uses Javascript. I don't know how to deal with it in JAVA code.

【在 g*****g 的大作中提到】
: When you talk about popup, check javascript in that page.
avatar
i*n
7
哈哈,出名了。
英文叫啥?

【在 a****s 的大作中提到】
: 恩,我以为我们这个小破地儿没人知道
avatar
g*g
8
Usually it will return some status code and when javascript finds that
status
it pops up. So in java code you check that status code too.

【在 l*****0 的大作中提到】
: the server uses Javascript. I don't know how to deal with it in JAVA code.
avatar
a*s
9
Mt. Hood

【在 i*******n 的大作中提到】
: 哈哈,出名了。
: 英文叫啥?

avatar
l*0
10
in its page source code:
function checkAddressValidity() {
if (document.mapForm.IS_ADDRESS_VALID.value == "N" && document.mapForm.
street.value != "") {
alert("Factfinder cannot locate the address you entered.");
document.mapForm.street.focus()
}
what's the corresponding status code in JAVA? i mean, which class and which
method can do that?

【在 g*****g 的大作中提到】
: Usually it will return some status code and when javascript finds that
: status
: it pops up. So in java code you check that status code too.

avatar
i*n
11
猪背岭呢?

【在 a****s 的大作中提到】
: Mt. Hood
avatar
g*g
12
parse the html, that's it.

which

【在 l*****0 的大作中提到】
: in its page source code:
: function checkAddressValidity() {
: if (document.mapForm.IS_ADDRESS_VALID.value == "N" && document.mapForm.
: street.value != "") {
: alert("Factfinder cannot locate the address you entered.");
: document.mapForm.street.focus()
: }
: what's the corresponding status code in JAVA? i mean, which class and which
: method can do that?

avatar
a*s
13
话说我没听说过唉

【在 i*******n 的大作中提到】
: 猪背岭呢?
avatar
l*0
14
the problem with parsing the html is that no matter whether the popup
windows comes up or not(meaning no matter whether the server found the
address), the return html page is the same. no error message in the returned
page.

【在 g*****g 的大作中提到】
: parse the html, that's it.
:
: which

avatar
i*n
15
电视上是怎么说的呢?

【在 a****s 的大作中提到】
: 话说我没听说过唉
avatar
g*g
16
document.mapForm.IS_ADDRESS_VALID.value == N
The form value is what you should check, if you don't develop
this website, you can't expect error code.

returned

【在 l*****0 的大作中提到】
: the problem with parsing the html is that no matter whether the popup
: windows comes up or not(meaning no matter whether the server found the
: address), the return html page is the same. no error message in the returned
: page.

avatar
a*s
17
啊?这就是一个中文小说里面猛不丁出现的……
我也不知道英文咋说了

【在 i*******n 的大作中提到】
: 电视上是怎么说的呢?
avatar
l*0
18
the problem with parsing the html is that no matter whether the popup
windows comes up or not(meaning no matter whether the server found the
address), the return html page is the same. no error message in the returned
page.

【在 g*****g 的大作中提到】
: parse the html, that's it.
:
: which

avatar
i*n
19
哦,好像终于明白了白饭如霜是什么了。

【在 a****s 的大作中提到】
: 啊?这就是一个中文小说里面猛不丁出现的……
: 我也不知道英文咋说了

avatar
l*0
20
I fixed the problem. Thanks all.
avatar
j*e
21
=_=猪背岭。。。。
avatar
v*l
22
Hog Back Ridge

【在 a****s 的大作中提到】
: 话说我没听说过唉
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。