Questions tagged as 'javascript'

1
answer

Ajax sending _POST without max character

In this ajax the post sends more than 1000 caracters: $.ajax({ url: 'inserir.php', type: 'POST', data: { inseason: document.getElementById('comment').value }, success: function(result) {...
asked by 11.11.2017 / 20:12
1
answer

Make code that uses Promises to work also in older browsers

Recently I asked this question: Wait for variable completion Moderator Sergio helped me with the issue, but I'm still having issues with compatibility with legacy browsers. Is there a way to accomplish this without using Promises and run...
asked by 12.11.2017 / 05:56
1
answer

Input mask when loading page

I have a page that displays some user information. One of the fields is the telephone field. I want to apply a mask in this field when loading the page. I can even put the mask on, but only on the onKeyUp event. The problem is that the mask only...
asked by 21.08.2017 / 02:18
1
answer

How to change the color of the rows of a table according to the value of each table

I'm having trouble developing a function that changes the color of a <tr> based on a specific value of a <td> I need this function to do for each row, since they contain different values. At first the values are "...
asked by 06.07.2017 / 15:49
1
answer

Make React components available as dependency

blz? I have some react components here and I need to make them all available in a dependency, style or semantic, how can I do this? I'm trying to export the components into an index that imports and exports everything but I'm having a problem...
asked by 11.07.2017 / 21:49
1
answer

create hide effect and news link show with classes and ajax

I have a class that retrieves data from the bank public function ListAjNot(){ try{ $lernot = "SELECT tit_postjauport, pos_postjauport FROM noticia "; $listnot = $this->con->Connect()->prepare($lernot); $lis...
asked by 29.06.2017 / 02:46
2
answers

Change site color by clicking contrast button

I'm using a site developed in Bootstrap and it will have accessibility. I was able to put the increase and decrease the font, but I'm not able to create the contrast, that is, by clicking the Contrast button, the site will be dark with white f...
asked by 30.06.2017 / 16:16
2
answers

Stylize input via jQuery Validate

I'm using the jQuery Validate plugin to validate a form. When I declare the rules in the input declaration the form turns red when it does not fit the same, and blue when they fit. Here is an example of an input statement with inline rules: &l...
asked by 18.05.2017 / 17:45
1
answer

Doubt with $ http in AngularJS

When I do the get , I load it into an object's $ scope.contacts and I can show it in my View html. However, I can only access it within my then(function(){}) function, when I leave the part where I called $ http, I can no longer acc...
asked by 22.05.2017 / 20:03
1
answer

RegEx in JavaScript and C # for text validation

In a Asp.Net WebForms plication application, I have a TextBox that I need to validate if it contains any excerpt where < is followed by any character except whitespace. For example: Nesse texto pode existir < com esp...
asked by 25.05.2017 / 21:47