Questions tagged as 'ajax'

2
answers

How to execute a JS or jQuery function after an update, reload in JSF and PrimeFaces?

I need to execute this function after a button gives an update="@ form" on the page <script type="text/javascript"> function carregaCss(){ $(".ui-icon-calendar").addClass("glyphicon glyphicon-calendar corPadrao"); $("...
asked by 22.08.2014 / 03:27
1
answer

Algorithm takes 5sec but the page takes 1.5m to load

After calling a process via ajax if ($('#content-recommendation').length) { $.ajax({ url:'/get_content_recommendation/' + gon.item_id + '.js', type:"get" }); } I do the following in itens_controller/get_content_recommendati...
asked by 23.08.2014 / 16:36
1
answer

Sending and requesting form via Ajax - (pure JavaScript)

I'm a beginner in JavaScript and started to see Ajax. I made an example where I have a form that sends a name to a php file. This php receives via post and writes the information in a txt. Home I am using Ajax to send the data and trying to requ...
asked by 31.07.2014 / 05:04
2
answers

Enable fields from the previous field

I need to make a form that, in order to enable a field, it is mandatory to fill in an earlier field. There will be a pagination between one question and another (next or previous). Can you do this in Ajax? I'm using PHP and I think th...
asked by 21.06.2014 / 19:19
1
answer

Call in Ajax

I'm implementing a html of a system using the php and I'm also making a call on ajax to open any page, but when it returns my url , it does not read the include of the page. Example: The html page: 'test.php'...
asked by 24.04.2014 / 16:53
1
answer

MVC PHP + AJAX I can not pass return json_encode to the ajax response

Hello everyone and thank you in advance Have the form validation class where you get all form errors: // Validação final do cadastro public function validateFinalCadastro($arrVar) { if(count($this->getErro())>0){...
asked by 28.12.2018 / 15:10
3
answers

Use value returned via ajax with switch case on the current page

I'm basically trying to use value from a select returned via ajax with switch case. This switch case must be on the same send form page using the select value for a specific case. My script perfectly returns the value of select via ajax. Th...
asked by 01.01.2019 / 17:41
1
answer

How to create fade-in effect in div?

I have a div that receives data from the MySQL database and lists the images. I put a lightbox to make the visualization of the images more interesting and a fade-in effect so that whenever you change the menu category * refresh * to be...
asked by 10.02.2014 / 19:51
0
answers

modal for each action

I wanted that when the user was to register, if he informs an already existing email or enrollment it should appear the following modal down. in PHP it is already defined that it will not insert enrollment or existing email, what is happening is...
asked by 29.11.2018 / 22:56
0
answers

Insert Modal data into the table via Ajax PHP and JavaScript

I'm trying to insert data from a table of my Modal into the "parent" table of my page, basically I have a modal, where I gave a select to bring the data that is not in the parent table and the user insert that data, what happens is that the requ...
asked by 08.11.2018 / 19:44