Hi,
I am new to JQuery and Ajax
I am trying to use the value returned from the Ajax call to the another Ajax call.
Example:
$.ajax({
type: "POST",
url: "http://localhost/FormBuilder/index.php/forms/saveForm/",
async: false,
data: "formname="+formname+"&status="+status,
success: function(msg){
//alert( "Data...
I am relatively new to Cake PHP framework and was trying few things in it. I have made a blog databse. I was trying to view an array of number of posts made in a particular year using the debug() function.
I wrote the following function in the post model.
function findByYear($year = null){
$date = $year.'-01-01 00:00:00';
$end...
In my cakephp app I have an Option model.
In my option/index view I display 2 options with inputs and radio button fields.
I want to update both of them, but I get a weird behaviour.
The option I alter doesn't get saved and instead a new option is inserted with the new value.
Here is my view
<h2 class='page-title' id='manage-option...
I am trying to implement the Ajax feature in the comments section of my blog. I have downloaded prototype-1.6.0.3.js and have placed it in the js folder inside webroot.
I have made the following changes in the layout file(default.ctp)
$javascript->link(array('prototype'));
Also, following code has been added to controllers
var $helpe...
This question is somewhat related to my previous question (not necessary to go through it)
link text
, although this one is more of an Ajax problem.
I tested my page in firebug and I am getting the following error
Event.Observe is not a function
Event.observe('form908983160', 'submit', function(event) { new Ajax.Updater('comments','/...
I'm setting up a CakePHP project, and would like all requests passed in to be redirected to one specific controller.
Currently my routing rule is set up like this:
Router::connect('/:action/*', array('controller' => 'files'));
However, this is obviously not the correct way to achieve this, as it is producing several E_NOTICE errors.
...
Well as I have posted earlier too...I have created a site in two languages.One with URL www.mainDomain.com(English) and other with www.fr.subDomain.com(French).Both are done in CakePHP,in french I have just changed the views of it to French.But the problem is,when anybody login's in English version and then switches to the French version...
Hi
I'm trying to set up a social networking type of site, where users can have friends and send each other messages.
I have a users table, and a friends table, which basically has an user_id and user_friends_id.
Using cakePHP, how can I link the user_id and user_friend_id back to the users table?
I used bake to create all my models and...
i want to make a 'calendar object' which generates three different style calendars to display, they'll all use the same data. should i do the logic for the calendar style in the view, or should i do that in the controller and then call it from the view?
...
hi, I'm trying to create a text box using the vales retrieved from the database. But instead of a text box, a select box (drop down box) is created. I do not understand why. I have given the type as text only, then why a select box is being created?
echo $form->input($r['Attribute']['label'],
array('label' => $r['Attr...
I am using cakePHP framework to build a website in which I want to let users signin using openID. and there is no core component in cake to do this.
is there any component for openID login that is it differente from cakePHP Auth component ?
...
I have been looking into this for a while and can't figure it out. Basically I have an add page for my model which you can add a map from a URL or from a file upload. I have got all the fields and validation in but how and where do I manage the uploaded file?? There must be some easy way to do this. Thanks!
...
Hi,
I am trying to update multiple divs using ajax in cakephp with no luck.
I followed some tutorials
http://cakebaker.42dh.com/2006/06/29/how-to-update-multiple-divs-with-ajax/
http://www.reversefolds.com/articles/show/ajax
but it still does not work on firefox 3.5.2
i am doing:
in view
echo $ajax->link('link text', '/controlle...
Well as I have posted earlier too...I have created a site in two languages. One with URL www.mainDomain.com (English) and other with www.fr.subDomain.com (French).
Both are done in CakePHP,in french I have just changed the views of it to French. But the problem is, when anybody login's in English version and then switches to the French ...
i am working on cms in which users submits articles and visitors can vote on those articles,
so i am confused. should i make a vote behavior (since it deals with data) or i will me it on a component (because it is an action in my controller) ?
help is very appreciated.
...
I tried using an internal rewrite, but only the main page shows. Any access to, for example, http://www.example.com/logins/ will just return a 404 Not Found error.
How can I enable the mod_rewrite in a shared hosting environment (Godaddy in my case)?
...
As I have posted before also,I am developing a site in two languages done in CakePHP.
Now the latest problem I am facing in my application is that the application is not sharing the Cache values between the Main Domain and the Subdomain.Please help me out of this mess...!!!
Thanks in advance.
...
I'm mostly concerned with documenting Controller actions, e.g http://foo.bar/app/thing/action/param. How would you recommend documenting these? I'm less interested in the method of generating the documentation (e.g. phpdoc or doxygen) and more a style of doing it. Should I list the parameters and return values as if I were documenting...
Well as I have posted earlier too...I have created a site in two languages, one with URL www.mainDomain.com (English) and the other with www.fr.subDomain.com (French). Both are done in CakePHP. In the French version, I have just changed the views of it to French.
The problem I am facing is with the cache. I have app/tmp/cache folder in...
I am trying to delete a list of entries form my table corresponding to a particular id. I get the id and post it through an ajax function to the controller and use the Delete function of the model to delete the particular entry. But the entries are not deleted.
This is my ajax function in the view file called reports.ctp where I call th...