Questions tagged as 'javascript'

1
answer

Uploading images only after clicking button

Hello, everyone! I would like to know how I can cause multiple li's to be loaded only when the user clicks the "see more" button. In the following example, I'd like you to see the first 2 lines when you access the page. To load the last 2...
asked by 25.11.2016 / 17:55
1
answer

Modal Countdown

I created a modal with Bootstrap, and created in a separate file a timer in Javascript. But I wanted this timer to roll inside the Modal. How do I proceed? Thank you! Modal code: <div class="bs-example">         <div id="QuestaoMo...
asked by 27.11.2016 / 16:00
2
answers

passing a complex object to MVC4 controller

I'm using MVC4 C #, I have a table that is dynamically generated according to the user's decision, in this format:  generated by js <tr class="itemPedido"> ' + '<td class="col-sm-1">' + '<p class="codigo">' + $(thi...
asked by 25.11.2016 / 16:55
1
answer

How do I do when an option is disabled in select, does jquery detect this action (deselect)?

I'm having a problem when I uncheck an option on a particular select. I can not make the select option, when unchecked, return to its initial state, ie, reset. So, I thought of JQuery detecting when an option is cleared, but I do not know how to...
asked by 25.11.2016 / 12:19
1
answer

Add TextBox's results from one page to a table of another HTML page

I have an HTML page with an empty table and when I click on a button, it points me to another page where I have 5 inputs, what I want to do in javascript is to put the result of these 5 inputs in the table on the previous page. p> Page 1, name...
asked by 25.11.2016 / 21:37
1
answer

Function js works only once

I have a page that looks up the customer data by code and displays it in a table. The problem is that I always need to refresh the page to be able to do a new search, the button only works once. What should I do? Here is my code: PHP: $func...
asked by 20.10.2016 / 18:37
1
answer

Even putting the table inside a div I can not set margin

I put a table inside a file .html <!DOCTYPE html> <html> <link href="StyleMain.css" rel="stylesheet" type="text/css"/> <div id="tableDiv"> <table border="0" width="100%"> <tbo...
asked by 17.01.2017 / 19:43
1
answer

Error adding more than one given mysql function in javascript intel XDK with PHP

I'm using the following function: $( document ).ready(function() { var $server; $server = 'http://localhost/mobile/DatabaseXDK/database/www/'; $('#inclusao').on('click', function(){ $nome = $('#nome').val(); $.ajax...
asked by 17.01.2017 / 04:40
1
answer

add in firebase with angularfire $ add

My scripts: <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.0/angular.min.js"></script><scriptsrc="https://cdn.firebase.com/libs/angularfire/2.2.0/angularfire.min.js"></script> <script src="https://w...
asked by 18.01.2017 / 14:59
1
answer

Ng build -prod Angular 2 - How to publish the application

After giving Ng build -prod it generates files for distribution, my question is the following how can I do this to publish on a PHP server or any other normal one, because when I try to get the files generated by javascript into putting them in...
asked by 17.01.2017 / 12:49