Forum Moderators: open
Any help? I am just now learning about asp and scripting. I understand what he wants but do not know how to implement it.
Thanks - I'd appreciate any help and suggestions
if it what i think, you want to set the size of the new window according to the data you have in your DB ?
if that's the problem, all you need is to get the data from your DB using recordset, and put it in the JS "openWin" function, weatch i can expline to you how.
i tried to find the GIS section on your site to get more information, but i couldn't find it.
I'm doing alot of ASP and SQL programing, so i think i can help you, but my english is not so good, so please try to write your question in a simple english so i can understand it easly. :)
The map is in a window and can be zoomed in on. When a certain parcel of land is clicked on, another window should open of a certain size so that the map is not covered up (I would say 300 - 350 pixels W)
The information in the new window is from the land parcel database.
It appears that the question is - How to open the new window as a certain size from clicking on the parcel number in the map so that the new window does not cover the map image.
The map and land information are in 2 separate DB's.
I don't know the answer to this - but understand the situation.
Set rsMap = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT map.width, map.hieght From map Where index = " & intMapindex & ";"
rsUser.Open strSQL, strCon
<SCRIPT LANGUAGE="JavaScript">
<!--
function openWin(theURL,winName,features)
{
window.open(theURL,winName,features);
}
//-->
</SCRIPT>
<a href="JavaScript:openWin('viewmap.asp','NewWindow','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=<%=rsMap("width")%>,height=<%=rsMap("height")%>')">my link</a>
If the new windows data are in 2 separate DB, you will need to open two recordset, one for each table, or to use one recordset and use the "join" oreder, to join the 2 tables.