Questions tagged as 'javascript'

1
answer

Difference between Dates JS - Error momentjs

I need to calculate the difference between two reported dates. I need to know the result in years and months. I used the momentary library in conjunction with angularjs. By putting the Start date as 06/07/2015 and the date of birth as 06/07/1...
asked by 06.07.2015 / 18:04
1
answer

Postback in dropdownlist with jQuery or JavaScript

How to give a postback or clear the selection of the dropdownlist so that it returns to the pre-state state using jQuery or JavaScript? I need to clear the selection by clicking on a p tag and calling the toggle () method. My code is this: <...
asked by 05.06.2015 / 18:57
1
answer

Problem with sending posts via Ajax

I am creating a chat with websocket , when I send a message it saves the message in the database. This is the example of how it sends the message post ButtheproblemiswhenIsendajavascriptfunction(I'mtryingtodeletejavascriptinjectionininputd...
asked by 07.06.2015 / 04:59
1
answer

Install Nesbox emulator on Wordpress

I'm trying to add the Nesbox emulator on a Wordpress site, but it's not working because I do not know where in Wordpress I should add the emulator folder, so it works the way the developer explains. <div> <div id="emulator">...
asked by 10.10.2015 / 01:11
1
answer

Can you save and load text file in an iframe or openWYSIWYG?

I really liked the code to save and load text in textarea of a post here. However I would like to know if you have any similar code to do the same function with iframe instead of textarea or that works correctly in the openW...
asked by 10.10.2015 / 03:18
2
answers

How to customize scroll bar in div? [duplicate]

I have a menu that uses Bootstrap offcanvas but I wanted to style its scroll bar in the style of Facebook chat.     
asked by 13.10.2015 / 21:07
1
answer

Sliding divs for content

Someone could help me with boxing with sliding content and by clicking on the arrows the Div is pushed and thus showing the other box as in the example of the image below the globe. I already did with java script but I do not go as I wante...
asked by 09.10.2015 / 19:19
2
answers

Preview image with JS

I'm trying to do an image preview when the user selects the file with <input type="file" /> but I'm having a lot of difficulty, I've looked in several places and since I do not handle a lot of Front it's even harder for me! I trie...
asked by 11.09.2015 / 22:35
1
answer

Store data in a form

I would like to know how to store data in a form, it will have a presentation in the course and I would like people who access my page to leave a comment about what they found ... I wondered if this is possible only with JavaScript, the comments...
asked by 14.09.2015 / 18:28
1
answer

exchange data-src by src with javascript

In the site I'm doing I have a lot of thumbnail in which when clicked goes to another page where there are several blocks of code. Each block corresponds to a thumb. The problem is that I need when I go to another page it does not load <if...
asked by 21.05.2015 / 01:14