Professional Web Applications Themes

Is this possible in ASP? - ASP Database

Hi, I had posted the question yesterday, however I did not get a real answer. PROBLEM: I need to work on a project with a state map with associated counties. On clicking a county, it should give the summary stats of crime for that county on a box on the page. On double clicking a county a new page with detail crime report for that county should pop up. Question 1) My first question is: can asp be applied here to accomplish the above goal. 2) I cannot figure out as to how to handle the event when one moves ...

  1. #1

    Default Is this possible in ASP?

    Hi,
    I had posted the question yesterday, however I did not get a real answer.

    PROBLEM:
    I need to work on a project with a state map with associated counties. On
    clicking a county, it should give the summary stats of crime for that county
    on a box on the page. On double clicking a county a new page with detail
    crime report for that county should pop up.
    Question 1) My first question is: can asp be applied here to accomplish the
    above goal. 2) I cannot figure out as to how to handle the event when one
    moves from one county to another that will trigger the changes in the summary
    value in the box. 3) Does this need just one map showing the various
    counties? Thanks in advance.
    Jack Guest

  2. #2

    Default Re: Is this possible in ASP?

    Jack wrote: 
    ANSWER:
    No, this is not possible in ASP (which is strictly server-side code). You
    need an image to react to user-initiated events. This can only be
    accomplished via client-side code. Please follow up in a client-side
    newsgroup such as .scripting.jscript or one of the groups with "dhtml" in
    their names (the latter are pretty low-traffic groups - you'll probably have
    better luck in the .scripting group).

    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Guest

  3. #3

    Default Re: Is this possible in ASP?

    "Jack" <microsoft.com> wrote in message
    news:com... 
    county 
    the 
    summary 


    Chris Guest

  4. #4

    Default Re: Is this possible in ASP?

    Response inline

    "Jack" <microsoft.com> wrote in message
    news:com... 
    county 
    the 

    Yes and no. Yes, you could make a trip back to the server everytime a county
    was clicked and re-render the map and include crime data for the county
    selected. But as Evertjan suggested in his reply to your original post, this
    could and probablly should be handled on the client side. He also provided a
    link to a resource that appears to do just that. What you won't be able to
    do is respond to a double-click using ASP. ASP has no idea what a
    double-click is.
     
    summary 

    You cannot handle this client-side event using ASP which operates on the
    server-side.
     

    Yes


    Chris Guest

  5. #5

    Default Re: Is this possible in ASP?

    See this site:
    http://us.cnn.com/ELECTION/2004/pages/results/president/

    If you mouseover a state, you'll get summary information.
    If you click on a state, you are redirected to a new page with detailed
    information.
    Take a look at the code. It should get you started in the right direction.

    "Jack" <microsoft.com> wrote in message
    news:com... 
    county 
    the 
    summary 


    Raymond Guest

  6. #6

    Default Re: Is this possible in ASP?

    "Jack" <microsoft.com> wrote in message
    news:com... 
    county 
    the 
    summary 

    Which state? What kind of stats?

    One approach is to have the server-side generate an array of the data you
    want and the client-side display the appropriate array entry for the
    selected county.


    McKirahan Guest

  7. #7

    Default Re: Is this possible in ASP?

    "McKirahan" <com> wrote in message
    news:MLSid.359295$.. [/ref]
    answer. [/ref]
    On 
    > county 
    > the [/ref]
    one 
    > summary 
    >
    > Which state? What kind of stats?
    >
    > One approach is to have the server-side generate an array of the data you
    > want and the client-side display the appropriate array entry for the
    > selected county.[/ref]

    Here's an example of my approach using states.

    The MS-Access database consists of one table named "states" with two fields:
    "Code" and "State"; it contains 51 records: one for each state plus the
    District of Columbia.

    <% Language="VBScript" %>
    <% Option Explicit
    '*
    '* Declare Constants
    '*
    Const cASP = "state.asp"
    Const cMDB = "state.mdb"
    Const cDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    '*
    '* Declare Variables
    '*
    Dim arrRST(1)
    ' arrRST(0) = Code
    ' arrRST(1) = State
    Dim intRST
    intRST = 0
    Dim strRST
    Dim strSQL
    strSQL = "SELECT * FROM states"
    Dim arrSTA(51)
    Dim intSTA
    intSTA = 0
    '*
    '* Declare Objects
    '*
    Dim objADO
    Set objADO = Server.CreateObject("ADODB.Connection")
    objADO.Open cDSN & Server.MapPath(cMDB)
    Dim objRST
    Set objRST = objADO.Execute(strSQL)
    '*
    '* Process Managers
    '*
    Do While Not objRST.EOF
    arrRST(0) = objRST("Code")
    arrRST(1) = objRST("State")
    strRST = Join(arrRST,"|")
    intSTA = intSTA + 1
    'Response.Write("<br>" & intSTA & ". " & strRST)
    arrSTA(intSTA) = strRST
    objRST.MoveNext
    Loop
    '*
    '* Destroy Objects
    '*
    Set objRST = Nothing
    objADO.Close
    Set objADO = Nothing
    %>
    <html>
    <head>
    <title><%=cASP%></title>
    <script type="text/javascript">
    function Lookup(stateCode) {
    for (var i=1; i<state.length; i++) {
    if (state[i].substr(0,2) == stateCode.toUpperCase()) {
    var lines = state[i].split("|");
    var whois = "";
    for (var j=0; j<lines.length; j++) {
    if (j > 0) whois += "\n";
    whois += lines[j];
    }
    alert(whois);
    break;
    }
    }
    }
    var state = new Array();
    <% For intSTA = 1 To UBound(arrSTA) %>
    state[<%=intSTA%>] = "<%=arrSTA(intSTA)%>";
    <% Next %>
    </script>
    </head>
    <body>
    <center>
    <img src="http://www.waypoint.org/usmap1.gif" border="0" width="499"
    height="321" alt="Click on a State." usemap="#Map">
    </center>
    <map name="Map">
    <area shape="rect" onclick="javascript:Lookup('mex')" title="Mexico"
    coords="172,296,225,319">
    <area shape="rect" onclick="javascript:Lookup('can')" title="Canada"
    coords="199,9,264,30">
    <area shape="rect" onclick="javascript:Lookup('ak')" title="Alaska"
    coords="7,245,85,313">
    <area shape="poly" onclick="javascript:Lookup('al')" title="Alabama"
    coords="338,203,362,201,374,244,350,248,351,257,33 9,257">
    <area shape="poly" onclick="javascript:Lookup('ar')" title="Arkansas"
    coords="278,189,323,190,310,223,309,230,279,229">
    <area shape="poly" onclick="javascript:Lookup('az')" title="Arizona"
    coords="98,170,143,176,133,239,112,238,80,214">
    <area shape="poly" onclick="javascript:Lookup('ca')" title="California"
    coords="22,92,59,102,49,134,87,192,81,213,61,213,3 1,183,16,110,23,91">
    <area shape="poly" onclick="javascript:Lookup('co')" title="Colorado"
    coords="151,131,209,138,208,181,143,174">
    <area shape="poly" onclick="javascript:Lookup('ct')" title="Connecticut"
    coords="456,102,469,99,469,104,458,112">
    <area shape="rect" onclick="javascript:Lookup('ct')" title="Connecticut"
    coords="474,128,490,139">
    <area shape="rect" onclick="javascript:Lookup('dc')" title="District of
    Columbia" coords="453,169,473,180">
    <area shape="poly" onclick="javascript:Lookup('de')" title="Delaware"
    coords="442,132,451,138,453,146,444,144">
    <area shape="rect" onclick="javascript:Lookup('de')" title="Deleware"
    coords="455,147,471,158">
    <area shape="poly" onclick="javascript:Lookup('fl')" title="Florida"
    coords="408,246,348,252,350,258,392,270,420,310,43 9,304">
    <area shape="poly" onclick="javascript:Lookup('ga')" title="Georgia"
    coords="384,201,361,203,375,252,407,247,411,233">
    <area shape="rect" onclick="javascript:Lookup('hi')" title="Hawaii"
    coords="91,259,167,313">
    <area shape="poly" onclick="javascript:Lookup('ia')" title="Iowa"
    coords="260,109,298,107,310,121,303,141,266,142,25 7,119">
    <area shape="poly" onclick="javascript:Lookup('id')" title="Idaho"
    coords="101,29,110,31,136,82,132,114,84,105">
    <area shape="poly" onclick="javascript:Lookup('il')" title="Illinois"
    coords="310,121,303,141,308,158,325,179,331,179,33 9,159,336,126,330,117">
    <area shape="poly" onclick="javascript:Lookup('in')" title="Indiana"
    coords="336,126,358,122,362,154,347,168,336,168,33 8,158">
    <area shape="poly" onclick="javascript:Lookup('ka')" title="Kansas"
    coords="210,149,270,149,274,159,276,186,208,182">
    <area shape="poly" onclick="javascript:Lookup('kn')" title="Kentucky"
    coords="327,185,331,179,338,170,352,167,367,154,38 2,159,389,169,378,179">
    <area shape="poly" onclick="javascript:Lookup('la')" title="Louisiana"
    coords="281,230,309,230,307,251,322,251,327,260,33 2,272,284,268">
    <area shape="poly" onclick="javascript:Lookup('ma')" title="Massachusetts"
    coords="454,93,474,87,485,99,477,101,472,97,454,99 ">
    <area shape="rect" onclick="javascript:Lookup('ma')" title="Massachussetts"
    coords="480,106,498,117">
    <area shape="poly" onclick="javascript:Lookup('md')" title="Maryland"
    coords="410,138,441,132,440,136,442,144,449,152,44 5,156,436,148">
    <area shape="rect" onclick="javascript:Lookup('md')" title="Maryland"
    coords="457,158,476,169">
    <area shape="poly" onclick="javascript:Lookup('me')" title="Maine"
    coords="465,58,468,52,470,34,483,31,495,56,473,84" >
    <area shape="poly" onclick="javascript:Lookup('mi')" title="Michigan"
    coords="308,70,337,82,342,120,377,119,369,66">
    <area shape="poly" onclick="javascript:Lookup('mn')" title="Minnesota"
    coords="253,46,260,109,299,106,288,90,290,68,309,5 5,269,44">
    <area shape="poly" onclick="javascript:Lookup('mo')" title="Missouri"
    coords="267,141,303,141,316,167,327,179,324,189,27 5,187,274,158">
    <area shape="poly" onclick="javascript:Lookup('ms')" title="Mississippi"
    coords="319,205,336,206,339,256,326,258,323,252,30 6,249,313,238,308,228">
    <area shape="poly" onclick="javascript:Lookup('mt')" title="Montana"
    coords="110,31,201,43,196,89,142,81,127,85,116,68" >
    <area shape="poly" onclick="javascript:Lookup('nc')" title="North Carolina"
    coords="372,199,394,180,452,171,431,204,403,192">
    <area shape="poly" onclick="javascript:Lookup('nd')" title="North Dakota"
    coords="201,44,199,76,256,80,252,46">
    <area shape="poly" onclick="javascript:Lookup('ne')" title="Nebraska"
    coords="195,111,257,119,267,148,211,146,210,136,19 3,134">
    <area shape="rect" onclick="javascript:Lookup('nh')" title="New Hampshire"
    coords="446,29,461,40">
    <area shape="poly" onclick="javascript:Lookup('nh')" title="New Hampshire"
    coords="462,64,465,61,473,86,458,91">
    <area shape="poly" onclick="javascript:Lookup('nj')" title="New Jersey"
    coords="445,112,454,117,457,126,450,140,443,131,44 5,124">
    <area shape="rect" onclick="javascript:Lookup('nj')" title="New Jersey"
    coords="458,136,473,148">
    <area shape="poly" onclick="javascript:Lookup('nm')" title="New Mexico"
    coords="147,176,197,183,191,239,159,235,134,240">
    <area shape="poly" onclick="javascript:Lookup('nv')" title="Nevada"
    coords="59,101,107,111,91,195,50,133">
    <area shape="poly" onclick="javascript:Lookup('ny')" title="New York"
    coords="400,113,435,71,448,71,457,116,439,108">
    <area shape="poly" onclick="javascript:Lookup('oh')" title="Ohio"
    coords="361,124,395,116,399,139,384,159,366,151">
    <area shape="poly" onclick="javascript:Lookup('ok')" title="Oklahoma"
    coords="201,184,278,187,279,223,230,213,227,190,19 9,188">
    <area shape="poly" onclick="javascript:Lookup('or')" title="Oregon"
    coords="24,93,86,107,95,63,37,46">
    <area shape="poly" onclick="javascript:Lookup('pa')" title="Pennsylvania"
    coords="394,115,397,140,443,131,444,113,436,107">
    <area shape="poly" onclick="javascript:Lookup('ri')" title="Rhode Island"
    coords="469,97,474,97,479,102,471,106">
    <area shape="rect" onclick="javascript:Lookup('ri')" title="Rhode Island"
    coords="479,117,493,128">
    <area shape="poly" onclick="javascript:Lookup('sc')" title="South Carolina"
    coords="384,204,413,232,431,205,416,195,396,193">
    <area shape="poly" onclick="javascript:Lookup('sd')" title="South Dakota"
    coords="200,77,257,80,257,117,241,112,196,109">
    <area shape="poly" onclick="javascript:Lookup('tn')" title="Tennessee"
    coords="327,186,318,202,338,204,369,199,392,178">
    <area shape="poly" onclick="javascript:Lookup('tx')" title="Texas"
    coords="197,187,224,189,227,212,278,223,283,268,24 7,310,191,272,160,235,193,
    240">
    <area shape="poly" onclick="javascript:Lookup('ut')" title="Utah"
    coords="109,114,131,117,130,126,149,131,141,176,97 ,168">
    <area shape="poly" onclick="javascript:Lookup('vi')" title="Virginia"
    coords="381,181,389,170,404,170,421,142,441,155,44 6,171">
    <area shape="rect" onclick="javascript:Lookup('vt')" title="Vermont"
    coords="433,40,450,53">
    <area shape="poly" onclick="javascript:Lookup('vt')" title="Vermont"
    coords="447,69,461,66,460,77,457,91,454,92">
    <area shape="poly" onclick="javascript:Lookup('wa')" title="Washington"
    coords="44,13,42,45,94,64,99,29">
    <area shape="poly" onclick="javascript:Lookup('wi')" title="Wisconsin"
    coords="293,72,292,97,310,119,333,116,335,85,305,6 9">
    <area shape="poly" onclick="javascript:Lookup('wv')" title="West Virginia"
    coords="383,159,398,142,420,139,403,166,390,171">
    <area shape="poly" onclick="javascript:Lookup('wy')" title="Wyoming"
    coords="139,83,194,89,192,136,132,127"> </map>
    </body>
    </html>

    The image map is borrowed for testing; thanks to
    http://www.waypoint.org/usmap1.gif.


    McKirahan Guest

  8. #8

    Default Re: Is this possible in ASP?

    "McKirahan" <com> wrote in message
    news:ZpTid.60676$..

    <area shape="poly" onclick="javascript:Lookup('ka')" title="Kansas"
    <area shape="poly" onclick="javascript:Lookup('kn')" title="Kentucky"
    <area shape="poly" onclick="javascript:Lookup('vi')" title="Virginia"

    [snip]

    I just noticed that the state codes for Kansas ('ks'), Jentucky ('ky'), and
    Viriginia ('va') are wrong in the previous image map.


    McKirahan Guest

  9. #9

    Default Re: Is this possible in ASP?

    Thanks to everybody for all the help extended here, specially to McKirahan who
    was generous enough to post code for demonstration with clarity. I
    appreciate all the help. Thanks again.

    "McKirahan" wrote:
     [/ref]
    > answer. [/ref]
    > On 
    > > county 
    > > the [/ref]
    > one 
    > > summary 
    > >
    > > Which state? What kind of stats?
    > >
    > > One approach is to have the server-side generate an array of the data you
    > > want and the client-side display the appropriate array entry for the
    > > selected county.[/ref]
    >
    > Here's an example of my approach using states.
    >
    > The MS-Access database consists of one table named "states" with two fields:
    > "Code" and "State"; it contains 51 records: one for each state plus the
    > District of Columbia.
    >
    > <% Language="VBScript" %>
    > <% Option Explicit
    > '*
    > '* Declare Constants
    > '*
    > Const cASP = "state.asp"
    > Const cMDB = "state.mdb"
    > Const cDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    > '*
    > '* Declare Variables
    > '*
    > Dim arrRST(1)
    > ' arrRST(0) = Code
    > ' arrRST(1) = State
    > Dim intRST
    > intRST = 0
    > Dim strRST
    > Dim strSQL
    > strSQL = "SELECT * FROM states"
    > Dim arrSTA(51)
    > Dim intSTA
    > intSTA = 0
    > '*
    > '* Declare Objects
    > '*
    > Dim objADO
    > Set objADO = Server.CreateObject("ADODB.Connection")
    > objADO.Open cDSN & Server.MapPath(cMDB)
    > Dim objRST
    > Set objRST = objADO.Execute(strSQL)
    > '*
    > '* Process Managers
    > '*
    > Do While Not objRST.EOF
    > arrRST(0) = objRST("Code")
    > arrRST(1) = objRST("State")
    > strRST = Join(arrRST,"|")
    > intSTA = intSTA + 1
    > 'Response.Write("<br>" & intSTA & ". " & strRST)
    > arrSTA(intSTA) = strRST
    > objRST.MoveNext
    > Loop
    > '*
    > '* Destroy Objects
    > '*
    > Set objRST = Nothing
    > objADO.Close
    > Set objADO = Nothing
    > %>
    > <html>
    > <head>
    > <title><%=cASP%></title>
    > <script type="text/javascript">
    > function Lookup(stateCode) {
    > for (var i=1; i<state.length; i++) {
    > if (state[i].substr(0,2) == stateCode.toUpperCase()) {
    > var lines = state[i].split("|");
    > var whois = "";
    > for (var j=0; j<lines.length; j++) {
    > if (j > 0) whois += "\n";
    > whois += lines[j];
    > }
    > alert(whois);
    > break;
    > }
    > }
    > }
    > var state = new Array();
    > <% For intSTA = 1 To UBound(arrSTA) %>
    > state[<%=intSTA%>] = "<%=arrSTA(intSTA)%>";
    > <% Next %>
    > </script>
    > </head>
    > <body>
    > <center>
    > <img src="http://www.waypoint.org/usmap1.gif" border="0" width="499"
    > height="321" alt="Click on a State." usemap="#Map">
    > </center>
    > <map name="Map">
    > <area shape="rect" onclick="javascript:Lookup('mex')" title="Mexico"
    > coords="172,296,225,319">
    > <area shape="rect" onclick="javascript:Lookup('can')" title="Canada"
    > coords="199,9,264,30">
    > <area shape="rect" onclick="javascript:Lookup('ak')" title="Alaska"
    > coords="7,245,85,313">
    > <area shape="poly" onclick="javascript:Lookup('al')" title="Alabama"
    > coords="338,203,362,201,374,244,350,248,351,257,33 9,257">
    > <area shape="poly" onclick="javascript:Lookup('ar')" title="Arkansas"
    > coords="278,189,323,190,310,223,309,230,279,229">
    > <area shape="poly" onclick="javascript:Lookup('az')" title="Arizona"
    > coords="98,170,143,176,133,239,112,238,80,214">
    > <area shape="poly" onclick="javascript:Lookup('ca')" title="California"
    > coords="22,92,59,102,49,134,87,192,81,213,61,213,3 1,183,16,110,23,91">
    > <area shape="poly" onclick="javascript:Lookup('co')" title="Colorado"
    > coords="151,131,209,138,208,181,143,174">
    > <area shape="poly" onclick="javascript:Lookup('ct')" title="Connecticut"
    > coords="456,102,469,99,469,104,458,112">
    > <area shape="rect" onclick="javascript:Lookup('ct')" title="Connecticut"
    > coords="474,128,490,139">
    > <area shape="rect" onclick="javascript:Lookup('dc')" title="District of
    > Columbia" coords="453,169,473,180">
    > <area shape="poly" onclick="javascript:Lookup('de')" title="Delaware"
    > coords="442,132,451,138,453,146,444,144">
    > <area shape="rect" onclick="javascript:Lookup('de')" title="Deleware"
    > coords="455,147,471,158">
    > <area shape="poly" onclick="javascript:Lookup('fl')" title="Florida"
    > coords="408,246,348,252,350,258,392,270,420,310,43 9,304">
    > <area shape="poly" onclick="javascript:Lookup('ga')" title="Georgia"
    > coords="384,201,361,203,375,252,407,247,411,233">
    > <area shape="rect" onclick="javascript:Lookup('hi')" title="Hawaii"
    > coords="91,259,167,313">
    > <area shape="poly" onclick="javascript:Lookup('ia')" title="Iowa"
    > coords="260,109,298,107,310,121,303,141,266,142,25 7,119">
    > <area shape="poly" onclick="javascript:Lookup('id')" title="Idaho"
    > coords="101,29,110,31,136,82,132,114,84,105">
    > <area shape="poly" onclick="javascript:Lookup('il')" title="Illinois"
    > coords="310,121,303,141,308,158,325,179,331,179,33 9,159,336,126,330,117">
    > <area shape="poly" onclick="javascript:Lookup('in')" title="Indiana"
    > coords="336,126,358,122,362,154,347,168,336,168,33 8,158">
    > <area shape="poly" onclick="javascript:Lookup('ka')" title="Kansas"
    > coords="210,149,270,149,274,159,276,186,208,182">
    > <area shape="poly" onclick="javascript:Lookup('kn')" title="Kentucky"
    > coords="327,185,331,179,338,170,352,167,367,154,38 2,159,389,169,378,179">
    > <area shape="poly" onclick="javascript:Lookup('la')" title="Louisiana"
    > coords="281,230,309,230,307,251,322,251,327,260,33 2,272,284,268">
    > <area shape="poly" onclick="javascript:Lookup('ma')" title="Massachusetts"
    > coords="454,93,474,87,485,99,477,101,472,97,454,99 ">
    > <area shape="rect" onclick="javascript:Lookup('ma')" title="Massachussetts"
    > coords="480,106,498,117">
    > <area shape="poly" onclick="javascript:Lookup('md')" title="Maryland"
    > coords="410,138,441,132,440,136,442,144,449,152,44 5,156,436,148">
    > <area shape="rect" onclick="javascript:Lookup('md')" title="Maryland"
    > coords="457,158,476,169">
    > <area shape="poly" onclick="javascript:Lookup('me')" title="Maine"
    > coords="465,58,468,52,470,34,483,31,495,56,473,84" >
    > <area shape="poly" onclick="javascript:Lookup('mi')" title="Michigan"
    > coords="308,70,337,82,342,120,377,119,369,66">
    > <area shape="poly" onclick="javascript:Lookup('mn')" title="Minnesota"
    > coords="253,46,260,109,299,106,288,90,290,68,309,5 5,269,44">
    > <area shape="poly" onclick="javascript:Lookup('mo')" title="Missouri"
    > coords="267,141,303,141,316,167,327,179,324,189,27 5,187,274,158">
    > <area shape="poly" onclick="javascript:Lookup('ms')" title="Mississippi"
    > coords="319,205,336,206,339,256,326,258,323,252,30 6,249,313,238,308,228">
    > <area shape="poly" onclick="javascript:Lookup('mt')" title="Montana"
    > coords="110,31,201,43,196,89,142,81,127,85,116,68" >
    > <area shape="poly" onclick="javascript:Lookup('nc')" title="North Carolina"
    > coords="372,199,394,180,452,171,431,204,403,192">
    > <area shape="poly" onclick="javascript:Lookup('nd')" title="North Dakota"
    > coords="201,44,199,76,256,80,252,46">
    > <area shape="poly" onclick="javascript:Lookup('ne')" title="Nebraska"
    > coords="195,111,257,119,267,148,211,146,210,136,19 3,134">
    > <area shape="rect" onclick="javascript:Lookup('nh')" title="New Hampshire"
    > coords="446,29,461,40">
    > <area shape="poly" onclick="javascript:Lookup('nh')" title="New Hampshire"
    > coords="462,64,465,61,473,86,458,91">
    > <area shape="poly" onclick="javascript:Lookup('nj')" title="New Jersey"
    > coords="445,112,454,117,457,126,450,140,443,131,44 5,124">
    > <area shape="rect" onclick="javascript:Lookup('nj')" title="New Jersey"
    > coords="458,136,473,148">
    > <area shape="poly" onclick="javascript:Lookup('nm')" title="New Mexico"
    > coords="147,176,197,183,191,239,159,235,134,240">
    > <area shape="poly" onclick="javascript:Lookup('nv')" title="Nevada"
    > coords="59,101,107,111,91,195,50,133">
    > <area shape="poly" onclick="javascript:Lookup('ny')" title="New York"
    > coords="400,113,435,71,448,71,457,116,439,108">
    > <area shape="poly" onclick="javascript:Lookup('oh')" title="Ohio"
    > coords="361,124,395,116,399,139,384,159,366,151">
    > <area shape="poly" onclick="javascript:Lookup('ok')" title="Oklahoma"
    > coords="201,184,278,187,279,223,230,213,227,190,19 9,188">
    > <area shape="poly" onclick="javascript:Lookup('or')" title="Oregon"
    > coords="24,93,86,107,95,63,37,46">
    > <area shape="poly" onclick="javascript:Lookup('pa')" title="Pennsylvania"
    > coords="394,115,397,140,443,131,444,113,436,107">
    > <area shape="poly" onclick="javascript:Lookup('ri')" title="Rhode Island"
    > coords="469,97,474,97,479,102,471,106">
    > <area shape="rect" onclick="javascript:Lookup('ri')" title="Rhode Island"
    > coords="479,117,493,128">
    > <area shape="poly" onclick="javascript:Lookup('sc')" title="South Carolina"
    > coords="384,204,413,232,431,205,416,195,396,193">
    > <area shape="poly" onclick="javascript:Lookup('sd')" title="South Dakota"
    > coords="200,77,257,80,257,117,241,112,196,109">
    > <area shape="poly" onclick="javascript:Lookup('tn')" title="Tennessee"
    > coords="327,186,318,202,338,204,369,199,392,178">
    > <area shape="poly" onclick="javascript:Lookup('tx')" title="Texas"
    > coords="197,187,224,189,227,212,278,223,283,268,24 7,310,191,272,160,235,193,
    > 240">
    > <area shape="poly" onclick="javascript:Lookup('ut')" title="Utah"
    > coords="109,114,131,117,130,126,149,131,141,176,97 ,168">
    > <area shape="poly" onclick="javascript:Lookup('vi')" title="Virginia"
    > coords="381,181,389,170,404,170,421,142,441,155,44 6,171">
    > <area shape="rect" onclick="javascript:Lookup('vt')" title="Vermont"
    > coords="433,40,450,53">
    > <area shape="poly" onclick="javascript:Lookup('vt')" title="Vermont"
    > coords="447,69,461,66,460,77,457,91,454,92">
    > <area shape="poly" onclick="javascript:Lookup('wa')" title="Washington"
    > coords="44,13,42,45,94,64,99,29">
    > <area shape="poly" onclick="javascript:Lookup('wi')" title="Wisconsin"
    > coords="293,72,292,97,310,119,333,116,335,85,305,6 9">
    > <area shape="poly" onclick="javascript:Lookup('wv')" title="West Virginia"
    > coords="383,159,398,142,420,139,403,166,390,171">
    > <area shape="poly" onclick="javascript:Lookup('wy')" title="Wyoming"
    > coords="139,83,194,89,192,136,132,127"> </map>
    > </body>
    > </html>
    >
    > The image map is borrowed for testing; thanks to
    > http://www.waypoint.org/usmap1.gif.
    >
    >
    >[/ref]
    Jack Guest

  10. #10

    Default Re: Is this possible in ASP?

    I got one questioin here. How do you come up with the values of coordiantes
    for all the shapes of different shapes? Thanks

    "McKirahan" wrote:
     
    Jack Guest

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139