Weird IE 6 problem -page jumping
I have disabled all my css and tested this, so nothing weird there! Basically I have a show ajax link and a hide link. The show link populates a div block and the hide simply hides it. when I click hide the page jumps down about 4 inches in IE 6. Here is some code echo $ajax-link('View Dogs',array ( 'controller'='dogs','action'='showlist',$clients['Client'] ['id']), array('update'='dogs',,'complete'='Element.show (dogs);'))); div style=color:#FFA64D; text-decoration:underline; onclick=Element.hide('dogs');Hide/div div id=dogs/div Works fine in Firefox, firebug enabled even. Thanks for any thoughts! Amy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
merging two data sets
I am building a calendar which will show items from multiple tables. For example i Have this event1: 2/2/09 1pm event2: 2/3/09 2pm class1: 2/4/09 3pm class2: 2/9/09 5pm I am using the find all method and it returns this type of array array(1) { [0]= array(1) { [Events]= array(4) { [id]= string(3) 967 [title]= string(17) event1 [date1]= string(10) 2009-02-15 [timestart]= string(8) 14:00:00 } } } and the second array instead of being called Events, is called Classes. what is the best way to merge these together for sorting? Should I write a union query and let mysql handle the work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
storing user_ids
I want to have the logged in user information stored with each record. Is there a way to set this on the controller or do I have to rely on hidden fields in the views? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: storing user_ids
Each record of the associated tables. So if a client is created under a logged in user, I want it to autopopulate the db with user_id which is in the session. That way each user only sees their clients..make sense? My client table would have client info, and of course a user_id field. I didn't link the models ... Would that create extra overhead on every page that needs that user_id field?? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
show / hide with ajax
I am hoping someone can give me some ideas on the best way to set this up. I have a set of data that lists out client information row by row. When a user clicks on the row, I want it to show a set of information about that client (already have this part working with ajax). I am not sure the best way to setup the div's so that 1) it shows directly below the initial row of client data and 2) it collapses when another client is clicked. I hope this makes sense! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
form-create duplicating my controller name
? echo $form-create('Client',array('action'='add')); echo $form-input('firstname'); echo $form-input('lastname'); echo $form-end('Save Client'); ? I have a simple controller / model / table for adding clients. My model is called clients.php, my controller is clients_controller.php The above code produces this form id=ClientAddForm method=post action=/app/webroot/index.php/ clients/clients/add as you can see, clients is listed twice. Any ideas why? It then looks for clients as a function inside my controller instead of the add function. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: form-create duplicating my controller name
I appreciate your reply. Unfortunately that didn't do it. It still creates form id=ClientsAddForm method=post action=/app/webroot/index.php/ Clients/clients/add from my $form-create call --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: form-create duplicating my controller name
I was using the wrong URL /index.php/Clients vs /Clients thanks for your help. On Dec 29, 2:49 pm, ymadh ad...@dogtrainersearch.com wrote: I appreciate your reply. Unfortunately that didn't do it. It still creates form id=ClientsAddForm method=post action=/app/webroot/index.php/ Clients/clients/add from my $form-create call --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---