Questions tagged with jquery

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

2 answers

0 votes

Asked by davidwu, on 5/1/10 in

What's the best way to include Javascript into views?

I'll admit that of the M-V-C pattern's component parts, the View part is my weakest link. Even with elements, helpers and the like, my code ends up being large blobs of hard to read pieces of flotsam and jetsam. One major culprit is...

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).

2 answers

0 votes

Asked by blacksymmetry, on 6/3/10 in

Jquery in Cake, calling method

Hello, i would like to ask, what is simplest way to use JQuery in cake?

I would like use JQuery in sense, send form data to any contoller and function and put result into DIV on page without page refresh.

Something like:


<script...

2 answers

0 votes

Asked by jole, on 9/3/10 in

Standard ajax library

Well I read a lot, and now I have too much…

I need clarifying, and I hope I’m not only one.

Cake 1.2.6 standard ajax lib is prototype, and on this lib is based also ajax helper.

In some mailings/blogs I have read that this will be changed in further...

0 answers

0 votes

Asked by washington, on 26/4/10 in

Need help with jquery

Hi all,

I was testing jquery in my localhost server with the following codes that I simply copied from this web site:

http://www.nodstrum.com/2007/09/19/autocompleter/comment-page-1/#comment-48975

Here is part of the code of the...

0 answers

0 votes

Asked by cguyer, on 4/5/10 in

How can the new Js Helper be used to observe an input and update a div?

First off, real beginner when it comes to javascript and jquery but I am attempting to migrate from 1.2 to 1.3 and the ajax library is being deprecated, so I think it wise to try to move from the ajax to the Js Helper.

I have been googling,...

0 answers

0 votes

Asked by aarkerio, on 14/5/10 in

ObserveField -> Request JsHelper

I am using this code (JsHelper-jQuery) to send a select value on change event:


echo $this->Js->get('#ActivityId')->event('change',
                $this->Js->request('/ecourses/activity/',
                 array('update'         =>'#myDiv',
     ...

1 answer

0 votes

Asked by watchout, on 1/6/10 in

How to validate an Ajax-enabled form?

I've got a form that pulls info through an ajax request out of my controller. Now I'd like to validate the form fields when the ajax request is initiated. I do this by calling the validates() method in the function that executes the ajax request...

1 answer

0 votes

Asked by gong, on 2/6/10 in

Is JsHelper worth using?

Hello,

I was changing my project to use cake 1.3. I noticed the JsHelper along jquery that I use.

Before I had a variable with all my javascript code that I echoed (not inline).

Now I see we can use something...

0 answers

0 votes

Asked by gunner1095b, on 22/6/10 in

Grid control?

Does anyone have a good suggestion for a grid helper or plugin that works well with CakePHP 1.2? I'm thinking of ExtJS for example... Or, something with jQuery.

0 answers

0 votes

Asked by chriswoodley, on 6/7/10 in

How do you update a select box using the CakePHP 1.3 Js helper and Jquery?

I'm using the cakePHP 1.3.2. The scenario is I have 2 select boxes in my view. I want to dynamically update one of the select box depending on what I choose with the other select box using the new Js helper and Jquery. Can anyone help me look in...

0 answers

0 votes

Asked by baskerville, on 26/7/10 in

Jumping to top of page before/after Ajax call

In my Cakephp 1.3.2 app, I successfully use ajax pagination and ajax links, using JQuery, PaginatorHelper and JsHelper.

Currently, once a Js or Paginator link is clicked, the current content is faded out and a busy indicator faded in while the new...

0 answers

0 votes

Asked by gong, on 27/7/10 in

Thickbox like library with ajax callbacks

Hello,

what I want is a jquery library like thickbox/facebox, where I could load a custom page and perform some ajax.

For example when adding an article in articles/add I want to have a box which will show a modal window. Inside there will be a...

2 answers

0 votes

Asked by happyreadygo, 3 weeks ago in

Can Jquery append DOM by using form helper Not html?

jquery can append DOM by using html like this :



$(document).ready(function() {

	$('<p>man</p>').appendTo('div#test_insert_main');
});

and cakephp can create form by html and form helper like this :


//using html
<form>
<input type="text"...

1 answer

0 votes

Asked by Dankroad, 2 weeks, 1 day ago in

How to replace Prototype->submit with Jquery->submit?

I'm in the process of changing over my Prototype Ajax calls with Jquery ajax calls. I'm using cake v1.3.3 and I want to use the new JsHelper. I am having problems finding a suitable replacement for the prototype option "condition" on the submit...

1 answer

0 votes

Asked by tadpole, 3 days, 12 hours ago in

Passing JSON data from controller to JQuery

I have been trying to use $this-Js-set(), without success to pass a query result to JQuery in JSON. Can anyone show me how it is done, or provide a better way? So far, this is how I have been trying the following without success, though surely...

0 answers

0 votes

Asked by patelnehal4u, 5 hours, 50 minutes ago in

Problem in Observefield method.

I am using observeField method to observe one selectbox and onchange of first selectbox update the next one. I had included jQuery.js only on main page and this work correct on that page without any js error.


echo...
<< previous next >>