Questions tagged as 'javascript'

1
answer

JSON return with error: SyntaxError: missing; before statement

I'm having a problem with the JSON return, and I've researched and found no solution. I have the following requisition: var url = 'http://zcash.flypool.org/api/miner_new/t1UjazwJJnrUGoPh4GJYJ9FV6sYFzYg6H63?callback=?'; $.getJSON(url, func...
asked by 14.06.2017 / 20:19
3
answers

Change external iframe color or put opacity in iframe

I would like to know if you can change the css of an EXTERNAL iframe that already has a white background and black font ... If it is not possible, I would like to leave the opacity of the frame a bit transparent because my page is black and i...
asked by 14.06.2017 / 19:42
2
answers

JavaScript code does not work in chrome [closed]

I'm starting with javascript and I made the following code, only it is not working in google chrome, why? HTML <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Teste</title> </head&g...
asked by 28.05.2017 / 20:06
2
answers

mascara input html with javascript

Good evening. I have this field with a mask when typing cpf, it happens that if you copy / paste it does not apply the mask, only the numbers. How can I have the 2 mask forms in the imput? function formatar(mascara, documento){ var i = do...
asked by 07.07.2017 / 23:29
3
answers

Subtraction with decimals in result

I have a problem that I can not solve, the function calculate () subtracts the price from the total payment and shows in the quantifalta, but when showing in the quantifalta, it shows like this: Price: 62,000 Total Payment: 60,000 Amount Mis...
asked by 08.07.2017 / 14:14
2
answers

Doubts about JS function

I have the function myFunction that calculates the product of two numbers and displays them on the screen. I would like to divert this function to the listen function when the value of p1 = 10. As it stands, it only displays the value of myFunct...
asked by 28.05.2017 / 22:20
1
answer

Quotation (single quotation mark) within quotation marks in javascript and php

I wanted a more elegant way of writing the code below. It is passing the parameters via GET but it goes with \ 'and I can even use a PHP function of replace but wanted a solution without gambiarra. I have the following code: onClick=\"wind...
asked by 18.05.2017 / 04:10
1
answer

Rendering Dynamic Images with Angle

I have an object in the following format: Withinthemainobjecthasanobjectcalledupload.Thisobjectcontainsinformationabouttheimagestoberendered.I'mtryingtodothis:ng-src="{{o.way}}{{o.original_filename}}" But it does not work at all. Returns the...
asked by 18.05.2017 / 14:08
1
answer

Prevent sending of Google event when pressed F5 and access via GET

Speak up! I need to do an event upload prevention of analitycs in the following scenario: I have a form that when the submit is given, the post is rendered in ajax and this ajax returns a URL in which I do the redirect via location.href...
asked by 18.05.2017 / 16:01
1
answer

Remove row from table after deleting via AJAX

I have a table that shows student records, and each row has a button to delete the student, and the deletion is done via AJAX. I would like to give a fadeOut on the line that is deleted, so in the AJAX success I did the following: success:func...
asked by 18.05.2017 / 02:29