Questions tagged as 'javascript'

2
answers

How to damage a website using XSS / SQL injection?

I'm not a hacker, but I know some techniques. I'm training security and I was really thoughtful about it. Every time I inject a script, it is a alert() , nothing dangerous for the host (for example). I do not have a website, there is no wa...
asked by 21.06.2014 / 05:06
2
answers

How to use number generated by FOR in the name of a variable?

How to use number generated by FOR in the name of a variable? Example: for (var i = 0; i < 5; i++) { var teste[i] = "teste é " +[i]; } Example 2: for (var b = 0; b < 5; b++) { var teste[b] = "teste"; } OU I have to crea...
asked by 15.06.2014 / 02:30
1
answer

How to do the Facebook content upload technique?

How does Facebook do this by loading your page? It loads the content bit by bit and not all at once like most sites, StackOverflow is an example that loads. How do you call this loading technique? (if you have a name) How can I do it in Ja...
asked by 19.02.2017 / 22:50
4
answers

Right menu in each row of a table

I have a table and I'm trying to create an action menu by right clicking on each row of the table. It is partially working the problem that I can not make the script select the context menu for each line it is always catching the last. I'v...
asked by 22.08.2014 / 22:53
3
answers

What is the equivalent of the average CSS queries in Javascript?

When I want to apply a certain style to the size of the screen, I usually use the CSS media queries. Example: @media only screen and (max-width : 768px) { .container { width:960px; } } I would like to know if there is an...
asked by 06.11.2017 / 16:10
2
answers

Input mask with leading zeros

I have a numeric type input, which should only receive numbers (obvious) . However, some browsers let the user type alphanumeric characters. But the problem is not just that. I need to display 0 on the left as long as the input value h...
asked by 10.01.2017 / 20:04
2
answers

How to hide one element after a certain time?

So, I have a div that appears every time I submit a form, I wanted to know how I can fade this div after some time.     
asked by 08.01.2017 / 00:05
2
answers

Jquery ignoring houses on the right

I set up the function below, for validation of values in two fields, one automatic (comes from the bank) and another one entered by the user. What happens is that apparently he ignores the houses to the right of the value. For example: functio...
asked by 19.06.2017 / 14:24
2
answers

How to avoid function calls

I have a call on my systems for a javascript and it always worked. It is a function to show / hide a loading image for the user. The problem is that sometimes I have to call this function in a user action of a select field, for example,...
asked by 13.03.2014 / 14:57
1
answer

Error with Ajax navigation ("XMLHttpRequest can not load ...")

I'm trying to use a navigation without refresh on the page, but when I click the link, it gives this error: XMLHttpRequest cannot load file:///Caminho.../paginas/login.html. No 'Access-Control-Allow-Origin' header is present on the request...
asked by 07.02.2014 / 14:55