Questions tagged as 'javascript'

1
answer

Print Content That Has Several Canvas

I'm making a website where you have a painting to color a drawing. After much research I was able to paint a certain area of the canvas drawing. Now I want to do a function that prints the drawing I made. I'm trying to do this:...
asked by 28.10.2015 / 16:48
2
answers

build a conditional using object

Is it possible to create a conditional by assigning the conditional within a value? I did it the way it did, but it did not work: HTML <input type="radio" name="pg1" value="SIM"> TESTE <BR/> <input type="radio" name="pg1" v...
asked by 23.10.2015 / 17:56
1
answer

Coloring Canvas Design and Enlarging Painting Area

I have a type of entertainment on a page where I choose a drawing that is placed inside a% color%. I already have the brush and the colors. But I want something that does the bucket function that paints an entire area. Click on the bucket,...
asked by 26.10.2015 / 18:41
1
answer

Pass several data to an input, using a select

I'm trying to pass several data to an input, I had almost no idea that it would be a textarea by quantity but would be another select ? Here's how: I'mtryingtomakeitlooklikethis: Ifanyonecangivemeatip,I'llbegrateful.Hereisthecode: <scr...
asked by 03.11.2015 / 00:16
1
answer

Page Load with Swipebox

I want the Swipebox to open the page with an image. link I did so: jQuery if($('.swipebox')[0]){ $('.swipebox')[0].click(); } // Swipe Box $('.swipebox').on('click', function(e) { e.preventDefault();...
asked by 05.11.2015 / 17:47
2
answers

Event when the user leaves the page

I would like to make a model the same as the free ratra site. How could I do this? If it consists of when the mouse leaves the page a alert appears asking if the user really wants to leave the page. What javascript event does this anyone...
asked by 04.11.2015 / 17:17
1
answer

Macros in coordinates relative to textarea

I need to insert some macros into a text area, these macros can be inserted anywhere in the field, currently I only use a append that just puts the macro in the beginning. I'm thinking of getting the coordinates of the click with cl...
asked by 04.11.2015 / 12:30
2
answers

How to use ng-messages to show $ http errors?

I am able to use to perform invalid input validations, min characters and max characters, eg: <form name="myForm"> <div class="input-group"> <input type="text" class="form-control" name="cep" ng-model="cep" ng-minlength="...
asked by 15.04.2016 / 18:24
1
answer

Create directories and files in IOS using IONIC framework

I need to run a sort of CRUD in directories and files through an IOS application. This application uses the IONIC framework, which in turn uses Cordova and AngularJS features. The questions are: Regarding permissions, does the IOS syst...
asked by 16.04.2016 / 23:49
2
answers

Validating form with onsubmit and javascript

I'm having a problem with validating a form I'm using ajax to validate fields Problem the onsubmit expects a boolean type return and I am not able to make that return I put a counter inside the .done (function (html)) but this counter work...
asked by 06.11.2015 / 13:35