Passing Variable from View to js

2011-04-12 Thread Shashank
Hey Guys, I wanted to know that how can i pass or set a varibale in a view file to be used in some js file. Thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their Ca

Problem with importing a controller

2011-04-07 Thread Shashank
Hey Guys, I am trying to import a controller into my another controller. Say i am importing controller1 into my controller2 like ds: App::import('Controller', 'Users'); after that when i am trying to instantiate it i am getting an error: Parse error: syntax error, unexpected T_VARIABLE, expecti

Group Chat in cake

2011-04-06 Thread Shashank
Hi i want to implement a Group chat feature in my cake php. What i want is: 1. A user can initiate a chat and invite some of his friends. 2. The invited friends accept the chat request and join the chat. -- Shashank Singh B.E.(Computer Science) Software Developer +91-9711882054 +91-9560545085

Re: Contact us form

2011-04-06 Thread Shashank
gt; Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google

Re: Contact us form

2011-04-06 Thread Shashank
gt; Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google

Re: Auto complete in Cakephp

2011-04-04 Thread Shashank
helper in my controller. I am really not getting what i am doing wrong in here. On Tue, Apr 5, 2011 at 10:40 AM, Shashank wrote: > Hey guys, i want to know one more thing in autocomplete. I managed to get > it working. Now wat i was thnkng is, how can i get multiple autocomplete in > a sin

Re: Auto complete in Cakephp

2011-04-04 Thread Shashank
7;defaultText').val(value); } }); return element.blur(); } On Tue, Apr 5, 2011 at 4:36 AM, BenJsno wrote: > hi, > You have to import jQuery and jQuery UI > I use autocomplete too and it works fine. > check this tutorial : > http://blogfreakz.com/cakephp/cakephp-jquery-autocomplet

Re: Auto complete in Cakephp

2011-04-04 Thread Shashank
Hey guys, can anyone plz suggest me what can be done for this?? On Mon, Apr 4, 2011 at 8:31 PM, Shashank wrote: > Hi Guys, > I am trying to use autocomplete in my cakephp, but getting an error > like ds: > > $("#UserUsername").autocomplete is not a functi

Auto complete in Cakephp

2011-04-04 Thread Shashank
Hi Guys, I am trying to use autocomplete in my cakephp, but getting an error like ds: $("#UserUsername").autocomplete is not a function [Break on this error] $('#UserUsername').autocomplete('/events/ addevent', {}); i have no idea why i am getting this error??. Can anyone suggest me anything??

How to know if a user has left a particular page

2011-03-31 Thread Shashank
Hi Guys, I want to know is there any way of knowing if a user has left a particular page. What i mean is, suppose a user is on a page game/start, and he just closes his browser without logging out of the game than how do i get to know if he left the game or not?? Thanks in advance!!! -- Our new

Re: Chat in Cakephp

2011-03-29 Thread Shashank
I tried to put all the files like controller, model, js,css into the plugin folder. But now when i click on "send" i get this error *The requested address '/chat/post' was not found on this server.* On Tue, Mar 29, 2011 at 2:59 PM, Shashank wrote: > I tried implementing th

Re: Chat in Cakephp

2011-03-29 Thread Shashank
ode of the page i can see the jquery and chat.js and chat.css loading. But i am not getting it to work. I want to know where i am wrong. On Tue, Mar 29, 2011 at 1:37 PM, Shashank wrote: > Ya i think you are right. Building it from zero will be a gud idea. > > > On Tue, Mar 29, 2011 at 1

Re: Chat in Cakephp

2011-03-29 Thread Shashank
t from zero myself, so i can also practice my coding > experience. > > tq > > > On Tue, Mar 29, 2011 at 2:12 PM, Shashank wrote: > >> Hi, >> I want to implement chat in my cakephp. I did a search over the net >> and found only one "Ajax Chat Plugin", b

Chat in Cakephp

2011-03-29 Thread Shashank
Hi, I want to implement chat in my cakephp. I did a search over the net and found only one "Ajax Chat Plugin", but i have two issues in it: 1. How to implement it. I am getting problems in that. 2. Is this is the only plugin available for chat in cakephp?? Thanks -- Our newest site for the commu

Re: Upload Multiple images in Cakephp

2011-03-28 Thread Shashank
, Mar 28, 2011 at 9:41 PM, Shashank wrote: > Even if i just download the source code, and run the example index.html > file, i am getting an error like ds in my firebug " > *uncaught exception: Invalid JSON: {"name":"'.$file['name'].'&

Re: Upload Multiple images in Cakephp

2011-03-28 Thread Shashank
Even if i just download the source code, and run the example index.html file, i am getting an error like ds in my firebug " *uncaught exception: Invalid JSON: * **" I am not getting what to do now??? On Mon, Mar 28, 2011 at 9:36 PM, Shashank wrote: > My mistake. I tried the Jque

Re: Upload Multiple images in Cakephp

2011-03-28 Thread Shashank
+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- Shashank Singh B.E.(Computer Science) Software Developer +91-9711882054 +91-9560545085 Skype id: shashank.singh87 Email: shashank.si...@sourcefuse.com -- Our newest site for th

Re: Upload Multiple images in Cakephp

2011-03-28 Thread Shashank
Its not working!!! On Mon, Mar 28, 2011 at 2:52 PM, Ryan Snowden wrote: > Try Jquery FileUpload - http://aquantum-demo.appspot.com/file-upload > > I went through a lot... and it did the trick without all the fuss. > > On 28 March 2011 16:43, Shashank wrote: > >> Hi Gu

Upload Multiple images in Cakephp

2011-03-28 Thread Shashank
Hi Guys, I want to know is there any way so that i can select multiple images and upload them on a single click. I searched for it over internet and i found that "Multiple Image Upload by Koa", but that doesnt seem to be good enough for me because it stores all the three names of the uploaded image

Re: Getting Error ("Call to undefined method UsersController::element()")

2011-03-23 Thread Shashank
o $this-element('left', array('abc' => $abc)); > > In your element: > - echo $abc; > > > Jeremy Burns > *Class Outfit* > * > * > jeremybu...@classoutfit.com > http://www.classoutfit.com > > On 24 Mar 2011, at 05:43, Shashank wrote: > &

Re: Getting Error ("Call to undefined method UsersController::element()")

2011-03-23 Thread Shashank
rs are blocks of code that can be > referenced from anywhere with the following limitations: > - Elements => views > - Components => controllers > - Behaviours => models > > > Jeremy Burns > *Class Outfit* > * > * > jeremybu...@classoutfit.com > http:/

Re: Getting Error ("Call to undefined method UsersController::element()")

2011-03-23 Thread Shashank
y Burns > Class Outfit > > jeremybu...@classoutfit.com > http://www.classoutfit.com > > On 24 Mar 2011, at 05:31, Shashank wrote: > > > I am getting this error while using echo $this->element('left', > > array("b" => "current"));

Getting Error ("Call to undefined method UsersController::element()")

2011-03-23 Thread Shashank
I am getting this error while using echo $this->element('left', array("b" => "current")); Error i am getting is: Call to undefined method UsersController::element() Can someone tell me wats the issue here is?? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp

Passing variable From Controller to a View

2011-03-23 Thread Shashank
Hi Guys, This might be a stupid question, but i am really not getting it into play after so many tries. What i have is a left.ctp file in my app/views/elements And what i am trying to do is, i have a function show in my users controller and in that function i am setting a variable to use in view fi

Re: Vedio Upload in Cakephp

2011-03-18 Thread Shashank
Hmm. Then let me try it through you tube then . On Fri, Mar 18, 2011 at 1:36 PM, mike karthauser wrote: > > On 18 Mar 2011, at 07:30, Shashank wrote: > > Hi, > I am trying to do something new here. I want a feature something like > ds: > A user been able to upload a vedio f

Re: Share You tube Vedios in Cakephp

2011-03-18 Thread Shashank
gt; eg : http://www.youtube.com/embed/8rluU6BGpKw"; frameborder="0" > allowfullscreen> ? > > And then echo that in the view? > > > On 18/03/2011 09:58, Shashank wrote: > >> Hi Guys, >> I need to know a way that enables the user to share youtube ve

Share You tube Vedios in Cakephp

2011-03-18 Thread Shashank
Hi Guys, I need to know a way that enables the user to share youtube vedios on the site. Thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questi

Vedio Upload in Cakephp

2011-03-18 Thread Shashank
Hi, I am trying to do something new here. I want a feature something like ds: A user been able to upload a vedio from his local pc, and then he can go over the site to play and watch it. I have no idea how to do ds. But i need to get it done asap. Any helps will be greatly appreciated!!! -- Our

Re: Problem Using Ajax in Cakephp

2011-03-17 Thread Shashank
based on jquery. On Fri, Mar 18, 2011 at 1:19 AM, Jens Dittrich wrote: > You should read the book. Especially the section about the JsHelper > http://book.cakephp.org/view/1593/Methods > The function you might want to use is request(). > > On 17 Mrz., 09:36, Shashank wrote: > &g

Problem Using Ajax in Cakephp

2011-03-17 Thread Shashank
Hi, I am badly stuck in a problem here. The situation is something like this, i have some feature of a social networking site in my site that is under development. What i want is that when a user updates his status, the page should not get refreshed, it shud just make and ajax call and return the