Archivo de la etiqueta: 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
aquí está mi script

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

Sigue leyendo

Etiquetado , , , , | Deja un comentario

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

¿Hay una manera de Sigue leyendo

Etiquetado , , | Deja un comentario

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 aSigue leyendo

Etiquetado , | Deja un comentario

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?… Sigue leyendo

Etiquetado , , , | Deja un comentario

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 toSigue leyendo

Etiquetado , , | Deja un comentario

JavaScript y PHP preguntas

I have a problem with Ajax and php. Primero, 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 

Sigue leyendo

Etiquetado , | Deja un comentario

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} ,
        

Sigue leyendo

Etiquetado , , | 2 comentarios

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. Sin embargo, when posts/chats are made within a group, I do not want users to have to reload the page toSigue leyendo

Etiquetado , , , | Deja un comentario

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 

Sigue leyendo

Etiquetado , , | Deja un comentario

Programa de AJAX no se ejecuta en webstie, pero trabajando muy bien en el servidor local WAMP

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 

Sigue leyendo

Etiquetado , , , , | Deja un comentario
68 páginas