1
vote
1answer
917 views

Long polling locking up other AJAX calls

I'm looking to do long polling to "push" some data down to the client and I'm also making other unrelated AJAX calls to the server in parallel with the long polling. It appears that my other AJAX ...
11
votes
5answers
10k views

Push notification to the client browser

I'd like to create an application where when a Super user clicks a link the users should get a notification or rather a content like a pdf for them to access on the screen. Use Case: When a teacher ...
5
votes
6answers
7k views

Adding page-specific Javascript to each view in CakePHP

In an attempt to keep my scripts maintainable, I'm going to move each into their own file, organised by controller and action: // scripts which only apply to /views/posts/add.ctp ...
0
votes
2answers
1k views

ckeditor and cakephp - I can't make the text area bigger - what am I doing wrong

sorry for being such a plonker but I'm a bit new and this is doing my 'ed in. I'm using cakephp and I've got a form which uses ckeditor as the textarea. I include the javascript file and jquery and ...
0
votes
0answers
137 views

audiojs on cake php issue

i use audio js http://kolber.github.com/audiojs/ for play some mp3, this works on localhost correctly, when i added this files to cakephp view file it is not working it says. styleElement is not ...
0
votes
1answer
347 views

How do I use PHP variables as values for the <script> tag when rendering jQuery code in my CakePHP view?

I m new to CakePhp and JQuery. I am getting an error in using the cakephp code inside my JQuery. My code <script type="text/javascript"> $(document).ready(function(){ var ...
2
votes
5answers
1k views

post associative array using jquery ajax

I am creating form using cakephp form. It is creating form something like this: <form name='license' action='/some/action' action='POST'> <input type="text" id="license0Number" ...
2
votes
1answer
782 views

CakePHP & JQuery, location.reload sometimes not working

Hi I am developing data deleting page with checkbox and button. After deletion, I'd like to display the message either the transaction is successful or not. Most of the time the message shows ...
5
votes
3answers
516 views

Why use CakePHP's JsHelper?

I'm just starting with CakePHP and was wondering if someone could explain the true benefit of using its JsHelper over coding regular static jQuery and JS. So far, I don't really see how the helper ...
3
votes
6answers
766 views

How can i stop an AJAX call keeping a PHP Session alive

I have an authentication system on my site using CakePHP. It uses PHP Sessions for this. What i have in place is an AJAX call (within a setInterval running every minute) to a function which checks if ...
2
votes
1answer
530 views

How to upload videos to youtube from url

I have an option for users to share videos. I use to filepicker.io to handle my uploads. I am using zend gdata plugin, it works well for videos stored on my server. But it does not work for videos ...
0
votes
3answers
399 views

update form field with js but not showing in submitted data

Experimenting with JsHelper in CakePHP 2.0, I got a Request method to update the value of a form field with the results of an AJAX call - so far, so good. However, on inspecting the form field it ...
0
votes
1answer
2k views

CakePHP ajax form submit before and complete will not work for displaying animated gif

I"m using prototype I've tested ALL possibble scenarios, and my busy indicator WILL not show no matter what. I've cross browser tested no luck. <?php echo $ajax->submit('Submit', ...
0
votes
2answers
419 views

Is there a CakePHP component/plugin that does permanent links for ajax pages?

I'm using the JsHelper to write JS links to use ajax to load in a page. Like this: <?= $this->Js->link($item['Series']['title'], array( 'controller' => 'series', 'action' => ...
0
votes
2answers
1k views

How to access a session variable in a .js file in CakePHP

In my CakePHP application I am creating a session variable in some controller, which I need to access in a ".js" file. Is there any possible way to do this?

1 2
15 30 50 per page