Questions tagged with ajax

1 answer

0 votes

Asked by davidcroda, on 29/11/09 in

Ajax Pagination CakePHP 1.3

I am wondering how to specify you want ajax pagination in the CakePHP 1.3 core.

this is my current $paginator array which properly performs Ajax pagination on the 1.2 core. On the 1.3 it just creates a normal link.


$paginator->options(array(
   ...

2 answers

2 votes

Asked by mmhan.blogspot.com, on 4/12/09 in

Ajax Request

How do I know if a request was made from ajax or it was a normal web request?

I just wanted to block off the view, if it wasn't an ajax request.

2 answers

0 votes

Asked by oddler, on 18/12/09 in

Ajax function only works once after 2nd try it reloads page

How do i overcome this problem??

Tried googling but no avail anyone here can help me?

1 answer

0 votes

Asked by laurentk, on 18/12/09 in

Ajax reload of an element from a call within the element itself

Hi,

I'm trying to do something that seems pretty trivial, but can't find the solution...

I have a comment element that displays comments and a form to add a new one.

How it's done right now: I pickup the form submit from jQuery, launch the function...

2 answers

-1 votes

Asked by genji, on 20/12/09 in

Getting AJAX to work with CakePHP

Hey guys i've been trying to increase the user experience of an application of mine by adding AJAX but i can't seem to find a decent tutorial?

Can anyone help me find a good working tutorial that makes use of cakephp + ajax?

Thanks in advance

1 answer

1 vote

Asked by otisjs01, on 28/12/09 in

How to auto-populate dependent habtm select boxes using ajax...

I am new to CakePHP, and I am guessing that this has been answered before, but I have a question about auto-populating dependent select boxes.

I've been googling and looking for nearly a week, and I just can't seem to figure this out! I've come...

2 answers

0 votes

Asked by pdesai, on 11/1/10 in

How can I output multiple times during an ajax request to show accurate progress on server?

I want to display accurate progress status of what is happening on the server during my ajax request in real time. How can I do that?

The view rendering happens all at once when everything done. How can I render a view multiple times during a...

1 answer

0 votes

Asked by jamesl, on 18/1/10 in

ajax drop down habtm

Hi,

Does anyone know how to dynamically populate drop downs that use a HABTM relationship?

1 answer

0 votes

Asked by http, on 26/1/10 in

Ajax observeField.

Hey folks,

I'm seriously don't know what to do anymore.. so I thought I just ask for your help.

I've got a dropdown box, and want to update a div, when the value in the dropdown changes.

So here my code:


echo $form->create('Add');
echo...

0 answers

0 votes

Asked by alscheuring, on 3/2/10 in

Ajax editor onFailure usage

Hi,

I have a system that collects information using the Ajax Editor textboxes. It works fine unless the person lets the page sit for a while and their Auth session ends. They are logged out and don't know it, then try to use the boxes which appear...

1 answer

0 votes

Asked by MetalJo, on 2/2/10 in

[Résolu] Utilisation de $ajax

Bonjour,

J'essaye d'utiliser $ajax pour l'envoie de mon formulaire (un livre d'or).


	echo $ajax->submit('Soumettre', array(
	    'url'=> array('controller'=>'messages', 'action'=>'add'), 
	    'condition' => 'valider()',
	    'update' =>...

1 answer

0 votes

Asked by kishorkundan, on 3/2/10 in

post data from Jquery to the cake's controller

I am using JQuery and Cakephp 1.2;

the problem is posting the data.

this is how m posting the data iterating over each fields in form.


$('input[type=submit]').click(function(bE) {
				bE.preventDefault();
				id = '#' +...

1 answer

0 votes

Asked by ABCoder, on 8/2/10 in

Ajax pagination using JSON data

Cake has default ajax pagination feature, but the output is in html which is not a good idea and huge amount of data transfer.

I want to use JSON to reduce data transfer. Is there any "ready-made" stuff for pagination using json (and jQuery).

1 answer

0 votes

Asked by drpark, on 1/3/10 in

Autocomplete/Ajax forms and security component

Hi,

I have some problems with AJAX and Security Component.

If I send the form completely it is OK.

If I send only one field (when the event: ObserveField is called) = blank result action not done

If I use autocomplete like this:


echo...

0 answers

-1 votes

Asked by shahid, on 2/3/10 in

Prototype.js Ajax submit is not working in Safari..

Ajax submit is not working in Safari

This is code:

$ajax->submit('Submit',array("class"=>"btnSaveForum")

);

Thanks

in advance

3 answers

0 votes

Asked by tibit, on 4/3/10 in

using ajax to update a field in a form

Hi,

How can i do this, it is possible? using cakephp + ajax

I have a price field, quantity field, and total value field.

I want to update the total field value with price*quantity after i write a quantity value.

I was going to do with the...

1 answer

0 votes

Asked by TheKog, on 6/3/10 in

How To View Multiple Tables With Pagination On A Single Page

In CakePHP 1.2 we need to have a single page with multiple tables on it each with their own pagination. For example given People and Tasks controllers, we need to put up a page (as an action from either controller or from a 3rd controller) that...

0 answers

0 votes

Asked by deckleberryfrye, on 7/3/10 in

How can I extend the onClick event with Ajax Helper?

I'm using the Ajax helper to submit a form from a popup window. The form is being submitted properly, but I would like the submit button to also close the popup window. I can close it with a call to Popup.hide(), where Popup is a Javascript...

1 answer

0 votes

Asked by Lobosque, on 8/3/10 in

Js->request wrong url formating

I'm learning how to use the new Js helper for an ajax task.

Here is my php code:


 echo $this->Js->get('#all')->event('change', $this->Js->request(array('controller' => 'keywords' , 'action' => 'ajax'),$options));

and this is the generated...

1 answer

0 votes

Asked by jole, on 9/3/10 in

dialogs

dialogs in application, actualy modal dialog

There are many Ajax dialogs solution. Mostly for a showing a pictures or video.

I’m not experienced Ajax programmer, so I need example, on wicht I can build upon.

wih Ajax helper I done a update of a div,...

<< previous 1   2   3