Skip to content

Tag: jquery

Ajax and Jquery in Symfony

I’m a beginner in Symfony (version 2), I have a project achieved with plain basic PHP, and now I’m redoing my pages in dealing with Symfony framework, and arrived to my jquery ajax functions, surely, …

PHP – jQuery – Comet chat

I am looking for a solution for PHP and comet. I would like to make a chat using Ajax to send the message. I call the function using jQuery and send data, it is simple. But the problem is in retrieving new messages. How to retrieve messages using the new solution comet? I need a simple example. I am looking

jQuery .post won’t read PHP include

I built my website from bunch of php include files that work like a template. When I change something in one file whole website changes. When I click on a radio button, ajax should activate and it should try to communicate with the other php file which should connect to the database and to send information ba…

Can you call JavaScript function from PHP loop?

I am wounding if I can do this, as I am trying this from last 2 days but no success. I want to run JavaScript function from PHP PHP example JavaScript I am trying to generate a page which print loop number one by one. But I got error jfun is not defined. What I can understand my JavaScript function

jQuery Ajax post to php not catching variable

What am i doing wrong. PHP doesn’t seem to catch title and wrapper from $.ajax. Does the code look correct. The success message i get indicate an error that title is not found. jQuery main.html PHP process.php Answer Take a look: jQuery.ajax() The data parameter is better to be a Key/Value pairs object,…

AJAX + jQuery variables do not pass to PHP

I am trying to do something very simple: Pass 2 text variables to a php script and insert them into a MySQL db. For some reason however I can’t get the variables to pass (so I just get empty records in my DB). And the PHP: Anyone willing to take a quick look at it and point out my -probably