Questions tagged as 'javascript'

2
answers

How to search a string inside an object in an array?

I would like to look up the word "script" inside an object, which would be the Roteiro variable. I started trying to figure something out after searching the internet, but I got lost, and it did not work, so I need help with the reason...
asked by 12.02.2015 / 20:03
1
answer

Forms and Iframes

Is it possible to use <iframe> within <form> ? I am making a code where I pass id on <div> and within <form> with another id , so within <form> I want to call a &...
asked by 26.06.2014 / 14:50
1
answer

Using variable as attribute name when doing $ .post

How do I make jQuery look like NomeCampo as variable and not field? var NomeCampo = $(this).attr('name'); var ValorCampo = $(this).val(); $.post(FormAction, {"NomeCampo":ValorCampo}, function(data){ alert(data); } );  ...
asked by 22.06.2014 / 22:05
1
answer

How to read QueryString parameters in Javascript

How do I collect arguments from an HTML page? Type I've tried to use that neither C # / ASP.NET: var conteudo = Response.QueryString["usuario"]; Considering a query string as: /default.html?usuario=pt Then he would tell me what was...
asked by 27.06.2014 / 21:31
3
answers

Alert message in asp.net mvc

I have a form in Asp.Net MVC that terminates as follows <div class="modal-footer"> <input class="btn btn-primary" type="submit" value="Salvar" /> <a class="btn btn-default" onclick="FechaModal();">Cancelar</a> &...
asked by 24.06.2014 / 14:49
2
answers

How to make sure that script / script does not appear in the HTML file. Appear only the text inside document.write

I'm trying to insert some scripts of my WHMCS into a HTML page on my site, which returns a document.write(' Texto que irá aparecer '); , and the text contained within document.write is displayed in the HTML page...
asked by 24.06.2014 / 01:11
1
answer

Move SVG objects graphic

I want to draw a graph where I can move the dots ( circle ) of a line into JavaScript. When you move the object circle , the line is always pasted to the circle. I want to make the genre look like this: Thatis,itisalineforeachc...
asked by 17.11.2014 / 13:53
3
answers

Check if there was POST with Javascript

I have a singlepage application, and I would like to monitor POST for a webservice. When I send the information it removes the loading. ex: scope.deleteFile = function (fileId,index) { scope.loading = true;...
asked by 18.11.2014 / 15:52
2
answers

Single Page Application with jQuery

How can I develop a SPA with jQuery? I did with AngularJS with the following code, however I am having difficulties to migrate to it definitively and decided to keep with jQuery so as not to be late. var myapp = angular.module('myapp', []); my...
asked by 22.11.2014 / 22:41
1
answer

How to dynamically create an element in SVG?

I want to use a number of one variable and create several SVG objects the same. Just change your position and name in JavaScript. As in the for loop sampled in the pseudo-code: for(i=0; i<variavel; i++){ <circle title=circl...
asked by 14.11.2014 / 16:17