Questions tagged as 'javascript'

1
answer

Input Radio with default value

Using Asp.Net MVC 5 with AngularJS I want a input radio to be checked by default. According to the link: How to select a radio button by default? Assign an initial value to radio button as checked Just use this: <labe...
asked by 10.03.2015 / 20:26
1
answer

Convert javascript date to work in PHP

I'm trying to capture the file date via javascript and send it to PHP. Reason? I want the date of the last file change. $('#last_modified').val(arquivo[0].lastModified); Variable file is: <input type="file" name="teste" onchange=...
asked by 12.03.2015 / 18:38
1
answer

Table Search JS or jQuery

I'm wanting to make a search code using a RegEx for strings, and for normal numbers, and for the columns and rows of the table. I have tried a lot of different hypotheses, but none of them do that "refresh" back to the beginning when I delete...
asked by 12.03.2015 / 16:52
1
answer

forEach filtering by the parameter that was passed

I'm trying to solve a problem here. I think it's easy, but I'm not as intimate with javascript yet. Next: I have a Javascript array that has some information I need, such as name and title (eg: John, Higher Education) The first time I call the s...
asked by 27.04.2015 / 16:48
1
answer

Delete item from a variable that contains a list

I have a larger program, but my problem is residing in deleting an item from a variable that contains a list in there and so I created this Fiddle just with the part of my error. I put 2 alert() to see if the function is executed or...
asked by 27.04.2015 / 15:23
1
answer

How to encrypt a POST via Ajax

How do I encrypt the posts I send via Ajax? For example in the Telegram Web they do this, it is possible to see by the XHR with the requisitions sent and received. Example of what it is like on the Telegram Web (I wish my application would lo...
asked by 26.05.2015 / 05:24
1
answer

Hash in a GET service

I have a service where I make a GET request that does a search in the groups of my application, the problem is that the user created a group called #nome-do-grupo , and when it will do the search by name and it puts the hash, error search...
asked by 24.04.2015 / 16:59
1
answer

Caching static pages in the browser

How do I make a .html page cache the browser for a period of 20 minutes after it is downloaded? Note: The page is static and there is no back-end, everything is done with HTML , CSS and JS , it is hosted in the% /...
asked by 27.05.2015 / 15:12
2
answers

CSS Error in JQuery FullCalendar when using Google Chrome

I'm working with the JQuery library FullCalendar and I have a function that paints certain calendar lines according to a condition. The function works perfectly in Internet Explorer, but in Goolge Chrome the lines are not painted. I...
asked by 26.05.2015 / 18:26
1
answer

making variable error message? [closed]

I have a servitor and he is giving a simple error but I do not know how to solve it being that the objects are apparently normal see the code below. var io = require('socket.io').listen(8000); var players = {}, count = 0; io.sockets.on(...
asked by 27.05.2015 / 19:24