Re: Jquery JSON Ajax Callback Not Working

2009-10-23 Thread hahmadi82
This is weird... why is the JSON not working properly? Dr. Loboto wrote: > > > This callback is executed only on success. Maybe it is not success? > > On Oct 24, 3:22 am, hahmadi82 wrote: >> any help please? >> >> >> >> >> >> hahmadi82 wrote

Re: Jquery JSON Ajax Callback Not Working

2009-10-23 Thread hahmadi82
any help please? hahmadi82 wrote: > > I'm trying to write a simple JSON post and the callback alert does not > show up no matter what I do. I used firebugs to see if the post was > getting any response and "SHOE" returns. So why is the alert not working > i

Re: Jquery JSON Ajax Callback Not Working

2009-10-20 Thread hahmadi82
Can someone please help me with this? hahmadi82 wrote: > > I'm trying to write a simple JSON post and the callback alert does not > show up no matter what I do. I used firebugs to see if the post was > getting any response and "SHOE" returns. So why is the

Jquery JSON Ajax Callback Not Working

2009-10-19 Thread hahmadi82
I'm trying to write a simple JSON post and the callback alert does not show up no matter what I do. I used firebugs to see if the post was getting any response and "SHOE" returns. So why is the alert not working in the callback? view code: $('#GaragePartAddfrompartlistForm').click(func

last insert id return after ajax form submit

2009-10-19 Thread hahmadi82
Hi, I have a page that has a Formhelper form and it's submitted via ajax with the $('formid').ajaxForm() function (http://malsup.com/jquery/form/). I was wondering how I can get the controller to return the last insert id of the submitted data to the current page so I can use javascript to put t

Re: jquery substitute for ajax->observeField

2009-10-15 Thread hahmadi82
You were right. It didn't even cross my mind to look for a user written helper. Found one, and it works! Thanks! Marcelo Andrade wrote: > > > On Tue, Oct 13, 2009 at 4:28 PM, hahmadi82 wrote: >> >> If anyone could help with this it would be much appreciated. &g

Re: Ajax update div, cakephp 1.2

2009-10-14 Thread hahmadi82
I'd like to know the same thing... How do you add something or remove something from a div via ajax Laburno wrote: > > > Hi all! > Could someone explain to a total noob like me, what is the best method > to simply update a div with ajax, using cake 1.2? > I wish to have a link that call a sear

Re: jquery substitute for ajax->observeField

2009-10-13 Thread hahmadi82
If anyone could help with this it would be much appreciated. hahmadi82 wrote: > > Can someone please post the jquery equivalent of: > > echo $ajax->observeField('makes',array('url' => 'update_select', 'update' > => 'y

jquery substitute for ajax->observeField

2009-10-12 Thread hahmadi82
Can someone please post the jquery equivalent of: echo $ajax->observeField('makes',array('url' => 'update_select', 'update' => 'years')); I'm trying to replace all prototype-dependent code with jquery... -- View this message in context: http://www.nabble.com/jquery-substitute-for-ajax-%3Eobs

RE: Ajax Update Help

2009-10-12 Thread hahmadi82
> return false; > }); > > Target is the DIV id you want to update, > > Hope that gets you started. > > Dave > > -Original Message----- > From: hahmadi82 [mailto:hahmad...@gmail.com] > Sent: October-11-09 5:46 AM >

Re: Ajax Update Help

2009-10-11 Thread hahmadi82
Can anyone please help me with this? hahmadi82 wrote: > > Hi, > > I have a question about how to get a div to update after an ajax form > submission. I have a file index.ctp which displays a list of parts. When > you click on "add part", I use: > > $(&

Ajax Update Help

2009-10-08 Thread hahmadi82
Hi, I have a question about how to get a div to update after an ajax form submission. I have a file index.ctp which displays a list of parts. When you click on "add part", I use: $('a.js-ajax').live('click', function() { $('#ajax-test').load( $(this).attr('href'), function () {

Re: Jquery noConflict not working

2009-10-07 Thread hahmadi82
ype'); > echo $javascript->link('jquery', true); > ... > var $j = jQuery.noConflict(); > > so... prototype before jquery... just reverse the order of inclusion > > > On Oct 7, 2:11 am, hahmadi82 wrote: >> Hi, >> In my layout default.ctp I

Jquery noConflict not working

2009-10-06 Thread hahmadi82
Hi, In my layout default.ctp I'm trying to do: echo $javascript->link('jquery', true); echo $javascript->link('prototype'); I'm also using jquery and defined: var $j = jQuery.noConflict(); along with replacing all the $ with $j in my jquery functions. However my jquery UI still doesn't work pr

Re: Access Classes In Layout Help??

2009-10-05 Thread hahmadi82
with > requestAction(). And cache the options so you don't have to fetch them > from the DB each time. > > You don't need to change the target of the AJAX call. It doesn't > matter what view you're in. It's just like any other link. > > On Sat, Oct 3, 2009

Re: Access Classes In Layout Help??

2009-10-05 Thread hahmadi82
to change the target of the AJAX call. It doesn't > matter what view you're in. It's just like any other link. > > On Sat, Oct 3, 2009 at 3:06 PM, hahmadi82 wrote: >> >> >> Yea, probably much easier for me to explain what I've done and what I'd >

Re: Access Classes In Layout Help??

2009-10-03 Thread hahmadi82
es J wrote: > >> >> Do it in the beforeFilter() of your AppController, that will apply it >> to all views and layouts. >> >> On Oct 3, 1:18 am, hahmadi82 wrote: >> > Now I see! So the set variables change depending on which view is >> showing &g

Re: Access Classes In Layout Help??

2009-10-03 Thread hahmadi82
iable that comes from a specific query? brian-263 wrote: > > > On Fri, Oct 2, 2009 at 10:55 PM, hahmadi82 wrote: >> >> >> Ok so I actually didn't create a layout for each view from my >> controllers. >> Instead, all the views use the same layout, w

Re: Access Classes In Layout Help??

2009-10-02 Thread hahmadi82
; > No matter what is passed with set(), your layout can access it. If you > want more usage, try using $this in your layout/view. > > Do a debug($this) in your view to see what parameters you can work > with. > > On Oct 2, 3:27 pm, hahmadi82 wrote: >> I'm not tal

Re: Access Classes In Layout Help??

2009-10-02 Thread hahmadi82
I'm not talking about passing variables to the view for that controller. All my views are set up perfectly for every controller. For my cars class I have a car controller and a views/cars/index.ctp etc which utilizes all the set variables from car_controller.php actions. This is not an iss

Re: Access Classes In Layout Help??

2009-10-02 Thread hahmadi82
.org/view/57/Controller-Methods > > On Oct 2, 4:11 am, Bert Van den Brande wrote: >> Calling $this->set('someInformation', 'someValue') in the controller will >> make the var $someInformation available in both the view and the layout >> ... >> I

Re: Access Classes In Layout Help??

2009-10-02 Thread hahmadi82
I'm not sure I follow. How do I pass the information into the layout file? Miles J wrote: > > > Just put in your layout file, and > then Cake will render your controllers view within that variables > location. > > On Oct 1, 3:05 pm, hahmadi82 wrote: >> Corr

Re: Access Classes In Layout Help??

2009-10-01 Thread hahmadi82
rry but I dont understand what you are asking. > > Layout toolbar? Controller class? Do you mean component? > > Layout has no controller? Not sure what you mean there. > > Database in layout? You mean your result right? > > On Oct 1, 1:52 pm, hahmadi82 wrote: >&g

Access Classes In Layout Help??

2009-10-01 Thread hahmadi82
Hi, I built a class with controller/views that I want displayed in my layout toolbar. Is this possible? How can I use this queried data in my layout file? Since layout has no controller, I'm not sure how I can use any database stuff in the layout -- View this message in context: http://

Devmoz's Ajax Select Box

2009-09-29 Thread hahmadi82
Hi, I'm using this tutorial: http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/ and have set up everything exactly as said but the example does not work. I noticed on the comments at the bottom that a lot of people using Cakephp 1.2 were not able to get this example

Re: phpThumb

2009-09-16 Thread hahmadi82
g/thumbs', > 'error_image_path' => '/img/blankuser.jpg', > > etc > > On 15 Sep., 23:33, Aivaras wrote: >> DS stands for DIRECTORY_SEPARATOR which is / on unix and \ on windows. >> So, >> in fact, having an almighty mac does not solve the pr

Re: Possible ACL or Cookie Issue When I Reload Page

2009-09-15 Thread hahmadi82
I've tested further and found that after reloading the page a few times, it's the entire Auth->user that does not exist until I load a different page. Please help. hahmadi82 wrote: > > There's a very peculiar problem with my site that I can't quite figure &

Re: phpThumb

2009-09-15 Thread hahmadi82
g_'.$key; > $this->php_thumb->setParameter($keyname, > $value); > } > } > # addon end > ... > > > On 14 Sep., 08:25, hahmadi82 wrote: >> I changed the flag you mentioned to true in ph

Re: phpThumb

2009-09-13 Thread hahmadi82
server (linux), it broke (same error as >> yours) >> >> so my guess is something with the paths? >> i carefully set them up with DS - and they look all right.. >> >> i made sure the cache folder is set to 777 etc >> so missing rights can be ruled out, too >&

Re: phpThumb

2009-09-13 Thread hahmadi82
them up with DS - and they look all right.. > > i made sure the cache folder is set to 777 etc > so missing rights can be ruled out, too > > did you figure it out, yet? > > > On 13 Sep., 22:51, "euromark (munich)" > wrote: >> On 11 Sep., 23:24, hahmadi82 wrot

phpThumb

2009-09-11 Thread hahmadi82
I'm trying to use this helper with the phpThumb library: http://code621.com/content/1/phpthumb-helper-for-cakephp When I run the code to give me a thumbnail I get: Array ( [error] => 1 [error_detail] => phpThumb v1.7.9200805132119thissourceFilename and thissrc are both empty [src] => user/blan

Re: Possible ACL or Cookie Issue When I Reload Page

2009-09-11 Thread hahmadi82
Does any one know how to fix this? hahmadi82 wrote: > > There's a very peculiar problem with my site that I can't quite figure > out. My "garage" page loads/displays information from the database based > on the users current session that's logge

Possible ACL or Cookie Issue When I Reload Page

2009-09-09 Thread hahmadi82
There's a very peculiar problem with my site that I can't quite figure out. My "garage" page loads/displays information from the database based on the users current session that's logged in. The user_id used to load the information is set to $this->Auth->user('id'). However, if you reload the p

How to hide id with router::connect

2009-09-03 Thread hahmadi82
I have a hyperlink defined as: echo $html->link(__('Discuss', true), array('controller' => 'cars', 'action'=>'view', $car['Car']['id'], $car['Car']['make'], $car['Car']['model'])); How can I define a route that changes the url from '/cars/view/14/nissan/maxima' to '/cars/nissan/maxima'?? I did

Re: ACL denying access issues

2009-05-25 Thread hahmadi82
n... even though they are not in the beforeFilter. The odd thing is, in all my other classes (not User) I can deny ACL priveledges and the users can't access those views. It just doesn't work for add, edit, and index in the user. perhaps it's because the user class actsAs ACL in t

Re: ACL denying access issues

2009-05-21 Thread hahmadi82
I had actually tried this exact example for the permissions and it didn't work... hahmadi82 wrote: > > Hi, > > I have set up my ACL based on this tutorial: > > http://komunitasweb.com/2009/03/cakephp-acl-tutorial-what-and-how/ > > This tutorial has a user manag

ACL denying access issues

2009-05-20 Thread hahmadi82
Hi, I have set up my ACL based on this tutorial: http://komunitasweb.com/2009/03/cakephp-acl-tutorial-what-and-how/ This tutorial has a user management system with add, delete, index, and edit functionality. The problem I'm having is that no matter how I set up my aros_acos permissions, the Us

Creating pages without models/controllers

2009-05-16 Thread hahmadi82
How do I create a page in cakephp that can get data from various classes/models/controllers without having to create a set of models and controllers for the page itself? I have set up all my models/controllers/views/indexes for everything in my database and now I want to start pulling that da

Re: Problems with belongTo and hasMany

2009-05-15 Thread hahmadi82
bump -- View this message in context: http://www.nabble.com/Problems-with-belongTo-and-hasMany-tp23567941p23568933.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Problems with belongTo and hasMany

2009-05-15 Thread hahmadi82
Hi, I'm new to cakephp and I'm confused about the model setup... I have class kids "belongsTo" parents and class school "hasMany" kids. Now in my index for kids I can retrieve all parent information based on the foreign key. However in school, i have access to the kid information but not the pa