Questions tagged as 'javascript'

0
answers

Route Generator [closed]

I have a map with pre-defined points, but I would like to know if you can put a route generator as in the "maps" so that the person can enter his address and click on one of the map points and generate address, all the rest?     
asked by 26.02.2015 / 14:03
0
answers

Zoom clamp with photoswipe

Hello, I'm using a template that I bought on a website but I'm having a hard time implementing Pinch Zoom on it ... Basically it is the following: I have a gallery <ul class="gallery" id="Gallery"> <li><a h...
asked by 19.05.2015 / 16:31
2
answers

How to implement a library that has similar features to jQuery?

I would like to create a very simple library containing only the functions I use most, following an idea similar to the ones in jQuery. For example: I created the following function to get an element: var $ = function(el, index){ if(ind...
asked by 29.03.2015 / 01:11
4
answers

How to make Ajax requests, with Jquery, in different domains?

Is it possible to perform a POST-type request to a url that is not part of the domain of our application? $.ajax({ type: "POST", url: "http://www.dominioexterno.com.br/acao/", data: { var1: $('#input1').val(), var2:...
asked by 09.04.2014 / 15:09
0
answers

Error with AjaxSubmit

When doing .ajaxSubmit() of a form with a input type="file" I always get the error:    Uncaught TypeError: jQuery (...). data (...) is not a function Form: @using (Html.BeginForm("guardarDocComprovaticoProdOSCli", "OrdemSe...
asked by 23.04.2015 / 18:08
1
answer

How to time the time until a function finishes? [duplicate]

I want to time the whole program to finish its process, I need that time for comparison. Is there any easy way to implement this?     
asked by 26.04.2015 / 05:19
0
answers

Copy directory to another on site

I have a website in PHP and JavaScript. I set a button with the following function (found on the internet, called wrench.copyDirSyncRecursive ): function atualizaIR(){ dir1 = '201.7.201.173/Documentos/Teste1'; dir2 = '201.7.201.1...
asked by 23.04.2015 / 20:34
0
answers

Change line segment in graph

How can I change only the first circle and the line that is linked to the other circle in a line chart? I used the following code: lines.lines[0].attr({'stroke-width': 8}); The goal is to change the width of the line. But this changes the...
asked by 20.05.2015 / 22:38
3
answers

Executing external application with JavaScript

What code should I use to start an external application from a computer from an HTML page? One more time I was told that this code would be in JavaScript: var shwll = new ShellObject(); var hproc="C:\Windows\notepad.exe"; shwll.exec(hproc);...
asked by 17.08.2014 / 04:31
1
answer

How to load a partialview for an AJAX request? [closed]

I can not load a partialview into a div! <fieldset> <legend>Contato:</legend> @Html.Label("Tipo Contato: ") @Html.DropDownListFor(t => t.CodTipoContato, Model.TipoContatoList, new { id = "tipoContato", name = "tipoCon...
asked by 27.01.2015 / 14:51