Re: repeatedly call controller action through ajax

2010-03-24 Thread alex bailey
´I think I've got it to work by doing as you said with a few compromises here and there : ) Big thanks I really appreciate your help. Regards Alex On 24 Mrz., 11:29, John Andersen wrote: > Ok, if your page is loading normaly, then pass the information to the > view/layout and in there, make the

Re: repeatedly call controller action through ajax

2010-03-24 Thread John Andersen
Ok, if your page is loading normaly, then pass the information to the view/layout and in there, make the decision to activate or not, the ajax request to the bar action. How you are going to do it is up to you, I have no idea :) of what information you use and how you have chosen to implement your

Re: repeatedly call controller action through ajax

2010-03-24 Thread alex bailey
Hi John, thanks for your answer could you explain a bit further how to retrieve the condition and return it with the result? I've worked with php a long time now but i just recently delved into ajax so I still have to find my way around. And btw my normal page loading works without ajax I only wan

Re: repeatedly call controller action through ajax

2010-03-24 Thread John Andersen
I am not sure how your page loading is working - with ajax or without - so here is what I would do based on your information: In the first ajax call to the bar action, retrieve the dynamic condition and return it together with the ajax result. Then act upon it as you want. Enjoy, John On Mar

repeatedly call controller action through ajax

2010-03-23 Thread alex bailey
Hi guys, I'm having a problem with my project where I could freak out about. The situation is the following: I have a controller foo which has an action bar. Now the thing i want to get going: have the bar action running all the time while your on the page by a fixed interval with a condition if