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
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"
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
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
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
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
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
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
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',
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
> 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
> > > 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
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
&
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
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
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
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
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
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
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.
--~--~-~--~~---
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,
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.
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
--~--~-~--~~-
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
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,
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
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
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:
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
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
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()
{
.
.
.
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
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
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
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
--~--~-~--~~~--
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
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
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,
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
> 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
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,
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
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
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
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
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
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
47 matches
Mail list logo