|
POST
|
Searching seems like a basic tool. Why don't ArcGIS online Web Mapping samples allow this? I was playing with trying to use the JavaScript API to enable this functionality on my hosted ArcOnline Service but it seem like the Service is not a "map service" rather it's a feature service. Is there any way to get the ArcOnline service to be a "map" service instead of a "feature" service?
... View more
06-11-2012
01:17 PM
|
0
|
0
|
726
|
|
POST
|
Thanks for responding. I'm still a bit confused/frustrated. I would like to create a service via ArcGIS Online hosting that I can then use in a web map that will allowing searching for a feature based on some value in my table. It doesn't look like there is a prefab ArcOnline web template with Search capability. (Which seems strange, isn't this one of the most common things to do?) No problem, I thought, I'll just use one of the JavaScript samples (I'm not a competent programmer, rather a cutter, paster, scripter). The problem is the only service ArcGIS online is creating is a feature service. This apparently can't be used as a dynamic service?? And there is no code examples for using the find function with a feature service (unless I missed it). Funny to say but I missing the good old days of ArcIMS. Any advice is greatly appreciated. Thank!
... View more
06-11-2012
11:13 AM
|
0
|
0
|
1871
|
|
POST
|
Let me first admit that I have just returned from a lengthy vacation so I'm a little rusty. I have created a "map service" via ArcGIS Online and would now like to consume them via one of the samples for Java Script. I have a feature service id http://services.arcgis.com/yygmGNIVQrHqSELP/arcgis/rest/services/LagunaLakeCommemorativeTrees/FeatureServer/0 Can I use this as my Dynamic Map Service Layer in this line of code? I know I'm missing something just not sure what? var censusMapLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer"
... View more
06-08-2012
11:39 AM
|
0
|
9
|
7101
|
|
POST
|
8 to 10 seconds, which doesn't sound long but it sure feels long!
... View more
05-15-2012
08:03 AM
|
0
|
0
|
1204
|
|
POST
|
The end goal is to have a javascript website with both a legend and popups working. I have code working now but for some reason the response is extremely slow. Here is the code that gives me both but with extremely slow load time: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9" />
<!--The viewport meta tag is used to improve the presentation and behavior of the
samples on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>
City of San Luis Obispo CAPITAL IMPROVEMENT PROJECTS
</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/dojo/dijit/themes/claro/claro.css"/>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/esri/dijit/css/Popup.css"/>
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; } .esriScalebar{
padding: 20px 20px; } #map{ padding:0;}
#rightPane{
width:20%;
}
#legendPane{
border: solid #97DCF2 1px;
}
</style>
<script type="text/javascript">
var djConfig = {
parseOnLoad: true
};
</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.8"></script>
<script type="text/javascript">
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.layout.AccordionContainer");
dojo.require("esri.map");
dojo.require("esri.dijit.Legend");
dojo.require("esri.layers.FeatureLayer");
dojo.require("esri.dijit.Popup");
var map;
function init() {
esri.config.defaults.geometryService = new esri.tasks.GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");
// setup the map's initial extent (World View)
var initExtent = new esri.geometry.Extent({
"xmin":-13440283.392,
"ymin":4195625.999,
"xmax":-13424995.986,
"ymax":4207091.553,
"spatialReference":{"wkid":102100}
});
// define custom popup options
var popupOptions = {
'markerSymbol': new esri.symbol.SimpleMarkerSymbol('circle', 32, null, new dojo.Color([0, 0, 0, 0.25])),
'marginLeft': '20',
'marginTop': '20'
};
// define a popup template
var popupTemplate = new esri.dijit.PopupTemplate({
title: "CIP Project Info",
fieldInfos: [
{fieldName: "JOBNAME", visible: true, label:"ID"},
{fieldName: "DESC", visible:true, label:"Description"},
{fieldName: "START", visible:true, label:"Start Date" ,format:{dateFormat:'shortDateShortTime'}}
],
showAttachments:true
});
// create a popup to replace the map's info window
var popup = new esri.dijit.Popup(popupOptions, dojo.create("div"));
map = new esri.Map("map", {
extent: initExtent,
infoWindow: popup
});
// Add the topographic layer to the map. View the ArcGIS Online site for services http://arcgisonline/home/search.html?t=content&f=typekeywords:service
var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
map.addLayer(basemap);
// create a feature layer based on the feature collection
var featureLayer = new esri.layers.FeatureLayer("http://mapping.slocity.org/ArcGIS/rest/services/online/CIP/MapServer/0", {
mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
infoTemplate: popupTemplate,
outFields: ['*']//'JOBNAME',"DESC","START",'TYPE']
});
featureLayer.setDefinitionExpression("TYPE != ''");
var legendDijit = 0;
// add the legend
dojo.connect(map,'onLayerAddResult', function(results){
if (legendDijit == 1) {
legendDijit = new esri.dijit.Legend({
map:map,
layerInfos: [{ layer:featureLayer, title: featureLayer.name }]
},"legendDiv");
legendDijit.startup();
}
else
legendDijit = 1;
});
map.addLayer(featureLayer);
dojo.connect(featureLayer,"onClick",function(evt){
map.infoWindow.setFeatures([evt.graphic]);
});
dojo.connect(map, 'onLoad', function(theMap) {
//resize the map when the browser resizes
dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
});
}
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div id="content" dojotype="dijit.layout.BorderContainer" design="headline" gutters="true" style="width: 100%; height: 100%; margin: 0;">
<div id="rightPane" dojotype="dijit.layout.ContentPane" region="right">
<div dojoType="dijit.layout.AccordionContainer">
<div dojoType="dijit.layout.ContentPane" id="legendPane" title="Legend" selected="true" >
<div id="legendDiv"></div>
</div>
<div dojoType="dijit.layout.ContentPane" title="Pane 2" >
This pane could contain tools or additional content
</div>
</div>
</div>
<div id="map" dojotype="dijit.layout.ContentPane" region="center" style="overflow:hidden;">
</div>
</div>
</body>
</html>
... View more
05-14-2012
08:30 AM
|
0
|
0
|
1204
|
|
POST
|
I am trying to get both a pop-up and legend but can only get one to work at a time depending on where I put map.addLayer(featureLayer); The code below shows the problem in my comment. If anyone has a suggestion I would greatly appreciate it! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9" />
<!--The viewport meta tag is used to improve the presentation and behavior of the
samples on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>
City of San Luis Obispo CAPITAL IMPROVEMENT PROJECTS
</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/dojo/dijit/themes/claro/claro.css"/>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/esri/dijit/css/Popup.css"/>
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; } .esriScalebar{
padding: 20px 20px; } #map{ padding:0;}
#rightPane{
width:20%;
}
#legendPane{
border: solid #97DCF2 1px;
}
</style>
<script type="text/javascript">
var dojoConfig = {
parseOnLoad: true
};
</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.8"></script>
<script type="text/javascript">
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.layout.AccordionContainer");
dojo.require("esri.map");
dojo.require("esri.layers.FeatureLayer");
dojo.require("esri.dijit.Popup");
dojo.require("esri.dijit.Legend");
var map;
function init() {
esri.config.defaults.geometryService = new esri.tasks.GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");
//setup the map's initial extent (World View)
var initExtent = new esri.geometry.Extent({
"xmin":-13440283.392,
"ymin":4195625.999,
"xmax":-13424995.986,
"ymax":4207091.553,
"spatialReference":{"wkid":102100}
});
//define custom popup options
var popupOptions = {
'markerSymbol': new esri.symbol.SimpleMarkerSymbol('circle', 32, null, new dojo.Color([0, 0, 0, 0.25])),
'marginLeft': '20',
'marginTop': '20'
};
//create a popup to replace the map's info window
var popup = new esri.dijit.Popup(popupOptions, dojo.create("div"));
map = new esri.Map("map", {
extent: initExtent,
infoWindow: popup
});
//Add the topographic layer to the map. View the ArcGIS Online site for services http://arcgisonline/home/search.html?t=content&f=typekeywords:service
var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
map.addLayer(basemap);
//define a popup template
var popupTemplate = new esri.dijit.PopupTemplate({
title: "CIP Project Info",
fieldInfos: [
{fieldName: "JOBNAME", visible: true, label:"ID"},
{fieldName: "DESC", visible:true, label:"Description"},
{fieldName: "START", visible:true, label:"Start Date" ,format:{dateFormat:'shortDateShortTime'}}
],
showAttachments:true
});
//create a feature layer based on the feature collection
var featureLayer = new esri.layers.FeatureLayer("http://mapserver/ArcGIS/rest/services/online/CIP/MapServer/0", {
mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
infoTemplate: popupTemplate,
outFields: ['JOBNAME',"DESC","START",'TYPE']
});
featureLayer.setDefinitionExpression("TYPE != ''");
dojo.connect(featureLayer,"onClick",function(evt){
map.infoWindow.setFeatures([evt.graphic]);
});
//if this is herar the layer works
//map.addLayer(featureLayer);
dojo.connect(map, 'onLoad', function(theMap) {
//resize the map when the browser resizes
dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
});
//add the legend
dojo.connect(map,'onLayersAddResult',function(results){
var layerInfo = dojo.map(results, function(layer,index){
return {layer:layer.layer,title:layer.layer.name};
});
if(layerInfo.length > 0){
var legendDijit = new esri.dijit.Legend({
map:map,
layerInfos:layerInfo
},"legendDiv");
legendDijit.startup();
}
});
//if this is herar the legend works
map.addLayer(featureLayer);
}
// should this be dojo.addOnLoad(init);
dojo.ready(init);
</script>
</head>
<body class="claro">
<div id="content" dojotype="dijit.layout.BorderContainer" design="headline" gutters="true" style="width: 100%; height: 100%; margin: 0;">
<div id="rightPane" dojotype="dijit.layout.ContentPane" region="right">
<div dojoType="dijit.layout.AccordionContainer">
<div dojoType="dijit.layout.ContentPane" id="legendPane" title="Legend" selected="true" >
<div id="legendDiv"></div>
</div>
<div dojoType="dijit.layout.ContentPane" title="Pane 2" >
This pane could contain tools or additional content
</div>
</div>
</div>
<div id="map" dojotype="dijit.layout.ContentPane" region="center" style="overflow:hidden;">
</div>
</div>
</body>
</html>
... View more
05-11-2012
12:37 PM
|
0
|
5
|
2411
|
|
POST
|
Thank you both so much for your suggestions. Derek- I took the code out as suggested. map = new esri.Map("map", {
extent: initExtent,
infoWindow: popup
}); The map and legend are now showing up!!! We are moving in the right direction! However the pop-ups are not working. Any ideas? Jay- My service is not yet public, it's on a development server but I'll move it when I have everything working. Thanks for the tip about wrapping code! Sorry about the link, it's just the popup up example in the widgets area on the JavaScript samples area. I have also tried another approach, which I'll post in separately. I can get the legend to work or the pop-up but not both 😞
... View more
05-11-2012
07:21 AM
|
0
|
0
|
738
|
|
POST
|
I have two of the samples working great! One that customizes the popup and the other that has a nice layout with legend. I can't for the life of me seem to combine them to make one great website. I think the problem has to do with the first one uses a feature map service and the second a dynamic map service? When I combine the code I get no map. Any help would be greatly appreciated! The are both from ESRI samples http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/layout_MapContainerSplitLeft.html and http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm Below is the code I'm using. I get no map, no legend and no pop-up. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <!--The viewport meta tag is used to improve the presentation and behavior of the samples on iOS devices--> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/> <title> </title> <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/dojo/dijit/themes/claro/claro.css"> <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/esri/dijit/css/Popup.css"/> <style type="text/css"> html, body { height: 100%; width: 100%; margin: 0; } body{ background-color:white; overflow:hidden; font-family: "Trebuchet MS"; } #header { background-image: url(images/banner.jpg); background-repeat: repeat-x; margin: 2px; border: solid 4px #224a54; color:white; font-size:18pt; text-align:left; font-weight:bold; height:66px; } #subheader { font-size:20pt; color:white; padding-left:2px; } #rightPane{ background-color:white; color:#3f3f3f; border: solid 2px #224a54; width:20%; } #leftPane{ margin: 1px; padding:2px; background-color:white; color:#3f3f3f; border: solid 2px #224a54; width:20%; } #map { margin: 5px; border:solid 4px #224a54; -moz-border-radius: 1px; } #footer { margin: 2px; border: solid 2px #224a54; background-color:#ecefe4;color:#3f3f3f; font-size:10pt; text-align:center; height:20px; } .dijitTabInnerDiv{ background-color:#ecefe4; } #tabs{ padding:5px; } </style> <script type="text/javascript"> var djConfig = { parseOnLoad: true }; </script> <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.8"> </script> <script type="text/javascript"> dojo.require("dijit.dijit"); // optimize: load dijit layer dojo.require("dijit.layout.BorderContainer"); dojo.require("dijit.layout.ContentPane"); dojo.require("esri.map"); dojo.require("dijit.layout.TabContainer"); dojo.require("esri.dijit.Legend"); dojo.require("esri.dijit.InfoWindow"); dojo.require("esri.layers.FeatureLayer"); dojo.require("esri.dijit.Popup"); var map; function init() { esri.config.defaults.geometryService = new esri.tasks.GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"); var initialExtent = new esri.geometry.Extent({"xmin":-13440283.392,"ymin":4195625.999,"xmax":-13424995.986,"ymax":4207091.553,"spatialReference":{"wkid":102100}}); map = new esri.Map("map", { extent: initialExtent }); //define custom popup options var popupOptions = { 'markerSymbol': new esri.symbol.SimpleMarkerSymbol('circle', 32, null, new dojo.Color([0, 0, 0, 0.25])), 'marginLeft': '20', 'marginTop': '20' }; //create a popup to replace the map's info window var popup = new esri.dijit.Popup(popupOptions, dojo.create("div")); map = new esri.Map("map", { extent: initExtent, infoWindow: popup }); dojo.connect(map, 'onLoad', function(map) { //resize the map when the browser resizes dojo.connect(dijit.byId('map'), 'resize', map,map.resize); }); var basemapUrl = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"; var dynamicUrl = "http://mapserver/ArcGIS/rest/services/online/CIP/MapServer"; var basemap = new esri.layers.ArcGISTiledMapServiceLayer(basemapUrl); var dynamicLayer = new esri.layers.ArcGISDynamicMapServiceLayer(dynamicUrl); //define a popup template var popupTemplate = new esri.dijit.PopupTemplate({ title: "CIP Project Info", fieldInfos: [ {fieldName: "JOBNAME", visible: true, label:"ID"}, {fieldName: "DESC", visible:true, label:"Description"}, {fieldName: "START", visible:true, label:"Start Date" ,format:{dateFormat:'shortDateShortTime'}} ], showAttachments:true }); //create a feature layer based on the feature collection var featureLayer = new esri.layers.FeatureLayer("http://mapserver/ArcGIS/rest/services/online/CIP/MapServer/0", { mode: esri.layers.FeatureLayer.MODE_SNAPSHOT, infoTemplate: popupTemplate, outFields: ['JOBNAME',"DESC","START",'TYPE'] }); featureLayer.setDefinitionExpression("TYPE != ''"); dojo.connect(featureLayer,"onClick",function(evt){ map.infoWindow.setFeatures([evt.graphic]); }); dojo.connect(map,'onLayersAddResult',function(results){ //add the legend var legend = new esri.dijit.Legend({ map:map, layerInfos:[{layer:dynamicLayer,title:"Measure Y Hard at Work"}], arrangement:esri.dijit.Legend.ALIGN_RIGHT },"legendDiv"); legend.startup(); }); map.addLayer(basemap); map.addLayers([dynamicLayer]); map.addLayer(featureLayer); } //show map on load dojo.addOnLoad(init); </script> </head> <body class="claro"> <div id="mainWindow" dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" style="width:100%; height:100%;"> <div id="header" dojotype="dijit.layout.ContentPane" region="top"> City of San Luis Obispo <div id="subheader">Capital Improvement Projects</div> </div> <div dojotype="dijit.layout.ContentPane" id="leftPane" region="left"> <div dojotype="dijit.layout.TabContainer" > <div dojotype="dijit.layout.ContentPane" title = "Legend" selected="true"> <div id="legendDiv"></div> </div> </div> </div> <div id="map" dojotype="dijit.layout.ContentPane" region="center"> </div> <div id="footer" dojotype="dijit.layout.ContentPane" region="bottom" > <b>Measure Y Hard at Work!</b> A significant number of improvement projects are made possible by the 1/2 Cent tax approved by city voters in 2006. <a href="http://www.slocity.org/publicworks/construction/measurey.asp" target="_blank">Visit our Measure Y page</a> </div> </div> </body> </html>
... View more
05-10-2012
10:59 AM
|
0
|
4
|
1236
|
|
POST
|
I was able to get my script to work so I thought I would share it! import arcpy
mxd = arcpy.mapping.MapDocument(r"B:\2011Projects\ResearchDataDrivenPageImages.mxd")
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = pageNum
pageName = mxd.dataDrivenPages.pageRow.getValue("UNITID")
for elm in arcpy.mapping.ListLayoutElements(mxd,"PICTURE_ELEMENT"):
if elm.name == "unit1":
elm.sourceImage = ("B:\\2011Projects\\" + pageName + ".jpg")
print "Exporting Page {0} of {1}".format(str(mxd.dataDrivenPages.currentPageID), str(mxd.dataDrivenPages.pageCount))
arcpy.mapping.ExportToPDF(mxd, r"B:\2011Projects\ResearchDataDrivenPageImages.mxd" + str(pageNum) + ".pdf")
del mxd
... View more
04-19-2011
08:55 AM
|
0
|
0
|
2819
|
|
POST
|
I am also trying to change the image based on the path in the field used to name the data driven page. I can swap the image with a static image but I have not figured out how to access the name? I'll post what is not working in hopes that some python wizard can help me! Thanks in advance. import arcpy mxd = arcpy.mapping.MapDocument(r"B:\2011Projects\ResearchDataDrivenPageImages.mxd") # get the page id from the page name element pageID = mxd.dataDrivenPages.getPageIDFromName("UNITID") mxd.dataDrivenPages.currentPageID = pageID for elm in arcpy.mapping.ListLayoutElements(mxd,"PICTURE_ELEMENT"): if elm.name == "unit1": elm.sourceImage = r"B:\2011Projects\unit" + str(pageID) + ".jpg" # the next line will swithc to unit2 photo without a problem #elm.sourceImage = r"B:\2011Projects\unit2.jpg" for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1): mxd.dataDrivenPages.currentPageID = pageNum print "Exporting Page {0} of {1}".format(str(mxd.dataDrivenPages.currentPageID), str(mxd.dataDrivenPages.pageCount)) arcpy.mapping.ExportToPDF(mxd, r"B:\2011Projects\ResearchDataDrivenPageImages" + str(pageNum) + ".pdf") del mxd
... View more
04-19-2011
08:02 AM
|
0
|
0
|
2819
|
|
POST
|
Here is how I got the three buttons to work with the transparency slider! <s:HSlider
id="mapTrans" width="199"
minimum="0" maximum="2"
snapInterval=".1"
value="1"
liveDragging="true" x="10" y="58">
</s:HSlider>
<s:ToggleButton x="10" y="5" label="Aerial" width="54" height="46"
id="aerialButton"
click="{mapTrans.value=0}" chromeColor="#1293BE"
toolTip="Aerial Photo"/>
<s:ToggleButton x="74" y="5" label="Base Map" width="54" height="46"
id="baseButton"
click="{mapTrans.value=1}"
toolTip="Base Map"/>
<s:ToggleButton x="145" y="5" label="Topo" width="54" height="46"
id="topoButton"
click="{mapTrans.value=2}"
toolTip="Topo Map"/>
... View more
01-19-2011
11:13 AM
|
0
|
0
|
695
|
|
POST
|
Well even though I fell like I'm talking to myself here on this thread I will go ahead and post this since it may help some other newbie! Here is the code that works! protected function bookText_changeHandler(event:TextOperationEvent):void
{
if(bookText.text.length==3)
{
focusManager.setFocus(blockText);
}
}
...
<s:TextInput width="56" height="31" x="10" y="68" id="bookText" maxChars="3" change="bookText_changeHandler(event)" />
... View more
01-14-2011
08:25 AM
|
0
|
0
|
464
|
|
POST
|
Well I got the error message to go away! Just needed to change this line. Problem is the code doesn't do anything. Hum? if(bookText.text.length==3)
... View more
01-14-2011
08:09 AM
|
0
|
0
|
464
|
|
POST
|
Please help, I'm a newbie! I am using three text boxes as the input to my parcel APN search. I have the three text boxes working with the max characters set to 3. What I would like to do is when the use enters the 3 characters in the bookText text input box automatically move to the blockText input box so that the user does not have to click on the screen to get to the next box. Here is the code I have dreamed up. I may be completely on the wrong track? private function autoTabText_onChange(event:ChangeWatcher):void
{
if(bookText.length==3)
{
focusManager.setFocus(blockText);
}
}
Thanks for your help!
... View more
01-14-2011
07:27 AM
|
0
|
2
|
830
|
|
POST
|
Nice sites. I really like your buttons. Can you tell me if you made them yourself or purchased them somewhere? Thanks, Mary Andrews City of San Luis Obispo mandrews@slocity.org
... View more
01-04-2011
11:34 AM
|
0
|
0
|
1033
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-09-2020 01:34 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-28-2025
01:20 PM
|