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
:
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
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
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
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:
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
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
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
: 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
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:
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
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 () {
('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
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
.
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
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
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
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
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
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
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
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
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:
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
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
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
)) {
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
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
., 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
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
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
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] =
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
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
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
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
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
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
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
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
40 matches
Mail list logo