Questions tagged as 'javascript'

0
answers

Tinymce with Vuejs

I'm trying to use Tinymce with vue, but so far unsuccessful, I've already used various and none of them worked. <template> <div> <Button type="primary" @click="newPost = true">Adicionar Novo</But...
asked by 02.10.2017 / 21:23
1
answer

How to force update of some values when using Javascript window.history.back ()?

Is it possible to force update of some values of my View even when I use window.history.back() of Javascript? My example: In my layout, I have a cart icon with the number of items inside it. When I add an item to the cart with this cod...
asked by 08.11.2017 / 19:00
2
answers

slideToggle (); open and close clicking on the same link, if you click on another just change content of the div

I need to create an effect similar to that of this site here when clicking the product opens a div with the infos of it there I click on it again this div closes, but if I click on another product and the div has already opened it just changes...
asked by 09.11.2017 / 00:59
3
answers

Error in declarations with Array

Well, I have an error that I can not find the solution. I have two hosting in the same place Hostgator, in a hosting my application is all right and working. But I needed to migrate the application to another address, in other words I migrated t...
asked by 09.08.2016 / 15:39
0
answers

How to replace the key of an array with a variable? [closed]

This works: var ind = 0; var elementos = document.getElementsByName('significado'); var sig_txt = elementos[0].value; alert(sig_txt); returns "wood" Why does not this work? var ind = 0; var elementos = document.getElementsByName('signi...
asked by 20.07.2017 / 00:24
0
answers

How to read a local txt file in Javascript

Hello, I'm a beginner in Javascript and I'm watching some videos on youtube about reduce and my doubt is, in the video it puts a code at the top of the file. import fs from 'fs' But when I put this code in my js and try to compile (node fil...
asked by 18.07.2017 / 02:25
2
answers

Use IP or LOCAL that the user is (or closest to) to send a query [duplicate]

I have the following code: function getpage($url, $postdata=''){ $c = curl_init(); <br> curl_setopt($c, CURLOPT_URL, $url); curl_setopt($c, CURLOPT_SSL_VERIFYPEER,false); curl_setopt($c, CURLOPT_SSL_VERIFYHOST,false);...
asked by 19.07.2017 / 08:31
1
answer

Open email client with php attachment file

I'm trying to open my email client (for example Outlook) with the following: <a href="mailto:[email protected]?subject=Assundo email&body=Corpo de email"> Send mail</a> Now I wanted to send an attachment by mailto...
asked by 12.07.2017 / 13:08
0
answers

How do I search the information for this autocomplete

<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java...
asked by 05.06.2017 / 05:21
0
answers

Build electron as http server

I would like to know if there is any possibility of compiling Electron and Executavel opening the files as HTTP server instead of executing them as file: // I am trying to access a web page that does not accept request of domains file: / / then...
asked by 04.06.2017 / 08:07