Questions tagged as 'javascript'

1
answer

Roles and Permits MVC 5

Good morning I am working on a project with MVC 5 with Entity Framework, as you know the tables for the registration of users and roles are generated automatically is very easy with entity framework, well what I want to do is the customizatio...
asked by 01.12.2017 / 16:17
1
answer

Function to add to the click but with values within the parentheses

<button onclick="funcion6();"> Dame click! </button> <p id="demo6">Yo cambiare al darle click</p> <script> function funcion6(a,b) { return a + b; } document.getElementById('demo6').innerHTML = funcio...
asked by 01.12.2017 / 00:33
2
answers

JavaScript Entries

It's my first post here, and I'd like to ask you a question that would solve my life with a project. I am developing a web page in HTML, CSS and JS, in this, I have a kind of "Virtual Calculator". My idea was to ask the user to enter some values...
asked by 30.11.2017 / 17:01
2
answers

Delete button with Javascript in ASP.NET application

I have an application that saves in a database and has a button to delete, I already performed the delete function and ask for confirmation, but when the cancel button is given it also deletes the record. The function that I have is this: <...
asked by 30.11.2017 / 17:08
1
answer

FileUpload error Size in file [0]

I have an asp control to upload files. <asp:FileUpload ID="fuAttachmentsSoporte" CssClass="required" runat="server" ClientIDMode="Static"/> <asp:Button ID="btnAttachmentsSoporte" runat="server" Text="Adjuntar" CausesValidation="F...
asked by 13.12.2017 / 12:57
1
answer

how to get a variable from another js file

I have the following problem: I am working with several javaScript files and I want to recover the contents of the variable that is generated in another js file .. example in the file1.js is executed and in a function that is found there is ge...
asked by 12.12.2017 / 23:46
1
answer

How to compare a string in javascript to add a style?

I'm trying to compare an if else to add a style (border), as you see in my next code add an id to an element to apply the style, the style that works is the style that you add by default, if not Nothing is satisfied in the if and else (in case t...
asked by 12.12.2017 / 20:38
1
answer

Enable button when selecting rows of the table and disable button when not having any selected

Buenos Dias, I have a table and I would like if a line is selected, a button will be enabled and if there are no rows selected, the button will be disabled. I leave my code here <div class="box"> <div class="box-header">...
asked by 28.11.2017 / 17:43
2
answers

Problem when sending Json data using AJAX

Greetings, I'm starting to use ajax technology to send data JSON type to a php sheet to make an insert to the database, in a facebook login the code works perfect unless you show me error 404 not found if I use this code js from an ibicacion in...
asked by 28.11.2017 / 15:40
1
answer

Problem with an upload file and Ajax

Dear community, I told you that I made an sript to upload files to the server. Use html5, jquery / ajax and php. Up there all right, the issue is that now I want to get an alert type confirm in the case that the name of the file already exists o...
asked by 29.11.2017 / 13:09