Questions tagged as 'jquery'

1
answer

How to show a Facebook Embedded Post through Button Click?

I need to create an Embedded Post on a page through a Click event. I am using the following function: <body> <div id="fb-root"></div> <div id="myDiv"></div> <div id="myDiv2"></div> <s...
asked by 12.02.2014 / 18:25
1
answer

Search field value does not arrive in jquery

I have a form where you have an internal search and pagination in Jquery and PHP. The end result is this: Pagingisworkingcorrectly,butwhenItypetheusername,thevaluegetsnullinjquery.HowcanIgetthevaluetypedbyjqueryinthesearchfieldandimplementth...
asked by 19.12.2018 / 12:16
1
answer

Validating Javascript with jQuery Mask

I'm developing an area where the student will enroll in it, so I decided to get help from libraries like jQuery, I got a good result on this, however there are some errors in my script that I can not identify. <!Doctype html> <html>...
asked by 19.12.2018 / 14:44
1
answer

Load var into jquery with data coming from DB by Controller

The var str has script with fixed values. How do I load these values from a DB through a controller ? I already have the method that brings me this. var str = ""; var data = []; $(document).ready(function () {...
asked by 01.05.2014 / 16:22
1
answer

Copy HTML and change ng-model

I have a piece of HTML that I'm duplicating via HTML. Within scope, however, the ng-model is not working. HTML: <html ng-app="App" ng-controller="Theme" > <head> </head> <body> <div id="parte...
asked by 02.05.2014 / 03:57
1
answer

How to do authentication with Devise via AJAX?

I need to , for example, on my site's home page using GEM Devise with AJAX. Does anyone know any way?     
asked by 04.05.2014 / 02:13
1
answer

Return / Scope problems in CoffeeScript / Javascript

I have in Rails a get '/estados_por_pais/:pais_id route that returns me a JSON array with states in this country. This works perfectly. I created a CoffeeScript class with a static method that should fetch this array of states: class...
asked by 02.05.2014 / 16:30
2
answers

Function with AJAX request that returns another function for JSON object handling

I have a function that uses AJAX to return data from a database. The data is processed and returned in JSON and, from there, I make the necessary manipulations. So: function getData() { $.ajax({ url: 'script.php', type: 'po...
asked by 17.12.2018 / 22:47
1
answer

Validate fields within separate divs in a single form

Within a single form I have 3 divs , which will change as the user clicks próximo . But for the user to be able to click on próximo the required fields of div that is currently being displayed must be filled in....
asked by 03.01.2019 / 17:24
2
answers

getJSON with parsererror

I am attempting to perform the deletion and an item, so in controller I send a code to view 0 or 1 , but the JS function responsible for dealing this return is always falling in fail with the following error.    error...
asked by 13.12.2018 / 19:04