Questions tagged as 'javascript'

1
answer

Replace occurrences arbitrarily in JavaScript

I'm using the replace() method to highlight certain words in a sentence. The method replaces only the 1st occurrence of the target word by default. I would like to know how perform arbitrary overrides . Ex: Replace the 2nd sentence of...
asked by 15.03.2015 / 03:17
1
answer

wysiwyg does not let you type

I am using wysiwyg to create a field with rich text but it is not accepting me to type. What am I doing wrong? Setting Javascript: <script> $(document).ready(function(){ $('#editor').wysiwyg(); });...
asked by 06.07.2015 / 18:16
2
answers

calculate timestamp difference between two dates [duplicate]

I have two dates, for example: 01/01/2001 and 01/01/2002. The difference between them is one year. How can I calculate this difference and if it is more than a year make a print.     
asked by 06.07.2015 / 17:43
1
answer

Handle url with javascript

I have a blog and platform migration (Blogger -> Wordpress) and I have also changed the domain. For the newer articles I do not face any problem, however articles with more than one or two years, there are links spread over the web with the old...
asked by 04.07.2015 / 21:50
2
answers

Zoom button and Street View do not appear on Modal Boostrap

I'm loading Google Maps v3 into a modal Boostrap Framework. The problem is that I can not see the icons / zoom button and Street View, they appear distorted in the blue square of the image. The right one was to appear on the red square as standa...
asked by 10.03.2015 / 16:54
1
answer

Jumping between remote applications using the cordova (complex problem)

Hello, I have 3 applications and each one is available for iOS and Android and I would like to create an app to access all of them. In order to achieve this, I need to get the code from each of the applications and move it to a server so t...
asked by 11.03.2015 / 23:13
1
answer

Problems adding script dynamically with Javascript

I'm having trouble dynamically adding a script to a page. The script I want to add is CKEDITOR (Text Editor). I am able to add the Script, but I can not access the object of this Script after this action, the object that is created is C...
asked by 09.03.2015 / 13:01
1
answer

Regular expression search

I'm trying to do a search with regular expressions in an immense json this way: json = _.filter(dados.responseJSON,function(rst){ return /rst.dst/m == tel }); But it is not working. The goal is to make the search as if it were L...
asked by 11.03.2015 / 19:40
2
answers

How to solve value quotes in html with javascript?

I have a script that creates buttons with onclick events, but I'm having trouble assigning its value. See the script: for (var i = 0; i < cursos.length; i++) { $("#cursos").append("<button class='ui-btn ui-corner-all optCurso' data-...
asked by 05.06.2015 / 02:19
1
answer

Gallery with PHP and Javascript not working correctly

I have a function in JavaScript that assembles an image gallery. I had this function all in Javascript and it worked perfectly, now I need to insert PHP so that the user can make changes to the images, and I'm passing the pa...
asked by 04.06.2015 / 01:47