Questions tagged as 'javascript'

2
answers

How do I get a string returned from the inner execution of a URL to turn it into a JSON object? [closed]

I need to run this URL internally on the server. The output of the execution generates a string in the JSON format: {"success":false,"errorMessage":"Token inválido"} How do I get the string returned from the URL execution to turn it into...
asked by 20.11.2016 / 12:08
1
answer

Required from html is not working

I am creating a website and I am using angular, and in the only existing input the required is not working, ie even clicking on the submit button is sending the empty data to the bank, what can it be? $scope.adicionaTopico = function (top...
asked by 08.10.2016 / 01:19
2
answers

How to send a complete PHP page by email?

I'm having trouble sending an email template. I have the following page: <?php session_start(); ?>               Contact Us - PiscouAchou                                        Email successfully sent !          <section...
asked by 27.10.2016 / 16:45
1
answer

Test angular project compatibility across multiple browsers

I have a web application made with AngularJS v1.5.8 and I'm worried about compatibility issues, but I do not want to download several browsers and test out one by one in different versions. I want to know if there is a tool that automates this a...
asked by 27.10.2016 / 16:13
1
answer

Doubt using the JavaScript Proxy API

I made this code to study the JavaScript Proxy. It works by detecting the object's property change but when I call the property in the console.log it does not appear changed JS var f = {nome: "Fulano"} f = new Proxy (f, { set: (target, p...
asked by 25.10.2016 / 20:57
1
answer

Pass a JS variable as Url.Action parameter

Hello, I would like to pass the JS variables parameter as a parameter, but it is not working, I would like to know the correct way to do this, <script> function check() { var teste1 = document.getElementById("lala");...
asked by 26.10.2016 / 17:50
1
answer

BASE64 + Ajax Image Editor

I'm implementing an image editor with the cut and upload tool via Ajax. Image Editor: link Upload via Ajax: link Converting from image to base64 and blob from image editor restricts me to a 500px (server-side error) image while uplo...
asked by 26.10.2016 / 15:28
1
answer

how to make a POST request?

It's the following, I'm using google api to build an app. But I came in this part below and I can not at all. How do I POST that he asks me? I already have all the parameter data. Below the google help excerpt: Supondo que o usuário tenha a...
asked by 30.09.2016 / 19:21
1
answer

Function returning warning open_basedir restriction in effect. Filet

I have a function in PHP that checks if I have new requests in the system. if I have the return in ajax I will display a notification toas displayed the order number. PHP function verifies NewPosted.php <?php include('../../class/mysql...
asked by 29.09.2016 / 20:36
1
answer

Get number of the id attribute in an img tag within the while loop

The problem is this: I have a while loop in PHP and I need to fetch the value of a id attribute inside a img tag. This value is dynamic because it assigns it a PHP variable. $getLastFour = mysqli_query($dbc,"Select...
asked by 30.09.2016 / 17:53