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
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
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
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
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
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
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
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
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
> 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
>
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:
>
> $(&
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 () {
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
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
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
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
>
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
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
;
> 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
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
.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
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
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
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://
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
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
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
&
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
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
>&
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
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
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
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
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
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
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
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
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
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
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
40 matches
Mail list logo