Re: weirdness / jquery / ajax

2011-09-03 Thread erikober
Working now. Thanks very much, Teddy! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-p

Re: weirdness / jquery / ajax

2011-09-03 Thread Teddy Zeenny
And use Configure::write('debug', 2); when you are looking for bugs. On Sat, Sep 3, 2011 at 8:45 PM, Teddy Zeenny wrote: > Because you set autoRender=false; > > This means you should call $this->render("ViewName"); after the > $this->set('results',$result) or remove the "this->autoRender=false"

Re: weirdness / jquery / ajax

2011-09-03 Thread Teddy Zeenny
Because you set autoRender=false; This means you should call $this->render("ViewName"); after the $this->set('results',$result) or remove the "this->autoRender=false" On Sat, Sep 3, 2011 at 8:29 PM, erikober wrote: > Thanks for the reply. > If I pull the echo $result out of the controller and i

Re: weirdness / jquery / ajax

2011-09-03 Thread erikober
Thanks for the reply. If I pull the echo $result out of the controller and insert it into the view, I'm back to an empty string. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others w

Re: weirdness / jquery / ajax

2011-09-03 Thread Teddy Zeenny
Check that the view 'new_list.ctp' contains: On Sat, Sep 3, 2011 at 8:18 PM, erikober wrote: > In controller: > > function new_list() { > >Configure::write('debug', 0); >$this->autoRender = false; > >$this->loadModel('Menugroup'); >$this->Menugroup->recursive = 1

weirdness / jquery / ajax

2011-09-03 Thread erikober
In controller: function new_list() { Configure::write('debug', 0); $this->autoRender = false; $this->loadModel('Menugroup'); $this->Menugroup->recursive = 1; if($this->RequestHandler->isAjax()) { $menugroups = $this->Menugroup

Re: Select box and jQuery ajax calls

2010-12-22 Thread senser
I found a guy with a same problem: http://ask.cakephp.org/questions/view/how_can_the_new_js_helper_be_used_to_observe_an_input_and_update_a_div I don't think that his solution is good - why to send all form data, as I need the data only form select list Check out the new CakePHP Questio

Re: Select box and jQuery ajax calls

2010-12-22 Thread senser
The problem was with the apache web server - post-ing data to it causes segmentation faults. Recompiling apache solved the issue and now things are almost fine. Why "almost" - I can't find a way to pass the value of selected element in my select list. Here is the complete code that makes ajax wi

Select box and jQuery ajax calls

2010-12-21 Thread senser
Hello, I'm trying to make ajax calls and requests with new CakePHP 1.3 helpers (especially JsHelper) and Jquery. Here is what I do: a simple select box: echo $this->Form->input('Sync.selection', array('type'=>'select', 'options'=>$sync_elements, 'id'=>'selection',

Re: jQuery & ajax pagination in 1.3

2010-08-17 Thread philthathril
I was having the same issue about the ajax pagination occurring every other page (and I'm using MooTools). The key was that I *was* putting the call to $js->writeBuffer() in my default.ctp view file in the 'content' div that got updated. However, this file was not seeing the new content. So, I move

Re: jQuery & ajax pagination in 1.3

2010-01-03 Thread Aris
> works just fine. > > > > > On Dec 14, 3:44 am, Scronkey wrote: > > > > > I believe I know what's going on now but I'm not sure how to fix it. > > > > > > On the first (successful) ajax call the next set of content is loaded, > > &g

Re: jQuery & ajax pagination in 1.3

2009-12-17 Thread Joe Theory
> > > I believe I know what's going on now but I'm not sure how to fix it. > > > > > On the first (successful) ajax call the next set of content is loaded, > > > > including the paginator links, however the paginator links are not > > > > su

Re: jQuery & ajax pagination in 1.3

2009-12-16 Thread mark_story
4 am, Scronkey wrote: > > > I believe I know what's going on now but I'm not sure how to fix it. > > > > On the first (successful) ajax call the next set of content is loaded, > > > including the paginator links, however the paginator links are not &

Re: jQuery & ajax pagination in 1.3

2009-12-16 Thread Dave
On the first (successful) ajax call the next set of content is loaded, > > including the paginator links, however the paginator links are not > > successfully bound to a jQuery ajax call, therefore the next click > > results in a normal page request which then results in correctly boun

Re: jQuery & ajax pagination in 1.3

2009-12-15 Thread Joe Theory
sful) ajax call the next set of content is loaded, > including the paginator links, however the paginator links are not > successfully bound to a jQuery ajax call, therefore the next click > results in a normal page request which then results in correctly bound > events. > > Marks

Re: jQuery & ajax pagination in 1.3

2009-12-14 Thread Scronkey
I believe I know what's going on now but I'm not sure how to fix it. On the first (successful) ajax call the next set of content is loaded, including the paginator links, however the paginator links are not successfully bound to a jQuery ajax call, therefore the next click results i

jQuery & ajax pagination in 1.3

2009-12-11 Thread Scronkey
Using Mark Story's guide for mootools, pagination and the new JS helper (http://mark-story.com/posts/view/creating-simple-ajax- pagination-with-cakephp-1-3-and-mootools) I have managed to get pagination somewhat working using jQuery. I say somewhat because only every second request uses ajax (clic

jquery / Ajax help

2009-08-11 Thread Dave Maharaj :: WidePixels.com
I have integrated jquery with my pagination but having trouble adding a history plugin . So if a user leaves the pagination page then clicks back in the browser it will load up where they left off. Has anyone added a feature like this to pagination and managed to get it working? Any help or nam

Re: Who uses Cake + jQuery ajax

2009-02-25 Thread horatio
he ajax controller side, does the post show up in $this- >>> >>> >data? Im assuming yes. >> >> >> >> > > -- View this message in context: http://n2.nabble.com/Who-uses-Cake-%2B-jQuery-ajax-tp2155185p2384927.html Sent from the CakePHP mailing lis

Re: Who uses Cake + jQuery ajax

2009-02-25 Thread horatio
oes the post show up in $this- >> >> >data? Im assuming yes. > > > > -- View this message in context: http://n2.nabble.com/Who-uses-Cake-%2B-jQuery-ajax-tp2155185p2384906.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~---

Re: Jquery Ajax Form with Model Validations, Nobody knows?

2009-02-15 Thread 浪漫様
Hey! looks promising! thanks for the links! i was making me crazy (><) hope it can help me do what i wanted. thank again Rohman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group,

Re: Jquery Ajax Form with Model Validations, Nobody knows?

2009-02-15 Thread mscdex
On Feb 15, 2:35 am, 浪漫様 wrote: > Nobody knows how to send a form's data using Jquery and updating a DIV > with a success message or the validation error messages? it was pretty > easy to do with Prototype and cake's Ajax Helper... but I can't manage > to do it with JQuery. I'm using CakePHP 2.2.

Jquery Ajax Form with Model Validations, Nobody knows?

2009-02-14 Thread 浪漫様
Nobody knows how to send a form's data using Jquery and updating a DIV with a success message or the validation error messages? it was pretty easy to do with Prototype and cake's Ajax Helper... but I can't manage to do it with JQuery. I'm using CakePHP 2.2. Thanks Rohman --~--~-~--~~-

Re: Who uses Cake + jQuery ajax

2009-01-14 Thread Martin Westin
Yes As far I remember the controller sees nothing different from a normal POST. Just do this and you will be golden: if ( $this->RequestHandler->isAjax() ) { // don't render the full layout } On Jan 14, 11:05 am, Miles J wrote: > Thank you, was the perfect answer. > > Also now on the aja

Re: Who uses Cake + jQuery ajax

2009-01-14 Thread Miles J
Thank you, was the perfect answer. Also now on the ajax controller side, does the post show up in $this- >data? Im assuming yes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group,

Re: Who uses Cake + jQuery ajax

2009-01-14 Thread Martin Westin
Hi Miles, I like to use "REST light" :) That is: I make sure any data push, modification and similar actions are POST and any data retrieval is GET. create, update, delete = POST find, list, get, show... = GET It makes is a bit cleaner in my head. I do this for non-ajax calls and ajax calls al

Who uses Cake + jQuery ajax

2009-01-13 Thread Miles J
Simple question to anyone who uses CakePHP and jQuery. Do you pass your post variables as post, or as the arguments of the action? When you make ajax calls, do you call it like this: /ajax/delete/123/ Or: /ajax/delete/ POST: id=123 --~--~-~--~~~---~--~~ You re

Re: Populating a selectTag using jQuery AJAX

2008-09-18 Thread peterhf
First, thank you both, teknoid and hydra12, for your contributions. They got me headed in the right direction. BTW, this version of the JavaScript only displays the xml text in an alert for testing purposes. Second, this is working for me:

Re: Populating a selectTag using jQuery AJAX

2008-09-17 Thread hydra12
In your controller, you need to $this->set('xml',$xml); Set the layout to be blank (1.2 has an ajax layout that would work for this, but I don't know if 1.1 does or not). You need a view called get_events that does this: Your jquery is calling Attendance/get_events, so there has to be a view ca

Re: Populating a selectTag using jQuery AJAX

2008-09-17 Thread teknoid
Perhaps I didn't look at your code very closely, but after you've made the xml string ($xml) what happens? Shouldn't your action output (return) that xml? I'm not sure if 1.1 has the ability to use RequestHandler to respond as xml, otherwise you could just make an empty layout, which would only d

Populating a selectTag using jQuery AJAX

2008-09-17 Thread peterhf
Using: CakePHP 1.1.19.6305 jquery-1.2.6.min.js In the view: select a campaign: selectTag( 'Campaign/CampaignID', $options_C, null, array( 'onchange' => 'display_select_event()','id' => 'select_campaign' ), null, true, false ); ?> In the JavaScript: function display_select_event() { . . .

Re: jQuery $.ajax() and on success result processing?

2007-11-15 Thread bunyan
If you want just to get the rendered view and put its contents into an element on a page, use $this->layout = 'ajax'; in action, and then assign the rendered view to whatever you need with jQuery. If you don't need to render a view, you can return action results in xml, json or etc. Fanck wrot

Re: jQuery $.ajax() and on success result processing?

2007-11-15 Thread Marcin Domanski aka kabturek
Hi > I'm new to jQuery, but I wonder if it is possible to return a result > via controller that jQuery can handle on success? Maybe send the data in JSON ? (see the javascript helper) or PHP built- in json extension... > I'm trying to POST data to an "add" method, and on success loading the > vie

Re: jQuery $.ajax() and on success result processing?

2007-11-14 Thread Action
I would also like to know. On Oct 9, 6:14 am, Fanck <[EMAIL PROTECTED]> wrote: > Hi, > > I'm new tojQuery, but I wonder if it is possible to return a result > via controller thatjQuerycan handle on success? > > I'm trying to POST data to an "add" method, and on success loading the > view with the

jQuery $.ajax() and on success result processing?

2007-10-09 Thread Fanck
Hi, I'm new to jQuery, but I wonder if it is possible to return a result via controller that jQuery can handle on success? I'm trying to POST data to an "add" method, and on success loading the view with the right $id. Anyone know how to do that? thanks --~--~-~--~~~--

Re: Jquery ,Ajax

2007-04-16 Thread digital spaghetti
questHandler component loaded, otherwise when you update your div, it will load the whole site with view, not just the view. Tane On 4/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi > I'm using Cakephp with jquery. > > I would use the Jquery Ajax function insi

Jquery ,Ajax

2007-04-16 Thread [EMAIL PROTECTED]
Hi I'm using Cakephp with jquery. I would use the Jquery Ajax function inside my general view named "index.thtml". I would use the load function exactly for change the content of a div when I click on a image .In this div I would load a particular view named "view_part.t

Re: jquery, ajax and cakephp

2007-01-22 Thread bbuchs
100% sure that jQuery does not use Prototype. jQuery is a Prototype alternative. http://jquery.com/ On Jan 22, 12:55 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > I can't comment on the YUI framework, it was a bit too complicated for my > brain to wrap around in a short period of time,

Re: jquery, ajax and cakephp

2007-01-22 Thread the_woodsman
Me: "I think it's time to abandon the prototype libraries, and use YUI" Chris H: "How about some benchmarks to back that up?" You're right, I should have provided references, I just didn't want to divert the thread too much! Jack Slocum has done some great stuff with YUI, including basically all

Re: jquery, ajax and cakephp

2007-01-22 Thread hydra12
> well, back on topic, hydra12, can you give me some examples on how you set > up your pages as far as the ajax page, did you create a view for each one of > your functions. I think that is what is giving me a hard time to grasp. I did create a view for each function. In fact, right now I'm usi

Re: jquery, ajax and cakephp

2007-01-22 Thread Benjamin Sterling
I can't comment on the YUI framework, it was a bit too complicated for my brain to wrap around in a short period of time, that is why I started learn the jquery framework, and I must say, aside from not enough examples and documentation on the full scope and abilities of the ajax functions ($.ajax,

Re: jquery, ajax and cakephp

2007-01-22 Thread Chris Hartjes
On 1/22/07, the_woodsman <[EMAIL PROTECTED]> wrote: > > > On a side note, when it comes to javascript libs, I think it's time to > abandon the prototype libraries, and use YUI - Jack Slocum's extensions > provide all the jQuery power, a million times faster... > > How about some benchmarks to b

Re: jquery, ajax and cakephp

2007-01-22 Thread hydra12
I'd guess it's a problem with the controller name. Controller names have to be plural. How do you make ajax plural? I'd choose another name for my controller, make it a plural name, then give my model name the singular equivalent. BTW, I'm developing a project right now using jquery for my aja

Re: jquery, ajax and cakephp

2007-01-22 Thread the_woodsman
I'm no expert on Cake/Ajax integration, or the prototype libraries & extensions, but here's a few ideas for how to do this without a specialist controller just for Ajax. The Prototype/Scriptaculous helpers make use of the fact that prototype/scriptac indentify their HTTP requests by setting somet

Re: jquery, ajax and cakephp

2007-01-22 Thread Benjamin Sterling
Yeah, that is partially my confusion also. I have a controller there the file is called ajax_controller.php with: "mine", "bike" => "yours" ); $this->set('json_array',$json); } } ?> This site is my first attempt at cakePhp so not sure

Re: jquery, ajax and cakephp

2007-01-22 Thread Dr. Tarique Sani
On 1/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > As it stands now, i go to > http://www.kenzohosting.com/wesco/www/ajax/toggleactive and I get the > layout for the homepage and not what I would expect. I am getting a missing controller error and errors are rendered with default layo

jquery, ajax and cakephp

2007-01-22 Thread [EMAIL PROTECTED]
Hey guys and gals, Wondering if someone can point me in the right direction here. I need to do some ajax calls and I was going to jquery for those. I know how to code straight php and ajax, but I am having a hard time wrapping my head around how I would do it with cakePhp. what i have so far (a