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 in the callback? view code

Re: Jquery JSON Ajax Callback Not Working

2009-10-23 Thread hahmadi82
: This callback is executed only on success. Maybe it is not success? On Oct 24, 3:22 am, hahmadi82 hahmad...@gmail.com wrote: 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

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 alert not working in the callback

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

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:

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 hahmad...@gmail.com wrote: If anyone could help with this it would be much appreciated. I'm

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 search

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' = 'years')); I'm trying to replace all prototype-dependent code with jquery

RE: Ajax Update Help

2009-10-12 Thread hahmadi82
: afterEffects, function after sent success }); return false; }); Target is the DIV id you want to update, Hope that gets you started. Dave -Original Message- From: hahmadi82

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:

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: $('a.js-ajax').live('click', function

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
('jquery', true); ... var $j = jQuery.noConflict(); so... prototype before jquery... just reverse the order of inclusion On Oct 7, 2:11 am, hahmadi82 hahmad...@gmail.com wrote: Hi, In my layout default.ctp I'm trying to do: echo $javascript-link('jquery', true); echo $javascript-link

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

Re: Access Classes In Layout Help??

2009-10-05 Thread hahmadi82
. On Sat, Oct 3, 2009 at 3:06 PM, hahmadi82 hahmad...@gmail.com wrote: Yea, probably much easier for me to explain what I've done and what I'd like to do. So basically I implemented the ajax select box using the code below: http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box

Re: Access Classes In Layout Help??

2009-10-05 Thread hahmadi82
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 at 3:06 PM, hahmadi82 hahmad...@gmail.com wrote: Yea, probably much easier for me

Re: Access Classes In Layout Help??

2009-10-03 Thread hahmadi82
from a specific query? brian-263 wrote: On Fri, Oct 2, 2009 at 10:55 PM, hahmadi82 hahmad...@gmail.com wrote: Ok so I actually didn't create a layout for each view from my controllers. Instead, all the views use the same layout, which is the default.ctp. Is that incorrect? From my

Re: Access Classes In Layout Help??

2009-10-03 Thread hahmadi82
it in the beforeFilter() of your AppController, that will apply it to all views and layouts. On Oct 3, 1:18 am, hahmadi82 hahmad...@gmail.com wrote: Now I see! So the set variables change depending on which view is showing within the default.ctp. If I add this car action to the app_controller (instead

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 ?php echo $content_for_layout; ? in your layout file, and then Cake will render your controllers view within that variables location. On Oct 1, 3:05 pm, hahmadi82 hahmad...@gmail.com

Re: Access Classes In Layout Help??

2009-10-02 Thread hahmadi82
den Brande cyr...@gmail.com wrote: Calling $this-set('someInformation', 'someValue') in the controller will make the var $someInformation available in both the view and the layout ... I think :) On Fri, Oct 2, 2009 at 10:08 AM, hahmadi82 hahmad...@gmail.com wrote: I'm not sure I follow

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

Re: Access Classes In Layout Help??

2009-10-02 Thread hahmadi82
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 hahmad...@gmail.com wrote: I'm not talking about passing variables to  the view for that controller. All my views are set up

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:

Re: Access Classes In Layout Help??

2009-10-01 Thread hahmadi82
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 hahmad...@gmail.com wrote: Hi, I built a class with controller

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
for DIRECTORY_SEPARATOR which is / on unix and \ on windows. So, in fact, having an almighty mac does not solve the problem of DS :( Faifashttp://www.voveris.eu/ On Tue, Sep 15, 2009 at 23:17, hahmadi82 hahmad...@gmail.com wrote: Hi, I'm developing this on a mac.  I'm not sure what DS means, if you

Re: phpThumb

2009-09-15 Thread hahmadi82
)) { foreach ($PHPTHUMB_CONFIG as $key = $value) { $keyname = 'config_'.$key; $this-php_thumb-setParameter($keyname, $value); } } # addon end ... On 14 Sep., 08:25, hahmadi82 hahmad...@gmail.com

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 out. My garage page loads/displays

Re: phpThumb

2009-09-14 Thread hahmadi82
., 23:24, hahmadi82 hahmad...@gmail.com wrote: 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

Re: phpThumb

2009-09-13 Thread hahmadi82
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) dereurom...@googlemail.com wrote: On 11 Sep., 23:24, hahmadi82 hahmad...@gmail.com wrote: I'm trying to use this helper with the phpThumb

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 logged in. The user_id used to load the information

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] =

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 page

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
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 the model? hahmadi82 wrote: I had actually tried

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 management system with add, delete, index

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

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

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

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