O
Owen Jacobson
Salve.
I'm working on a prototype web-based frontend for an application[0] as
part of a proposal at work. Development is on a Windows server[1] using
IIS[1]; installing extra modules like PHP or ActiveState Perl, while
possible, will seriously impact the prototype evaluation later.
This is a strictly internal web tool, and not meant for the internet at
large; nonetheless, I'd like to keep it as standards-compliant as
possible. The target browser right now is Internet Explorer[1], but I'd
like it to work properly under as many Javascript-enabled user agents as
possible and be at least usable under any HTTP agent. That latter
requirement works, right now.
Right now, the frontend is two frames[1]; the top one ("display") contains
a simple HTML page that contains an image pulled from the application
itself, while the bottom frame ("control") has a pair of forms for
manually entering queries for the application.
One of the two queries involves querying a pixel on the image for feature
information. Right now, the form requires you to type in the X and Y
coordinate of the pixel you'd like to query. I'd like to be able to query
by clicking directly on the image in "display". For a variety of reasons,
I'd rather implement this on the client side than write more server-side
code; Javascript is the obvious choice for that.
Is there any way I can, when the image in "display" is clicked, transmit
the relative x,y coordinate of the click to the relevant fields in the
form on frame "control" and then submit the form?
[0] An implementation of the OpenGIS Web Map Service specification
[1] Chorus: "Doctor, it hurts when I do this!"
I'm working on a prototype web-based frontend for an application[0] as
part of a proposal at work. Development is on a Windows server[1] using
IIS[1]; installing extra modules like PHP or ActiveState Perl, while
possible, will seriously impact the prototype evaluation later.
This is a strictly internal web tool, and not meant for the internet at
large; nonetheless, I'd like to keep it as standards-compliant as
possible. The target browser right now is Internet Explorer[1], but I'd
like it to work properly under as many Javascript-enabled user agents as
possible and be at least usable under any HTTP agent. That latter
requirement works, right now.
Right now, the frontend is two frames[1]; the top one ("display") contains
a simple HTML page that contains an image pulled from the application
itself, while the bottom frame ("control") has a pair of forms for
manually entering queries for the application.
One of the two queries involves querying a pixel on the image for feature
information. Right now, the form requires you to type in the X and Y
coordinate of the pixel you'd like to query. I'd like to be able to query
by clicking directly on the image in "display". For a variety of reasons,
I'd rather implement this on the client side than write more server-side
code; Javascript is the obvious choice for that.
Is there any way I can, when the image in "display" is clicked, transmit
the relative x,y coordinate of the click to the relevant fields in the
form on frame "control" and then submit the form?
[0] An implementation of the OpenGIS Web Map Service specification
[1] Chorus: "Doctor, it hurts when I do this!"