Questions tagged as 'javascript'

1
answer

How to clear form data after saving to the database? via Ajax .net mvc

After you save an object in the database, the view continues to show the fields filled in! <fieldset> <legend>Endereco:</legend> @Html.ValidationSummary() @Html.HiddenFor(e => e.CodigoPessoa, new { id = "Pessoa",...
asked by 23.02.2015 / 14:39
1
answer

Display block with Onclick

Hello, I do not know much about javascript and needed help, I would like to make a menu that when clicked would change the display of a display div: none to display: block. My menu <div id="back"> <ul...
asked by 26.09.2014 / 22:38
2
answers

It is possible to trace the .js files that are called when executing some JQuery event

For example, if a click event applied to a link call a function that is in the A.js file, which in turn needs B.js , which needs C.js . I wonder if you can know this dependency between files by browser .     
asked by 26.09.2014 / 21:59
1
answer

Bootstrap modal does not load Google Maps v3 correctly

Ihavethefollowingproblem,whenloadingGoogleMapsv3inaModalwiththeBootstrapFrameworkthemapisnotdisplayedproperly.Followthecode:<!DOCTYPEhtml><html><head><metacharset="UTF-8"> <link href="css/bootstrap.css" rel="st...
asked by 24.09.2014 / 22:47
1
answer

Get id from SVG objects

I can get the id of an SVG object through getElementById using only one. But since I have 3 objects, how can I know the id of each one. var shape = document.getElementById('rect1'); shape.onclick = function(){ al...
asked by 11.03.2015 / 17:01
1
answer

Delete letters before after a number

Hello, I have a String ( var test ), and I'd like to do some operations on it. The desired result is a number, preceded or of the letter p or ps ) (ex s ) : ps1), and a number, followed by any letter az , in any quantity,...
asked by 18.03.2015 / 05:33
3
answers

Put in array strings according to a regular expression

I would like to make an array containing strings in this format: [Texto com acento espaço e números 99] Example, if I have this string: var texto = "Eu quero comprar [qtdOvos] e [qtdFrutas] somando o total de [totalCompras]"; I need to...
asked by 30.01.2015 / 21:03
1
answer

Access object option without being dotted

I have a json object in javascript and need to access it, I was currently accessing your options like this: registro.man_ins_prod_05 In hightchart in the part of adding values (date) in the chart, they treat points as comma . Functiona...
asked by 04.02.2015 / 13:24
2
answers

Facebook friends list

I have the following problem when trying to search the facebook friends list of the person logged in I have the script done so only login I am not listing the friends of the person logged in Thank you for your help Script <div id=...
asked by 30.01.2015 / 22:39
2
answers

How to call partial function after added via append

Hello, I have a partial view , which I render with the following code: $.ajax({ url: URL, success: function (data) { $("#DIV").append(data); } }); And within that pag...
asked by 26.01.2015 / 21:23