Questions tagged as 'javascript'

1
answer

Load dependencies on demand

I understand by dependency, the need for your script to need or is accessing in some way some method / property or properly an object encapsulated in another javascript file, be it a framework or not! Right? Based on this principle, I initial...
asked by 27.03.2015 / 01:51
1
answer

JavaScript Code Incompatibility

I'm using a script to switch a block with Nav Tabs, the first part of the code works normally, but the part where I do the border-color request and game to the other field is only working in Chrome, could someone tell me Why? JS:...
asked by 18.08.2014 / 13:59
2
answers

Modal window with database contents

I even know the PHP and Javascript, the problem is that I do not know how to dynamically create the modal for each click on a link, bring specific information from that link. If you click user 1 , bring information in the modal window of user 1...
asked by 10.09.2014 / 02:49
1
answer

How to use regular expression in input?

I would like to put in the input onkeyup an expression using html or js an example onkeyup='this.value=this.value.replace(/[^0-9]*/g,"")' This only accepts numbers, I want to adapt this /^(ht|f)tps?:\/\/[a-z0-9-\.]+\.[a-z0-9-!-@-#-$-%-¨-&...
asked by 18.09.2014 / 11:33
1
answer

Test ViewModel KnockOut with CucumberJs

I have the feature definition as follows: Feature: Shoper can add an item to ShoppingCart Scenario: First item added to ShoppingCart Given I have an Empty ShoppingCart When I add an Item to ShoppingCart Then The ShoppingCart mus...
asked by 02.07.2014 / 04:29
1
answer

Is it possible to create HTML frames?

I'm in a project where the front-end layer is totally, TOTALLY separate from the banck-end. They communicate via ajax via REST. And in this project, I'd like to break the html so I do not get duplicate content. Just as we do in ASP.NET (maste...
asked by 01.07.2014 / 20:23
1
answer

Put active link with javascript?

I have a code in javascript, visible in this link link I'm trying to put the first 3 active links simultaneously, if someone clicks on "About MHG" or "Workout Programs" or "Fitness Tips", that is, click on 1 of the 3, both are active. > T...
asked by 05.08.2014 / 11:37
1
answer

How to find exact RegExp and do this using constructor syntax?

I have an algorithm that takes multiple full paths of files and verifies that each of them is 'banned' by the server. The var s of for refers to each of these paths and sets is an array with regular expressions to check....
asked by 15.01.2015 / 23:53
1
answer

How to add a class in html elements of a string?

The scenario is as follows: I dynamically add an html. Once the html is generated it gets +/- like this: var templateHtml = "<div class='bola'>Bola 1</div><div class='bola'>Bola 2</div><div class='casa'>Casa 1<...
asked by 16.01.2015 / 14:33
1
answer

Jsfiddle {"error": "Please use POST request"}

I'm testing this code in JSFiddle and I have the answer:    {"error": "Please use POST request"} Here this code DEMO I followed the code below: Html <!DOCTYPE html> <html lang="en"> <head> <script sr...
asked by 11.07.2014 / 02:12