Tag Archives: Ajax

Stop layout rendering for Ajax request with custom routing

How can I stop Layout rendering, when sending request through AJAX..
The problem I face is json data is echoed on the browser, not passed to tha call back function of jquery
ecco il mio script

jQuery.ajax({
    url: "/getPrivileges",
    type: "POST",
    

Continua a leggere

Tagged , , , , | Lascia un commento

Cakephp regarding Security Component and CSRF protection

There seems to be a problem with Security component when enabled, I cannot get my AJAX to work on the same controller where it is enabled!
I’m getting below error:

The Request has Been Blackholed

C'è un modo per Continua a leggere

Tagged , , | Lascia un commento

How to Pass Variables Into PHP Ajax Handler Script?

I have a small ajax php application, which outputs data from a mysql db into a table. The rows are links, which when clicked will call an ajax function, which in turn will call another php file, which displays aContinua a leggere

Tagged , | Lascia un commento

uploadprogress_get_info and large files

It seems that the PECL packageuploadprogressworks on files less then 10MB,
But Anything greater than 10MB, it fails miserably.
I’ve changed my php.ini to support larger upload, but it just doesn’t return anything!
Any Help on this?… Continua a leggere

Tagged , , , | Lascia un commento

Processing Jquery Ajax form submit with php

Recently I’ve been struggling with Jquery and Ajax while trying to submit forms with them. I have a very simple form with a username field and password field as well as a submit button. What the form is supposed toContinua a leggere

Tagged , , | Lascia un commento

JavaScript e PHP domande

I have a problem with Ajax and php. In primo luogo, I show my ajax code:

 <script type="text/javascript">
function loadXMLDoc(uri)
{
var xmlhttp;
var txt,x,xx,i;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for 

Continua a leggere

Tagged , | Lascia un commento

jQuery ajax fetch data from PHP into a jQuery variable

I need to receive the status of vote using ajax and php and jquery. Following is my code :

var VoteStatus= GetStatus() ;
var ID = $('#ID').val();

function GetStatus() {
    var res = '';

    $.ajax({
        type: "POST",
        data: {VoteID:ID} ,
        

Continua a leggere

Tagged , , | 2 Commenti

Chat Client / Posts Without Re-Loading Page

I am looking to create a site that will allow users to create groups and then chat/post within those groups. Tuttavia, when posts/chats are made within a group, I do not want users to have to reload the page toContinua a leggere

Tagged , , , | Lascia un commento

call two ajax function inside each other

i have an ajax call and it works good , when i call a new ajax call inside the old one , i got error in the first call
just one ajax call

$.getJSON("http://localhost/Mar7ba/Ontology/getRelatedConceptsAndRelations/"+conceptName+"/TRUE",function(data){
            var concepts = data[0];
            var relations 

Continua a leggere

Tagged , , | Lascia un commento

AJAX Program Not running on Webstie but working fine on Local WAMP Server

Well i am trying to Test the AJAX code and running the sample Example from this book :
AJAX and PHP By: Audra Hendrix; Bogdan Brinzarea; Cristian Darie
Now there are Three Files :
1) Index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD 

Continua a leggere

Tagged , , , , | Lascia un commento
68 pagine