Questions tagged as 'javascript'

1
answer

Global Scope Differences in UserScripts in Chrome and Firefox

I started programming UserScripts in Chrome and almost all of the code snippets I find work, but when it comes to Firefox it's a problem. In Chrome I use Tampermonkey and in Firefox Scriptish (which is a fork of Greasemonkey). [Note...
asked by 13.09.2014 / 02:49
1
answer

Pass base64 code to another page

I have tried to pass as get only the code has bar and error, I just need to pass the base64 code from one page to another page. Obs ** This base64 code is being generated on page A with crop. And I have to move to page B for another treatment...
asked by 11.10.2016 / 21:06
1
answer

Put emoticons in the chat of my site [closed]

I would like to know how in php or javascript how to put emoticons as the person types the text and a command, eg: Hello good morning [/ sun] or I'm fine [: smile] Anyway, regardless of the command how to do it to be replaced by an ima...
asked by 26.10.2016 / 08:22
1
answer

Input loading Modal data

Good afternoon! I'm trying to make a modal to fetch the products and assign them to the input. Idea: When I click on the input, it opens the modal. Then I choose the product in the modal and it loads the input with the data of the chosen product...
asked by 11.10.2016 / 18:46
1
answer

How to transform AJAX with JQuery into pure JavaScript? [duplicate]

How can I make the following Javascript pure AJAX without using JQuery? $.ajax({ url: "http://habbxo.esy.es/test.html", success: function b64EncodeUnicode(entry) { nome = entry.split("uniqueId\":\"")[1]["split"]("\"")[0]; } });...
asked by 19.05.2016 / 02:32
2
answers

What is the best practice for integrating external content with my site?

I'm developing a website in PHP and I'm going to need to integrate content that will be on a page from an external site. This page will be poorly formatted, without header footer and sidebar , I'll just have the link on this page...
asked by 06.07.2016 / 14:00
1
answer

Problem in the Jquery code

Hello everyone. I am doing the following: A system where the user can shuffle the order of the images. Click the button and randomly they change places. So far so good, the problem is that when I get the return and play pro javascript, it...
asked by 20.08.2016 / 18:43
1
answer

Algorithm - How to get the days in a week JS

I have the following situation: I need to set the days of each week within a month, creating an array of JSON objects. Each position would correspond to a week, for example if there were 5 weeks I would have an array of 5 positions, where eac...
asked by 12.05.2016 / 16:16
2
answers

How to use Materialize with Angular?

I'm developing a project, but even though it imports all the CDNs, the angular and the materialize, the materialize JavaScript does not want to work along with the angular, is there some kind of conflict? Importing files: <script src="ht...
asked by 22.06.2016 / 23:58
3
answers

Async function javascript

I'm doing an API in Node.js and I have a function that I call through the post, but before I go to the precise repository I run the getProduto(idProd, produto) function, but it's doing console.log('produto -> '+ produto.nome); b...
asked by 08.11.2018 / 23:42