Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/12/2007, 03:12
jocaorsa
 
Fecha de Ingreso: agosto-2007
Mensajes: 79
Antigüedad: 17 años, 3 meses
Puntos: 0
Re: ajax javascript asp ayuda...

hola no entendi bien este es mi archivo .js

//================================================== ========
//=====================================
// Begin Resource text - BEGIN TRANSLATE
//=====================================
var __location_gtxtLocCoord = "Location";
//=====================================
// End Resource text - END TRANSLATE
//=====================================

function location_onclick()
{
if (WaitingFor("map"))
{
WaitAlertFor("map");
}
else
{
// set coordinate units to readout
top.frames["fraMap"].setCoordinateUnits(0);
// get point from user
top.frames.fraMap.getPoint(location_callback);
}
}

function location_repeat()
{
if (WaitingFor("map"))
{
setTimeout(location_repeat, 200);
}
else
{
// set coordinate units to readout
top.frames["fraMap"].setCoordinateUnits(0);
// get point from user
top.frames.fraMap.getPoint(location_callback);
}
}

function location_callback(sIOBuf)
{
var iTmp = sIOBuf.indexOf( ":" );
if (iTmp>-1)
{
var sX = sIOBuf.substring( 0, iTmp);
var sY = sIOBuf.substring( iTmp+1, sIOBuf.length-1 );
var g = top.frames["fraMap"].document.forms["globals"];
// if persist redline option is set, add redline
if ("1" == g.persistredlines.value && top.frames.fraMap.supportsRedlining())
{
top.frames.fraMap.addPoint(sX, sY, true);
}
var X, Y;
if (1 == g.basestoragetype.value)
{
// geographic
X = parseFloat(sX) * parseFloat(g.geogconversionfactor.value);
Y = parseFloat(sY) * parseFloat(g.geogconversionfactor.value);
var sUnit = g.geogunit.value;
if ("d:m:s" == sUnit)
{
X = FormatDegMinSec(0, X, parseInt(g.geogprec.value));
Y = FormatDegMinSec(0, Y, parseInt(g.geogprec.value));
}
else if ("dd.mmss" == sUnit)
{
X = FormatDegMinSec(1, X, parseInt(g.geogprec.value));
Y = FormatDegMinSec(1, Y, parseInt(g.geogprec.value));
}
else
{
X = FormatPrecision(X, g.geogprec.value, 1, false);
Y = FormatPrecision(Y, g.geogprec.value, 1, false);
}
}
else
{
X = parseFloat(sX) * parseFloat(g.projconversionfactor.value);
Y = parseFloat(sY) * parseFloat(g.projconversionfactor.value);
X = FormatPrecision(X, g.projprec.value, 1, false);
Y = FormatPrecision(Y, g.projprec.value, 1, false);
var sUnit = g.projunit.value;
}
//Inform user of coordinates
var sListSep = top.frames.fraMap.document.globals.browserlistsep. value;
if ("1" == g.promptmeasurementresults.value)
{
prompt(__location_gtxtLocCoord + " (" + sUnit + "):", X + sListSep + " " + Y);
}
else
{
alert(__location_gtxtLocCoord + " (" + sUnit + "):\n" + X + sListSep + " " + Y);
}
}
else
{
alert(sIOBuf);
}
if (top.frames.fraMap.document.globals.commandautorep eat.value == "1")
{
location_repeat();
}
}
//================================================== ===
dices que le meta el codigo que pusistes dentro de este¿¿¿?? y cree uno nuevo en asp?