Questions tagged as 'javascript'

1
answer

jsPDF include css

How do I save this DIV, with css formatting, if it's easier to do with table, so can I, so what I need is to just show this DIV with value inside. It will be generated side by side. var doc = new jsPDF(); var specialElementHandlers = {...
asked by 11.08.2017 / 02:02
3
answers

Enable 'Access-Control-Allow-Origin' in jQuery [xml]

I do not have access to the .htaccess server and need to enable cors in jQuery The code to access the WebService is: $(document).ready(function(){ jQuery.support.cors = true; $.ajax({ url: 'https://finance.yahoo.com/webse...
asked by 09.08.2017 / 18:04
3
answers

Problem in division and multiplication

I have an exercise to do the four basic operations, but multiplication / division is not going, and you have to test if the number q is dividing is not zero. But sum and subtraction is right. <html> <head> <title>...
asked by 12.08.2017 / 05:00
3
answers

Transparent menu with color change when moving the mouse

How do I make the menu effect at the top appear transparent showing an image and when moving the mouse appears a bar with color equal this template. Could someone give me a tip? Example: link     
asked by 16.08.2017 / 05:20
2
answers

CSS Selector - Execute a loop from a particular loop item

Good morning. Let's say I have a table with 100 rows, plus I'd like my each (JQuery) to start from row 15. Which Css selector should I use? Or does JQuery have any resources? Thanks to everyone     
asked by 14.08.2017 / 15:00
1
answer

Taking value from one input and moving to another dynamically

I have a screen to sell products, with this I have a button to add product to be sold, this button brings a select (to choose the product to be sold) and an input (which comes the value of the product) p> So far so good, but I'm having trouble...
asked by 13.08.2017 / 03:52
1
answer

Animations with css

Hello, I have a question regarding animations with css, I have a page made in HTML for an Internet system of Things, that when the user clicks on the drink the system sends a request to a server that in turn sends to an arduino, but beyond that...
asked by 24.06.2018 / 20:42
1
answer

How to return Primary key error already existing in PHP / MySQL?

Good afternoon. How do I return an error when there is an attempt to insert a row in a table, and the primary key already exists? By default, the database does not insert the row. How to show this error as "Existing item"? Follow part of t...
asked by 21.06.2018 / 21:01
2
answers

Problem when calculating percentage using parseFloat and toFixed

I want to do something very simple, but simple as it is, I can not. I have an input that receives the cost value, an input that calculates and shows the profit margin in% and an input that receives the sales price. Thequestionisasfollows,theway...
asked by 23.06.2018 / 15:45
1
answer

SetInterval and restart

I have setInterval with an interval of 2 seconds. I need to stop this interval at a certain point and start it again with a new time. Scope I make an AJAX inside the setInterval. As soon as the AJAX response is success (for example)...
asked by 22.06.2018 / 19:51