Do i understand the concept of ajax correctly ?

2008-05-15 Thread salimk786
Hello, I am using jquery and cakephp. I wrote some info on this link. Can you pls tell me if this is the right way to do it ? or if there is a better way ? http://pastebin.com/m247e9d3d Thanks Salim. --~--~-~--~~~---~--~~ You received this message because you

Re: Wordpress CakePHP

2008-05-15 Thread salimk786
I believe there is already a plugin in wordpress that does this. If not, it wouldn't be too hard to do what you want. On May 15, 3:28 am, Abhimanyu Grover [EMAIL PROTECTED] wrote: Looks like I have to do the same thing in coming days for a new project. On May 12, 4:37 pm, darkblack [EMAIL

Can you paginate a hasMany ?

2008-02-02 Thread salimk786
I have two models: class Store extends AppModel { var $name = 'Store'; var $belongsTo = array('Storeregion'); } class Storeregion extends AppModel { var $name = 'Storeregion'; var $hasMany = 'Store'; } A region can have many stores. Here is an example: Array (

Paginate 2 models in 1.2 ... Is there a better way to do it than this way?

2008-01-28 Thread salimk786
I have two models: storeregions and stores. //models ?php class Store extends AppModel { var $name = 'Store'; var $belongsTo = 'Storeregion'; } ? ?php class Storeregion extends AppModel { var $name = 'Storeregion'; var $hasMany = 'Store'; } ? //controller: ?php class

Re: custom GenerateList

2007-12-03 Thread salimk786
= $row['Attribute']['id']; foreach ($fieldsIWant as $field) { $extractedData[$field][$id] = $row['Attribute'][$field]; }} // Now call $this-set('my_status_arr', $extractedData['status']), ... On Dec 3, 5:42 am, salimk786 [EMAIL PROTECTED] wrote: I have this table: CREATE TABLE

custom GenerateList

2007-12-02 Thread salimk786
I have this table: CREATE TABLE `attributes` ( `id` int(10) unsigned NOT NULL auto_increment, `controller` varchar(25) default NULL, `category` varchar(25) NOT NULL, `item` varchar(25) NOT NULL, `value` varchar(50) NOT NULL, `created` datetime default NULL, `modified` datetime

Who's Online

2007-11-19 Thread salimk786
Hello, I've seen on my sites a feature that allows you to see Who's Online. I'd like to implement this on my cake app. Does anyone know of an existing contribution that allows users to do this ? If not, does anyone have a high level - conceptual (or low level- code) undersstanding of how to do

problem with hasOne

2007-03-26 Thread salimk786
My problem is that every time i update my profile, it does an insert instead of an update sql command. Is my associations incorrect ? Thanks. class Member extends AppModel { var $name = 'Member'; var $hasOne = array('Profile' = array('className'

Re: selectTag and the empty entry

2007-03-22 Thread salimk786
This is just a thought. What if you create your own helper and extend the html helper. Then you can override the base functions of select and radio tags with your own. Then when you upgrade you really only have to copy your helper over Just a thought. Salim. On Mar 22, 7:30 am, [EMAIL

Re: Ajax to show hidden select Tag.

2007-01-25 Thread salimk786
PROTECTED] wrote: On Jan 16, 2007, at 2:17 PM, salimk786 wrote: Hello, I was hoping someone can piont me in the right direction. I want to have a select tag where they choose their country and once they choose a country, anotherselectTagappears asking them to choose their state and once

Ajax to show hidden select Tag.

2007-01-16 Thread salimk786
Hello, I was hoping someone can piont me in the right direction. I want to have a select tag where they choose their country and once they choose a country, another selectTag appears asking them to choose their state and once they choose their state, they type in a message and hit submit...how

LoadModel - updating tutorials

2006-12-22 Thread salimk786
Hello, Can someon please upadte the tutorial on the blog so that i can see how i'm supposed to used loadmodel thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: LoadModel - updating tutorials

2006-12-22 Thread salimk786
is this the right way ? If this is the right way to use LoadMoel (see below code), then won't the model be re-instantiated each time the user types in an incorrect password? //controller function login() { $this-pageTitle = Login; $this-set('pageImage',

Google Search Api.

2006-08-22 Thread salimk786
Hello, I'd like to use google api along with cakephp. I found an article online explaining how to do this. Can you tell me, if i was to download NUSoap, where would i place their lib folder so that my controller can easily call it. Thanks.

Re: Google Search Api.

2006-08-22 Thread salimk786
Hello Mikee, Here is the article that shows you how to integrate the Google Api with php. http://www.dankarran.com/googleapi-phpsitesearch/ Salim. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group.

Re: Google Search Api.

2006-08-22 Thread salimk786
Hello Mikee, Here is the article that shows you how to integrate the Google Api with php. http://www.dankarran.com/googleapi-phpsitesearch/ Salim. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group.

ajax help. RequestHandler is making me crazy

2006-08-04 Thread salimk786
//post.thtml div id=ajax_update table cellpadding='0' cellspacing='0' border='0' ?php echo $html-formTag('/blogs/viewPost/' , 'get'); ? tr height='24'tdTitle:/tdtdinput type=text name=post_title size=50 //td/tr tr height='24'tdURL:/tdtdinput type=text name=post_url size=45 maxlength = 255 //td/tr

social networking

2006-08-03 Thread salimk786
Hello, Can you guys provide some constructive criticism on this : http://salimk786.wordpress.com/ Please leave comments on that site or you can email them to me. Thank you. [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

social networking

2006-08-01 Thread salimk786
Hello, I am working (Free) on a social networking site for a community. I have decided to do this in cakephp. I was going to use Jsp or aspx but for whatever reason Im' choosing CakePHP. I am in the final stages of datbase design and i was hoping that this community would look it over for me.

using AJAX to watch CHECKBOXES?

2006-06-30 Thread salimk786
Is there a way for me to watch the checkboxes or remember which ones are being checked? I like the effect of clicking on the delete link. I would like to apply the same effect to all the checkboxes that have a check, when they cilck on the button that reads 'Delete Selected Keywords'. Thanks.

PLEASE HELP WITH ajax link

2006-06-28 Thread salimk786
//Error Missing Method in AdvertisersController You are seeing this error because the action advertisers is not defined in controller AdvertisersController Notice: this error is being rendered by the app/views/errors/missing_action.thtml view file, a user-customizable error page for handling

Re: PLEASE HELP WITH ajax link

2006-06-28 Thread salimk786
I fixed the problem. All i had to do was fix the ajax-link ?phpprint $ajax-link('Delete', 'listing_editallkeywords/' . $data[$i]['Keyword']['id'], array('update'='tasks_done', 'after' = 'new Effect.Fade(\'done_' . $data[$i]['Keyword']['id'] . '\');')); ? Thanks.