|
POST
|
I agree that you should use the Esri JavaScript API. Both Flex and Silverlight will no longer be supported soon. See this blog for more info: http://blogs.esri.com/esri/supportcenter/2014/11/10/final-release-and-support-plan-for-the-arcgis-apis-viewers-for-flex-and-silverlight/ .NET and JavaScript work just fine together. I've used both, .NET to integrate database driven applications and pure HTML5 and JavaScript. I also have an old app that I created in the Web ADF. But if you look at Startup.aspx.vb, it populates a url and then a page redirect if you need a sample and then I used the url parameters to perform selection in Default.aspx.vb. It's not JavaScript, but it might give you an idea of the logic that I used my .NET application. If you'r just starting, you may want to follow Kelly Hutchins, she has many code examples on Geonet that you may find helpful as you start out.
... View more
05-01-2015
06:27 AM
|
1
|
0
|
1234
|
|
POST
|
I want to load the sign layer at the same time I load the support layer so that both display as soon as the application displays.
... View more
05-01-2015
06:18 AM
|
0
|
2
|
1280
|
|
POST
|
I want to define another legend layer, but my legend is currently the following: app.legend = new Legend({
map: app.map,
layerInfos: [{
title: app.supportLayer.name,
layer: app.supportLayer
}]
}, "legend");
app.legend.startup(); my other layer name that I want to add is called: signLayer How would I add another layer and title so I can see a list of both layers?
... View more
04-30-2015
02:53 PM
|
0
|
4
|
4910
|
|
POST
|
It feedbackModal. I changed the code to: (dom.byId("feedbackModal").validate()) and just used feedbackModal with and without quotes and tried prefixing with a # sign. Still the same error message.
... View more
04-30-2015
01:58 PM
|
0
|
0
|
3108
|
|
POST
|
I added it and got the following error: Uncaught TypeError: this.validate is not a function I also included my require statements for dojo/_base/lang and the variable.
... View more
04-30-2015
01:25 PM
|
0
|
2
|
3108
|
|
POST
|
I have this block of code and I still get: Uncaught TypeError: Cannot read property 'validate' of undefined on(dom.byId("btnFeedback"), "click", function () {
sendEmail();
});
function sendEmail(ev) {
if (this.validate()) {
return confirm('Form is valid, press OK to submit');
} else {
alert('Form contains invalid data. Please correct first');
return false;
}
return true;
} I added the required statements.
... View more
04-30-2015
12:30 PM
|
0
|
4
|
3108
|
|
POST
|
I actually don't think it will. I realized that I am trying to use jQuery syntax. Tom Wayson said that I should try dojo instead: https://dojotoolkit.org/documentation/tutorials/1.10/validation/ I will update the post if it works or does not.
... View more
04-30-2015
11:34 AM
|
0
|
0
|
3108
|
|
POST
|
I have three fields in a form call feedbackModal. They are all required and mark withed required, but when I click submit, I receive the following error: Uncaught TypeError: Cannot read property '0' of null for the following lines of code: // submit or cancel request and hide modal query("#feedbackModal .btn").on("click", function (e) { // e is defined but never used. // NOTE: this is not implemented in sample app if (document.getElementById("#feedbackModal")[0].checkValidity()) { query("#feedbackModal").modal("hide"); } else { //show errors return false; } }); and this one: on(dom.byId("btnFeedback"), "click", function () { sendEmail(); }); function sendEmail() { if (document.getElementById("#feedbackModal")[0].checkValidity()) { var link = "mailto:" + document.getElementById("eMail").value + "&subject=" + escape(document.getElementById('subject').value) + "&body=" + escape(document.getElementById('comment').value) ; } else { //show errors return false; alert("All fields are required!"); } }
... View more
04-29-2015
01:49 PM
|
0
|
7
|
8025
|
|
POST
|
I have this button in an HTML file and the following JavaScript in a JS file: <button class="btn btn-primary" name="btnFeedback" onclick="sendEmail()">Submit</button> function sendEmail() { alert("Hello"); } but the alert will not run when I click on the button. I receive, sendEmail is undefined. Here is the whole project where I have the code. The JavaScript file is in app/main.js https://github.com/csergent45/streetSigns
... View more
04-29-2015
09:57 AM
|
0
|
2
|
4469
|
|
POST
|
This question is the sequel to my first question on : How do I get individual values back from FeatureLayers on a click event? Now I would like to know that how to add navigation when between items that are layered. As you can see in the above editor widget, there are navigation buttons because there are three points on top of each other, possibly from different layers as these layers are street signs and support, so they will frequently be on top of each other in the app. What type of code do I need to enter to navigate to records that are stacked so I can add buttons to the below form for the users to navigate for editing in the field?
... View more
04-28-2015
02:39 PM
|
0
|
0
|
2852
|
|
POST
|
Yea Nicholas Haney and Ken Buja, I feel like an idiot. I know that JavaScript is case sensitive. Should've checked my case when I received those errors. Thanks for getting me back on track. And this is my easy question.
... View more
04-28-2015
02:05 PM
|
1
|
0
|
1130
|
|
POST
|
I just have the click event. Here is the full code: https://github.com/csergent45/streetSigns/blob/master/app/main.js and here is an excerpt: app.citizenRequestLayer = new FeatureLayer(config.citizenRequestLayerUrl, { mode: FeatureLayer.MODE_ONEDEMAND, //infoTemplate: new InfoTemplate(config.infoTemplate), outFields: ["*"] }); app.map.addLayer(app.citizenRequestLayer); app.citizenRequestLayer.on("click", function (evt) { myObject = evt.graphic.attributes.OBJECTID; });
... View more
04-28-2015
01:32 PM
|
0
|
1
|
1130
|
|
POST
|
That won't work. app is an object for the purpose of unobtrusive JavaScript, so it's needed.
... View more
04-28-2015
01:04 PM
|
0
|
2
|
3015
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-26-2015 12:31 PM | |
| 1 | 06-24-2015 06:06 AM | |
| 1 | 07-15-2015 12:34 PM | |
| 1 | 05-21-2015 02:27 PM | |
| 1 | 05-19-2015 11:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|