Questions tagged as 'javascript'

4
answers

Mark contacts / hashtag when entering text with javascript

Good morning In my current project, I need to mark the subject's contacts and / or hashtags in the text, while typing For example, when typing '@' and the first few letters, javascript recognizes that it has to search for users, or by typing '#'...
asked by 20.05.2015 / 15:13
2
answers

CKEditor does not recognize attribute required

I'm using CKEditor to create pages that can contain forms (in other words, forms can be inserted into content being edited , because I'm using the full package ). I would like to be able to use the required attribute in some fields of...
asked by 10.04.2015 / 18:41
2
answers

Using jquery animate () to animate the exchange of place divs in a puzzle

link This example above is not yet fully functional, the puzzle logic is: 1 - Click on at least two divs (or 2 pieces of the puzzle) and so the two divs would have to move places using animation. 2 - For this to happen, I collected th...
asked by 06.10.2015 / 21:43
2
answers

Regex to get sequence of equal numbers

I need to do a validation using regex, how do I validate if a string is coming with repeated numbers? for example "1111", "2222", "3333"     
asked by 22.10.2015 / 21:44
2
answers

Handle and model Json object

I have a JSON object with the following structure: [{ "Codigo": 7, "Descricao": "Atividade 1", "CodigoMilestone": 6, "TempoRevisado": 2, "Inicio": "\/Date(1445738400000)\/", "...
asked by 30.10.2015 / 20:57
1
answer

Doubts about double exclamation (!!) in javascript / Jquery [duplicate]

I saw the use of the same in the source code of Jquery , for example: fired: function() { return !!fired; } Code snippet located between lines 3222 and 3224 of version 2.1.4 uncompressed. Is it something native to Javascript...
asked by 19.10.2015 / 14:30
2
answers

Make a website not run in any version of IE

I have a site that should not run in any version of IE , when they try to open the url I want a background-image to appear, site is not supported in IE . Is this possible? I put this solution in my code: <script type="text/javascr...
asked by 27.05.2015 / 18:18
1
answer

Correct use of DOM with react.js

Knowing that ReactJS uses a virtual DOM where elements are rendered in a DOM representation in memory so that all changes are made faster then it would be "wrong" to use findDOMNode to directly access a DOM element and manipulate your state?   ...
asked by 23.07.2015 / 04:27
2
answers

Conflicting slides

I have the following problem I have a slide right at the beginning of my page in the <header> tag but one of your codes is imported this would be url but now in my <section> I have another tag that is from another slid...
asked by 15.07.2015 / 21:54
1
answer

How to detect the connection to the internet via javascript? [duplicate]

Is there any way to "know", via javascript , if the internet connection has been lost? For example, to attempt a reconnection with websocket, if it detects that the internet connection has been lost and then reestablished.     
asked by 03.08.2015 / 15:59