Re: RequestHandler->isAjax not returning expected data

2007-08-07 Thread Jim Newfer
doublesswizz, Hm that is a strange problem. Although I can't really tell you what is going wrong, I would caution you about using the "fix" you have in place. All it would take for a user to fake an ajax request would to get a simple tool like firebug and set what url the ajax post or get request

Re: Linking a HABTM Association to extra data beside the tag?

2007-08-05 Thread Jim Newfer
ogle.com/group/cake-php/browse_frm/thread/f23b1825050...http://groups.google.com/group/cake-php/browse_frm/thread/8cbf01f7a9a... > > I think.. this is what you want. I could be wrong though. > > On Aug 1, 9:47 am, Jim Newfer <[EMAIL PROTECTED]> wrote: > > > Anyone? Sorry, I a

Re: Linking a HABTM Association to extra data beside the tag?

2007-08-01 Thread Jim Newfer
Anyone? Sorry, I am just stuck. If there was some way in cake to specify an alternative key it is searching for in the foreign table, I think that may solve my problem. Thanks. Jim. On Jul 31, 1:55 pm, Jim Newfer <[EMAIL PROTECTED]> wrote: > Hello everyone, > > Last resort p

Linking a HABTM Association to extra data beside the tag?

2007-07-31 Thread Jim Newfer
Hello everyone, Last resort post, I am stuck. What I have done is create a "friends" system in my app. Although it is mildly tricky because the friends are the same thing as users, just using an alias. My tables look like this right now (only relevant information shown): Users: Id Fans_Users:

Updating a via ajax, although getLastInsertId() or $this->Comment->id does not retrieve the last inserted record.. why?

2007-07-12 Thread Jim Newfer
Sorry guys I just cannot figure this one out. I creating an ajax comment system that does not have to reload all of the comments (i.e. foreach loop getting all of the comments) So what I have done is create a dummy that the comment will be loaded into, and when the page is reloaded, it will autom

Autocomplete options in 1.2 messes up my field.

2007-07-08 Thread Jim Newfer
Hey, Well I have been using an autocomplete field for quite some time and everything has worked fine. Although I just tried to add this onto the end 'afterUpdateElement' => 'getSelectionId') autocomplete('User.school_id', '/users/ autocomplete', array('afterUpdateElement' => 'getSelectionId'));

Struggling with creating a function and search an array then outputting data based upon results...

2007-07-07 Thread Jim Newfer
I have been trying to figure this out for the past 2 hours and to no avail. :/ So any advice is GREATLY appreciated. Ok, I have an array that returns data like this (see array below) The array[0] contains all the votes for one story as well as information that pertains to that vote, and the array

Re: Passing data back from jquery to a controller?

2007-07-06 Thread Jim Newfer
On Jul 6, 9:01 am, Jim Newfer <[EMAIL PROTECTED]> wrote: > hey guys, > > Sorry but I just cannot get my head around this one. I am trying to > pass back a value from jquery to my controller. Everything runs ok, > except my controller does not get or doesn't recognize t

Passing data back from jquery to a controller?

2007-07-06 Thread Jim Newfer
hey guys, Sorry but I just cannot get my head around this one. I am trying to pass back a value from jquery to my controller. Everything runs ok, except my controller does not get or doesn't recognize the value I am passing it via jquery. //here is my javascript $(document).ready(function(){

Re: Using jquery's Ajax functions in tandem with CakePHP...

2007-07-03 Thread Jim Newfer
te p" ).load( "/ > contoller/action" ); > > Make sure your controller handlesajaxrequests. If you don't know > what that means look up requestAction or parseExtensions in the > groups. > > On Jul 2, 10:12 pm, Jim Newfer <[EMAIL PROTECTED]> wrote: > >

Using jquery's Ajax functions in tandem with CakePHP...

2007-07-02 Thread Jim Newfer
I have been using jquery, which is great btw, with cakephp for a couple of weeks now. I love it to say the least. I haven't really dealt with ajax very much, but I have done some basic things with it, and PHP outside of cake. Needless to say, when it comes time to use jquery's ajax functionality w

Re: A question about integrating jquery in cakephp?

2007-07-01 Thread Jim Newfer
ebroot/js and you need > to include the javascript helper. > > http://manual.cakephp.org/chapter/helpersabout 3/4 down is the > javascript helper documentation > > Geoff > --http://lemoncake.wordpress.com > > On Jul 2, 10:28 am, Jim Newfer <[EMAIL PROTECTED]> wrote:

Re: A question about integrating jquery in cakephp?

2007-07-01 Thread Jim Newfer
ipt helper documentation > > Geoff > --http://lemoncake.wordpress.com > > On Jul 2, 10:28 am, Jim Newfer <[EMAIL PROTECTED]> wrote: > > > I have been using jquery for about a month now, and I love it to say > > that least. Although, I cannot seem to figure out

A question about integrating jquery in cakephp?

2007-07-01 Thread Jim Newfer
I have been using jquery for about a month now, and I love it to say that least. Although, I cannot seem to figure out the best way to incorporate it into my cakephp project, or even to incorporate it at all! When I used jquery before, I just loaded the jquery.js library in the header, and then w