Questions tagged as 'javascript'

1
answer

how to access non-standard javascript properties

Hello, I make an xml request, and I get a tag named item, with some unconventional attributes $.ajax({ type:"GET", dataType: 'text', url : "requests/playlist_jstree.xml", success: function(retorno){ parser = new DOMPars...
asked by 29.03.2017 / 11:28
4
answers

What is the difference between creating a module normally and creating a module within a function?

I've been looking at some sample projects in AngularJS and have come across several times with the following code: (function () { angular.module('meuModulo', [ 'alguma.dependencia', 'outra.dependencia' ]); })(); Th...
asked by 30.03.2016 / 15:46
1
answer

Differences between $ ('body') on ('click', ...) and $ ('selector').

I have a question in the click declaration of an element with jQuery, I know you can do it in the following ways: $('body').on('click', '...selector...', function () {...}) or $('...selector...').click(function () {...}) I know the f...
asked by 30.03.2017 / 16:32
0
answers

Owl Carousel 2 - Slide does not follow correct size

Good evening, The site link is using owl-carousel-2, but in certain resolution, the following bug is happening: / p> The area of the slide, which should be like this (has been programmed correctly, and sometimes works): Itlookslikethi...
asked by 31.03.2017 / 01:37
1
answer

How to Filter by Category via Modal checkbox using Ionic / Angularjs?

EDITED FOR BETTER EXPLANATION I have 3 types of filters: A search: <div class="bar bar-subheader bar-assertive"> <label class="item-input-wrapper textbox-search"> <i class="icon ion-search placehold...
asked by 13.03.2017 / 15:29
1
answer

App webview session or cookie

Hello, guys! I am creating an (hybrid) app for android, from HTML5, CSS and JAVASCRIPT, such as WebView. I will use API through PHP using MYSQL, exchanging information with JSON. My question is next, where should I save the token to make a...
asked by 12.03.2017 / 04:56
1
answer

Load external JS in app Cordova + Windows 8.1

I've now developed an html app with Angular where I need to make a transparent checkout on PagSeguro. For this, they ask for the inclusion of an external JS: <script type="text/javascript" src="https://stc.pagseguro.uol.com.br/pagseguro...
asked by 22.02.2017 / 16:46
1
answer

How to execute a javascript script shortly after sending the form? (other than onClick)

I want to execute a javascript function that shows a message loading on the page, ie while the page loads, the message appears on the screen, however I do not know how to use it in html5 with javascript, as I am using required (validation...
asked by 23.02.2017 / 14:22
1
answer

How to use a Gulp file for production and development?

I was researching how to create a Gulp file that understands how to differentiate when it is for production and when it is for development. I found the plugin below, and would you like to know if this is the ideal way to do this differentiation...
asked by 21.02.2017 / 19:44
1
answer

PrimeFaces DragDrop does not trigger event

I'm trying to do exactly what is in the documentation about DataGrid I drag the components and drop into p:droppable , but nothing happens, it gives a revert and does not create the table as in the documentation example. My...
asked by 21.02.2017 / 13:38