Posts by iamdlm • 627 points
27 posts
-
2
votes3
answers77
viewsA: How can I access a subclass method through a superclass-like object
You have to cast for sub class: ((XYZ) obj).getXYZ();
-
11
votes2
answers3244
viewsA: Multipart Formdata is a data structure?
multipart/form-data is not a data structure but one of three forms of coding that we have in HTML: application/x-www-form-urlencoded (the default) multipart/form-data text/plain Generally speaking,…
answered iamdlm 627 -
1
votes1
answer66
viewsA: Consulting input data in the database - ASP + SQL
If I understood correctly I left the input just so: <input type="submit" value="Validar Ref" onclick="mostraCampos();"/> And in this method would make an ajax request similar to the one below,…
-
0
votes1
answer384
viewsA: Save image captured by webcam from an html page with javascript
Once you have the string in Base64 you can download it dynamically like this: saveBase64AsFile(base64, fileName) { var link = document.createElement("a"); link.setAttribute("href", base64);…
-
2
votes1
answer133
viewsA: Error in create Asp.net
That’s because you don’t have the @Html.AntiForgeryToken() in the form or have in duplicate (by the various partial views).
-
1
votes2
answers115
viewsA: How do I call two models in one view?
You can pass the model by ViewData[""], for example. But the way you have this application you’re not using the full potential of the . NET MVC architecture. You should create a Layout which…
-
1
votes2
answers213
views -
0
votes1
answer31
viewsA: Message when net core exception occurs
You have two chances to catch these mistakes (both can be used at the same time): Try/Catch try { // Code } catch (Exception ex) { // Handle ex } Or you use the native middleware for handling…
-
0
votes4
answers114
viewsA: Hide a DIV based on the value of a field
You have to assign the id to that dropdown, like this: @Html.DropDownListFor(model => model.OrigemAnomalia, listOrigem, new { @id="OrigemAnomalia", @class = "form-control" })…
-
0
votes2
answers352
viewsA: Taking an element inside an object
The result of this request will be an object array containing all the information. To iterate this array and print the name of each item you can do so: api.forEach(item =>…
-
-1
votes2
answers3801
viewsA: Excel - VBA - Image in the E-mail Body - GMAIL
You have to include the image and hide it. The position 0 will add it and hide it, the 1 is the Outlook constant olByValue. .Attachments.Add FILENAME, 1, 0 Once you add the image you must use the…
-
0
votes1
answer118
viewsA: Calculate expenses per day and display on the chart [JQUERY]
So the problem is in the sum, because you were always zeroing for each date but that only needs to be done for each first value. The solution is thus: if (!somaData[j]) { somaData[j] =…
-
1
votes3
answers5041
viewsA: How to make a project public to private on Github?
Github guide and more relevant information about the information and Features that loses/wins according to visibility: Configuring the repository visibility. On Github, to the repository home page.…
-
2
votes2
answers96
viewsA: Increment function in another jQuery function
Maybe the String.prototype.normalize() solve the problem, it works like this: var string = "Ça été Mičić. ÀÉÏÓÛ"; console.log(string); var string_norm =…
-
1
votes1
answer50
viewsA: Auto complete does not work for what reason and why?
Make sure the server data comes like this: bairros=["bairro1","bairro2",...] cidades=["cidade1","cidade2",...] And adjust the JS to the following, ensuring that autocomplete is only enabled if the…
-
1
votes2
answers35
viewsA: How to not show junk value when pulling a data from a null PHP database
This is default date for Unix, with time zone setting (00:00:00 UTC on 1 January 1970 +/- Time zone). To solve the problem, conditionally do not convert to date if varchar is null.
-
0
votes1
answer39
viewsA: Rewrite Data from an Object List in HTML
To convert a string list to an HTML list you can use the following method (no recursiveness): private void BuildList(List<string> menu) { StringBuilder sb = new StringBuilder();…
-
0
votes1
answer61
viewsA: I would like to understand why when Modelstate is invalid, Viewmodel instantiation is "ignored" and form fields remain populated?
Strange, this should only happen if you had to return return View(subCategoriaVM);. However, you can use the method ModelState.Clear(); that should solve the problem.…
-
0
votes1
answer35
viewsA: Generate table of acquisitions that were performed Upload
You can use the method onchange input to execute an AJAX request to the server and return a list of the files that were submitted and generate html to list them. Something like that (with jQuery):…
-
0
votes1
answer47
viewsA: because it shows this message in inspecting elements when I’m making the connection with the database and Asp
This can be due to different situations being the most common when we try to use a column as DEFAULT value of another column in the creation of a table. Only use constants, scalar functions or NULL.…
-
0
votes1
answer79
viewsA: How to make changes using jQuery within an iframe on another domain?
Being from another realm you are naturally subject to Same-origin policy. Not knowing your server language, you can try to get the html content from the page and save that html content on your side…
-
1
votes4
answers239
viewsA: Problems with paging on the search page
You will need to keep the search term saved just like the page to filter later in the server query. An example of how the URL should look like is busca?termo="xxxx"&pagina=2, and so you can…
-
0
votes1
answer267
viewsA: Menu fixed after scroll
Split... In HTML you need to add the element that will be the navigation. <div class="header" id="myHeader"> <h2>My Header</h2> </div> Almost all the magic is in the styles,…
-
0
votes1
answer126
viewsA: Synchronization of events in javascript
To add elements to the DOM you should do it in ready, because onload only happens after all the DOM and content (images, etc.) are loaded. Manipulation of the elements you add should happen after…
-
1
votes2
answers52
viewsA: Xmlhttprequest problem
You cannot execute an AJAX request for a local file. If it is part of the project then you can access it by the relative path, for example, "~/Estados/"+estado+".json". Something like that:…
-
0
votes1
answer38
viewsA: Integration with ZAPIER - Error Javascript Exception: `body size is Too long`
Jasmin team Member here! After an analysis with the Zapier team, we had to update in our integration with the Zapier platform the use of Feature Dehydration, provided by them, and the problem no…
-
5
votes1
answer75
viewsQ: Why is :first-Child a pseudo class?
I’m giving a training in CSS, and even after reading and listening on the topic I’m still having some difficulty understanding why :first-Child is a pseudo class and not a pseudo element, like…