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
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
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
【在 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
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.
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.
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?
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?
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.
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.
l*0
20 楼
I fixed the problem. Thanks all.
j*e
21 楼
=_=猪背岭。。。。
相关阅读
A printable version of Java Interview Questions.Re: Must have public?Re: EJB35 books by O'Reilly uploadedFTP Server offlineRe: 推荐推荐database connection poolRe: OR mappingRe: 请推荐Java编译环境或软件?possible soluctionFrameWork of Thread application 1申请成立OOP俱乐部。(讨论稿)Rational Rose 2001a book ftp site.Re: How to make a JButton stay pressed?有趣的Thread问题Rational Rose 2000 is not badgrammy, are you still working on the game projectRe: 有人玩java3D么?JVM