Questions tagged as 'javascript'

1
answer

How do I automatically send emails to users after registering on my site? [closed]

The question is: I want the user after registering on the site, to receive an email. I wanted to know how to do it in two ways .. 1st: "Get a link to activate the account." 2 °: "Just receive a message, informing you that it has been regist...
asked by 03.10.2015 / 14:33
2
answers

what is the simplest way to print an indented text in javascript for html?

How can you print this in an easier way? public static void swap(int[] list, int i, int j) { /* This method simply takes an array and swaps its values at index i and j */ int temp = list[i];...
asked by 19.04.2015 / 23:20
1
answer

Is it possible to pass variables by reference in javascript? [duplicate]

In PHP it is possible to pass variables by reference when we flag the parameter name with a & before. And so, the variable can be changed without reassignment of value. Example: function fn(&$x) { $x *= 5; } $y = 2; f...
asked by 02.10.2015 / 17:49
1
answer

How does settimeout ('__ dopostback (' dropdownlist 1 '' '') '0) work? [closed]

I would like to know how it works, because I'm trying to learn, and I'm having some doubts, I'm a beginner on this subject I've been reading about javascript a few days ago. I'd like to know how tabindex works also.     
asked by 05.08.2015 / 00:11
0
answers

Dialog to get only the local path of a folder [closed]

I have a field in an html form, where the path of a Windows folder (EX: C: \ folder1 \ folder11) should be inserted, where this field is of type text same. However, to facilitate, I would like to make a dialog, just like the input of type f...
asked by 21.08.2015 / 18:47
0
answers

Catch errors generated in javaScript and display in a div

I have div called log and I would like to capture everything that is generated in the console, just below I generate an index error to undefined a += 8; . The problem is that it only captures the first error. How do I sh...
asked by 05.08.2015 / 19:08
0
answers

Rotate local files within a frame in a modal

I have this code, an asp function: sub montaContrato() %> <!--<div id="dialog1" title="Diálogo Modal" hidden="hidden">Este é um teste de Dialogo Modal usando JQuery-UI</div>--> <iframe id="dialog" class="ui-...
asked by 05.08.2015 / 18:39
2
answers

Change one combobox from the other

Colleagues. I have a combobox which has the hotels list: <select name="Hotel" id="Hotel" class="form-control"> <option value="Selecione">Hotel</option> <option value="Hotel A">Hotel A</option> <option value=...
asked by 27.08.2015 / 20:15
0
answers

Function with ajax does not load fully

I have a code that when clicking the button it opens a function in javascript . In this function, a part of the code uses Ajax . I need you to click on this button to change the color of the button, the text content and display a mes...
asked by 04.09.2015 / 14:08
1
answer

UTF-8 coding does not work [closed]

I have a seemingly simple problem but it has given me some work here. I'm developing a single page application using AngularJS , on page index.html I have tag <meta charset="UTF-8"/> , and like all partials are inject...
asked by 02.09.2015 / 15:06