Posts by Jedaias Rodrigues • 6,718 points
226 posts
-
4
votes2
answers257
viewsQ: Simulate browser without HTML5 support
I am developing a website that can be opened in a browser without HTML5 support (canvas, etc). I would like to perform tests, just change the User Agent or there is a specific tool?
-
1
votes1
answer48
viewsA: How to determine the number of edges of radarchart?
I got everything in that Fiddle. Trial and error. Follow the full code: var radarChartData = { labels: ["Eating", "Drinking", "Sleeping", "Designing"], datasets: [ { label: "My First dataset",…
-
1
votes1
answer48
viewsQ: How to determine the number of edges of radarchart?
I’m using Radarchart of Chart js.. Have that Fiddle working. Note that in this example the graph is mounted dynamically according to the entered data. Well, I would like to determine the amount of…
-
18
votes2
answers484
viewsQ: Is there an opposite for `contains`?
I have a list: List<int> lista1 = new List<int>(); lista1.Add(1); lista1.Add(2); lista1.Add(3); List<int> lista2 = new List<int>(); lista2.Add(1); lista2.Add(2); To get the…
-
1
votes1
answer1662
viewsQ: Floating point result for decimal variable
I have the following variable: decimal resultado = 0.0m; I need to assign the result of a division to that variable: resultado = (1 / 2) * (-1); The result has been 0, but it should be -0.5. I…
c#asked Jedaias Rodrigues 6,718 -
13
votes2
answers141
viewsQ: How to Lambda in Extension Methods with Multiple Lists?
There are the following Objects: public class Objeto1 { public List<Objeto2> PropObj1 {get; set;} } public class Objeto2 { public List<Objeto3> PropObj2 {get; set;} } public class…
-
6
votes1
answer2951
viewsQ: LEFT JOIN using Linq
I have the following tables: Responsavel | Filho Id Nome | Id Nome ResponsavelId 1 Ana | 1 Aninha 1 2 Maria | 2 Ana Júlia 1 3 Pedro | 3 Mariazinha 2 I’d like to make a SELECT with INNER JOIN where…
-
2
votes1
answer53
viewsQ: SQL Server joining tables with null
I have the following tables: Responsavel | Filho Id Nome | Id Nome ResponsavelId 1 Ana | 1 Aninha 1 2 Maria | 2 Ana Júlia 1 3 Pedro | 3 Mariazinha 2 I’d like to make a SELECT with INNER JOIN where…
-
1
votes2
answers619
viewsQ: How to get data from two tables in the same column?
I have two tables in the database: Tabela1 Id Nome Sexo 1 NomeA Macho 2 NomeC Fêmea Tabela2 Id Nome Sexo 1 NomeB Macho 2 NomeD Fêmea I would like to have the following result: Id Nome Sexo Tabela 1…
-
2
votes1
answer552
viewsQ: How to accept 0 and negative values in decimal attribute using Dataannotations?
I have a class with values decimal which may receive a value of -10.00 to 10.00 (including 0), in Sql Server the equivalent value is a Numeric(5,2). The problem is that by creating my class…
-
3
votes3
answers298
viewsQ: How to use Resources in . js file?
I have a project Asp.Net MVC where I’m wearing Resources, and to use it in my web pages it’s easy! @using projeto.Translations <h3>@Resources.DISPLAY_OLA</h3> The problem is that I have…
-
2
votes1
answer364
viewsQ: How to assign Javascript value in Razor?
I have a variable Razor @minhaVarRazor and would like to change its value based on a value obtained from another variable, but which is from Javascript. function setValue(minhaVarJavaScript){…
-
3
votes2
answers233
viewsQ: Javascript Date
I have a date in the following format: 1424102400000 , that is, an integer value. (I don’t know how to say the name of this format). I need to convert it to a value presentable to the user, so far…
-
0
votes2
answers677
viewsA: how to use the Jquery sortable update method?
I got it, the code can be seen below: $(function() { $("#conteudo").sortable({ axis: 'y', handle : ".ico", start: function(event, ui) { ui.item.startPos = ui.item.index(); }, update: function(event,…
-
0
votes2
answers677
viewsQ: how to use the Jquery sortable update method?
have the this code and would like to update the value within the div based on the position it occupies. I’ve already been able to get its value when the order is changed, but I can’t get other…
-
0
votes1
answer162
viewsQ: How to use Jquery Sortable?
have that code where I’m using the sortable jquery. But I’m having problems, because I would like each item to be moved only by ico, but the current code allows you to drag each item from anywhere…
-
1
votes0
answers361
viewsQ: Google Charts Radar
Someone would have an example using Google Charts Radar? I did a lot of research, but I couldn’t find... All I could get was that example which is not Google.…
google-chartsasked Jedaias Rodrigues 6,718 -
0
votes1
answer243
viewsQ: How to use Google Chart radar?
I have a chart and would like to make it look like in the image. (two or more lines) I already have the following code: http://jsfiddle.net/05g2nw0r/…
-
1
votes1
answer1351
viewsQ: Is it possible to get the name and value of all Sessions by javascript?
I am creating several Séssions, and would like to get the name and value of all by Javascript. When creating two Sessions in Asp.Net MVC, for example: Session["usuario"] = "user"; Session["tipo"] =…
-
2
votes1
answer85
viewsQ: Ruby on Rails and Javascript
I have the following in the controller on Ruby on Rails: def index @categorias = Categoria.find(:all) end In my View I have the following code to get the categories: <script…
-
4
votes1
answer152
viewsQ: What would Take and Skip be in Linq?
I am doing maintenance on a system and found a GetAllQueryable(), using the method Take() and Skip(). Well, I don’t know what they are or what they’re for, I looked them up but I couldn’t find…
-
0
votes1
answer767
viewsQ: How to validate if there is an upload file?
I have a form for uploading files: @using (Html.BeginForm("importCSV", "Administrador", FormMethod.Post, new { @id = "upldFrm", @enctype = "multipart/form-data" })) { <div class="form-inline">…
-
4
votes2
answers11358
viewsQ: How to customize upload file button?
I have a file upload button: <input id="file" name="file" type="file" /> He’s like this: I want to remove this description "No selected file" and customize the text of the button. Can anyone…
-
2
votes1
answer790
viewsQ: How do I use Sqlite in a Cordova application?
Gentlemen, I have a hybrid application that I built in HTML, CSS and Javascript (Jquery Mobile) using Cordova, and now I would like to access the device’s database. Unfortunately I don’t know where…
-
3
votes3
answers1950
viewsQ: How to Fix File Upload Error?
I have the following form: @using (Html.BeginForm("importCSV", "Administrador", FormMethod.Post, new { @id = "upldFrm", @enctype = "multipart/form-data" })) { <input id="file" name="file"…
-
3
votes1
answer762
viewsQ: How to jump line with View Bag?
I have the following code public ActionResult Action1 { TempData["msg"] = "Essa parte primeiro.\n Essa parte na linha de baixo."; return RedirectToAction("Action2"); } public ActionResult Action2 {…
-
0
votes2
answers43
viewsA: How to use table in Banner Jquery?
I used the http://bxslider.com/, which was indicated by Caio Felipe Pereira and found that the banner size can be determined by the size of the element inside it. Just use: $('.bxslider').bxSlider({…
-
0
votes2
answers43
viewsQ: How to use table in Banner Jquery?
Is it possible instead of using an image, to use a table in a Banner Slider? And how to disable the automatic Banner transition?
-
4
votes1
answer1952
viewsQ: Read CSV file without needing to save it
I have following code: [HttpPost] public ActionResult importCSV(HttpPostedFileBase file) { if (file.ContentLength <= 0) { ViewBag.Message = "Nenhum arquivo foi enviado."; return View("index"); }…
-
0
votes1
answer46
viewsA: How to add two buttons to Toolbar?
I got the answer here. Stayed like this: toolbar: [ { text: "Exportar para Excel", name: ["excel"] }, { template: ($("#template").html()) } ] Now I just need to line up one on the left and one on…
-
1
votes1
answer46
viewsQ: How to add two buttons to Toolbar?
I have a grid and would like to put two buttons on toolbar. At the moment I’m trying like this, but it’s not working: toolbar: [ { text: "Exportar para Excel", name: ["excel"] },…
-
2
votes1
answer2242
viewsQ: Add Column as Primary Key
I ran the following script: CREATE TABLE [dbo].[horario]( [Ano] [int] NOT NULL, [CodigoTurma] [varchar](5) NOT NULL, [Ordem] [int] NOT NULL, [Professor_Id] [int] NOT NULL, [Matriz_Semestre] [int]…
sql-serverasked Jedaias Rodrigues 6,718 -
4
votes1
answer96
viewsQ: How to work with Ajax with Jquery?
I have the following function: function getJson() { $.ajaxSetup({ async : false }); $.getJSON(baseURL + "/ObterCursos", function(data) { $.each(data, function(key, val) { items.push({ "Codigo" :…
-
10
votes4
answers844
viewsQ: How to create properties dynamically in C#?
In Javascript it is easy to create an object with new properties. var obj = { "propriedade1" : "valor", "propriedade2" : "valor" } It is possible to do something similar in C#? var lista = new…
-
0
votes2
answers160
viewsQ: How to add Scroll in User Registration?
I have an Asp.Net MVC project that uses Individual User Account and I would like to add a category (Role) for him at the time of his arrest. What I have at the moment is: View: @model…
-
0
votes2
answers160
viewsA: How to add Scroll in User Registration?
Well, the alternative I see is to use the Formcollection. Would that make you controller: public async Task<ActionResult> Register(RegisterViewModel model, FormCollection frm) { if…
-
1
votes1
answer77
viewsQ: How to get user type in view?
I have an Asp.Net MVC project that uses Individual User Account with Owin. Everything is working perfectly, but I would like to get user type (role) in View. I’m using Request.IsAuthenticated to…
-
0
votes1
answer1263
viewsQ: Send object via POST between Javascript
I have two Javascript files and need to send an object arquivo1.js to the arquivo2.js via POST, this is possible?
-
0
votes0
answers51
viewsQ: How to work with Jquery Mobile Collapsible and Ajax Synchronous?
Gentlemen, I have a Collapsible that when clicked calls a synchronous Ajax and displays the results within it. I’m having to make when it is clicked display that gif until you get the answer from…
-
3
votes1
answer870
viewsQ: Jquery How to Monitor Exchange of Values?
I have a radio button: <input type="radio" value="1" id="monitor" style="display:none;"> Here I change the value of it, and I would like an alarm to be triggered: $(function(){…
-
3
votes1
answer486
viewsQ: How to get Json by Ajax in . html?
Suppose I have a file .html I just created in the notepad with a code Ajax where I want to get the data generated by this application. I made a code here, and when I put one breakpoint in the…
-
2
votes1
answer157
viewsQ: How to configure Web.config in Cordova project?
In that question I was recommended to configure the web.config of my project Cordova that uses Ajax. I searched on the subject but found nothing of the kind. Someone can help me?…
-
4
votes3
answers598
viewsQ: Is it possible to assemble default layout for HTML pages?
If I have two pages: pagina1.html and pagina2.html, that are very similar, it is possible to use a page layout.html to determine common elements of each page? And thus also avoid the repetition of…
-
6
votes1
answer728
viewsQ: Ajax in different project
I have a project in Asp.Net MVC with the following method: public ActionResult ObterCursos() { List<curso> cursos = new List<curso>(); curso curso_ = new curso(); curso_.Nome =…
-
1
votes2
answers7587
viewsQ: How to resolve html elmento value quotes with javascript?
I have a script that creates buttons with onclick events, but I’m having trouble assigning its value. View the script: for (var i = 0; i < cursos.length; i++) { $("#cursos").append("<button…
-
1
votes1
answer287
viewsQ: How to know when Collapsible expands or closes?
I have a Collapsible, and when it is expanded I want to add elements to it, and when it is collected I want to exclude the elements. At the moment I’m using it as follows: <div id="expansorTurma"…
-
2
votes1
answer90
viewsQ: Why can’t I get value returned by function?
I can’t get the value returned from the function, what would be the reason? Someone could help me? In my html page I have the following function: function montarCursos(){ var cursos =…
javascriptasked Jedaias Rodrigues 6,718 -
1
votes1
answer2499
viewsQ: How to call controller action?
I have the following code: function confirmaExclusao() { var decisao = confirm("Deseja excluir permanentemente esse item?"); if(decisao == true) { //Chamar a action para excluir } else { //Aqui não…
-
1
votes0
answers312
viewsQ: How to upload files?
Well friends, I have to upload pdf files (and only in this format) and link to a user. How could I do that? What is the best way to structure the files saved on the server?
ruby-on-railsasked Jedaias Rodrigues 6,718 -
1
votes1
answer541
viewsQ: Customizing Individual User Accounts
Well, I have an Asp.Net MVC web project that uses Individual User Accounts and I would like to use a specific table in my database and a different class to manage user login. How can I do this?…