Questions tagged with js

2 answers

-1 votes

Asked by lenzcom, on 4/11/09 in Helpers

The new js engine helpers...

Hi folks!

In 1.3alpha we have the new js engine helpers. Here's my question:

I need a DojoEngineHelper and here's my code so far:

<?php

App::import('Helper', 'Js');

class DojoEngineHelper extends JsBaseEngineHelper {

}

?

Please help me to dive in......

2 answers

-1 votes

Asked by genji, on 20/12/09 in Behaviors

Getting AJAX to work with CakePHP

Hey guys i've been trying to increase the user experience of an application of mine by adding AJAX but i can't seem to find a decent tutorial?

Can anyone help me find a good working tutorial that makes use of cakephp + ajax?

Thanks in advance

1 answer

-1 votes

Asked by vasion, on 21/1/10 in Models

how to stop notice 8 undefined index from appearing

i am using cake to generate a json. when the notice appears, the json is no longer valid. I have my debug variable in core set to 0

2 answers

0 votes

Asked by Shacamus, on 4/2/10 in Helpers

CakePHP + JsCalendar

Hi everybody,

Project : Integrate the JsCalendar script with CakePHP.

I'm using the helper described here "http://forum.cakephp-fr.org/viewtopic.php?id=1155"

Event


<?php
class Event extends AppModel{
	
	var...

1 answer

0 votes

Asked by ABCoder, on 8/2/10 in Views

Ajax pagination using JSON data

Cake has default ajax pagination feature, but the output is in html which is not a good idea and huge amount of data transfer.

I want to use JSON to reduce data transfer. Is there any "ready-made" stuff for pagination using json (and jQuery).

0 answers

-1 votes

Asked by shahid, on 2/3/10 in Helpers

Prototype.js Ajax submit is not working in Safari..

Ajax submit is not working in Safari

This is code:

$ajax->submit('Submit',array("class"=>"btnSaveForum")

);

Thanks

in advance

3 answers

0 votes

Asked by blacksymmetry, on 6/3/10 in Helpers

Import JS file to default.ctp for all views

Hello, I would like to ask, how can I import JS file in default.ctp, to be usable in all views that i use.

If i try:


echo($javascript->link("myscrip.js")); 

Get error call to a member function link on a non-object cakephp

In appcontroller i have...

1 answer

0 votes

Asked by MetalJo, on 7/3/10 in Helpers

Utilisation du nouvel HelperJs

Bonjour,

Depuis hier, je migre mon site de la v1.2 vers la v1.3RC1.

Depuis la disparition de $ajax au profit de $js, j'essaye de refaire péniblement mes fonctions ajax :

J'ai une fonction pour supprimer, publier ou dépublier un article. En cliquant...

1 answer

0 votes

Asked by Lobosque, on 8/3/10 in Helpers

Js->request wrong url formating

I'm learning how to use the new Js helper for an ajax task.

Here is my php code:


 echo $this->Js->get('#all')->event('change', $this->Js->request(array('controller' => 'keywords' , 'action' => 'ajax'),$options));

and this is the generated...

1 answer

0 votes

Asked by erick2red, on 25/3/10 in Helpers

JsHelper and Cakephp 1.3

Hi:

I'm start using cakephp and i made a demo app using AjaxHelper


$ajax->link('title', 'url', array('update' => 'mydiv'))

Now i want to migrate that to cakephp 1.3 and AjaxHelper is deprecated on cake 1.3 and will be removed, so i want to...

0 answers

0 votes

Asked by cguyer, on 4/5/10 in Helpers

How can the new Js Helper be used to observe an input and update a div?

First off, real beginner when it comes to javascript and jquery but I am attempting to migrate from 1.2 to 1.3 and the ajax library is being deprecated, so I think it wise to try to move from the ajax to the Js Helper.

I have been googling,...

2 answers

0 votes

Asked by panter4, on 14/5/10 in Views

How to parse JS like ctp

i would like to parse JS files like ctp

i need to parse javascript because i'm using ExtJs framework for the whole user interface, and cake as the backend for ajax

in JS i need to "know" user permissions to hide parts of JS code for wich a certain...

1 answer

0 votes

Asked by watchout, on 16/5/10 in Helpers

JS Helper event syntax

I'm trying to fade out a <div when another element in the page is clicked, with the new JS Helper. I am using prototype as my JS library.

I created this...

2 answers

0 votes

Asked by talelcool, on 17/5/10 in Helpers

How to use jqueryobject variable in the jquery engine helper?

it's said that in Jquery engine helper api :

jQueryObject: The variable name of the jQuery Object, useful when jQuery is put into noConflict() mode.

can somebody give an example how to use this variable to change jquery default '$' to work with...

1 answer

0 votes

Asked by gong, on 2/6/10 in Helpers

Is JsHelper worth using?

Hello,

I was changing my project to use cake 1.3. I noticed the JsHelper along jquery that I use.

Before I had a variable with all my javascript code that I echoed (not inline).

Now I see we can use something...

1 answer

0 votes

Asked by siji, on 10/6/10 in Helpers

can't link to js file using js helper

In my old application I was using cakePHP 1.2. At that time I was using the following code to connect my ctp file to a js file that resides in the webroot/js folder


<?php echo $javascript->link('common', false); ?>

But now I am developing another...

0 answers

0 votes

Asked by chriswoodley, on 11/6/10 in CakeQS

Why does ajax pagination break when i include the RequestHandler component into my controller?

Hi,

I have followed the instructions on setting up ajax pagination in the cakePHP 1.3 Manual using the new JS helper and got it to work in one of my controllers as intended. However...the ajax pagination breaks when I include the RequestHandler...

0 answers

0 votes

Asked by gunner1095b, on 22/6/10 in Helpers

Grid control?

Does anyone have a good suggestion for a grid helper or plugin that works well with CakePHP 1.2? I'm thinking of ExtJS for example... Or, something with jQuery.

1 answer

0 votes

Asked by thedilab, on 27/6/10 in Models

JSON data lost

Hi I am using Cakephp 1.2 with jquery 1.4, there is a strange problem happening when I moved my application from localhost to my server, which is JSON data being cut off when it has too many records.

For example, when I have json data with 100...

0 answers

0 votes

Asked by chriswoodley, on 6/7/10 in Helpers

How do you update a select box using the CakePHP 1.3 Js helper and Jquery?

I'm using the cakePHP 1.3.2. The scenario is I have 2 select boxes in my view. I want to dynamically update one of the select box depending on what I choose with the other select box using the new Js helper and Jquery. Can anyone help me look in...

<< previous 1   2   3   4