Questions tagged as 'jquery'

1
answer

Execute javascript function in php

I'm building a chat system in php, and in the onlines client checking function it's going to be an ajax calling a php file every 30s, and in this file there will be a foreach that will bring in each user and do the verification , and I need to m...
asked by 29.10.2017 / 22:28
0
answers

Keep selected multiselect values refreshing the page?

Hello, I have the code below that is a multiselect by category. What happens is the following, when the user fails to fill out a mandatory data, the page is reloaded and the message appears saying what data he forgot, but all the data already en...
asked by 13.01.2018 / 02:13
1
answer

Graphics with PHP Chart.js

I am implementing graphics in my application made in PHP, using Framework Chart.js, passing the query data via JSON, to mount the chart, but when I render it it presents the following error: Followingcode:$(document).ready(function(){$.ajax(...
asked by 26.10.2017 / 14:49
0
answers

Selection area with the mouse?

I'm developing the following code to create an element selection area using the mouse. var draggingMouse = false; var leftMouseDrag, topMouseDrag; $(document).on("mousedown mouseup", "#cloud_main_page", function(e){ if (e.type == "mou...
asked by 26.05.2018 / 19:38
1
answer

Body selector does not work in wordpress jquery, only the '*'

I'm making a website using wordpress and bootstrap. I initially made the site in php and converted to a wordpress theme. I do not know what happens to the jquery selectors, they work in pure php, but not in wordpress. I used a function...
asked by 24.05.2018 / 03:09
0
answers

Jquery - Trying to clear a select

I have two dropdowns (select in html) one from UF and one from cities, when I select a state I want to trigger a function to populate the dropdown of cities, getting the state id as parameter. It is bringing all cities from the selected state an...
asked by 25.05.2018 / 16:02
1
answer

Working with the result of the return of an ajax request with jquery

I would like to know if it is possible to compare a returned value of an Ajax function with an external variable using jquery. When I try to make the comparison I realize that the external variable is not recognized inside the Ajax function....
asked by 14.11.2017 / 09:24
1
answer

Sweeping String in Search of Substrings Ignoring Accentuation and Case and For Each Match Performing an Action

I need to search a string for a specific substring and for each occurrence found, I should perform a substitute action that was written in the bold version as listed, ignoring accent and case. Example: I have the list with the items:...
asked by 14.11.2017 / 18:08
1
answer

Paging without php and mysql

I'm trying to make a simple paging, just click the "2" button for example and it happens. I tried to use this, but I could not: link Could anyone help me with this? From indicating a tutorial on Youtube, article, book, personal help, any...
asked by 12.11.2017 / 23:51
3
answers

Refresh button using jQuery

I want to update two fields in the database but without needing to refresh the page but I'm having trouble implementing something like this. That when I click on the UPDATE button the Phone and Mobile fields will be updated in the bank. Follow t...
asked by 14.11.2017 / 12:58