Re: [symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-06 Thread Robert Heim
yeah I was confused, because there are some blog and forum-posts on the 
internet, that use 1.4 and remote_function..


To solve the problem, you might use this jQuery plugin? 
http://www.symfony-project.org/plugins/sfJqueryReloadedPlugin


Am 06.04.2010 12:20, schrieb DEEPAK BHATIA:

Hi,
I think remote_function are obsoleted in the Symfony 1.4. I think this 
can be achieved using JQuery.

Regards
Deepak

On Tue, Apr 6, 2010 at 3:14 PM, Belgacem TLILI > wrote:


i have include


if i use  i will get an error
(i thinks for sf 1.4 we must use JavascriptBase

On 6 avr, 00:24, Robert Heim mailto:sa...@gmx.net>> wrote:
> Oh I'm sorry.. I did not know that remote_function(..) is a built-in
> support for ajax in symfony.. I thought it was meant as a JS
function..
>
> So you might want to remove the >"< again.
>
> Did you include the JS-Helper?
> 
>
> Am 06.04.2010 00:13, schrieb Belgacem TLILI:
>
> > i'm using jquery to get the ajax action
>
> > this my code in the template
>
> > 
> > $("#MyButton").click(function() {
> >remote_function(array("update"=>"item_list","url"=>"cap/new"));
> > });
> > 
>
> > i have not any result ?

--
If you want to report a vulnerability issue on symfony, please
send it to security at symfony-project.com


You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to
symfony-users@googlegroups.com 
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.


--
If you want to report a vulnerability issue on symfony, please send it 
to security at symfony-project.com


You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-06 Thread DEEPAK BHATIA
Hi,

I think remote_function are obsoleted in the Symfony 1.4. I think this can
be achieved using JQuery.

Regards

Deepak

On Tue, Apr 6, 2010 at 3:14 PM, Belgacem TLILI wrote:

> i have include
> 
>
> if i use  i will get an error
> (i thinks for sf 1.4 we must use JavascriptBase
>
> On 6 avr, 00:24, Robert Heim  wrote:
> > Oh I'm sorry.. I did not know that remote_function(..) is a built-in
> > support for ajax in symfony.. I thought it was meant as a JS function..
> >
> > So you might want to remove the >"< again.
> >
> > Did you include the JS-Helper?
> > 
> >
> > Am 06.04.2010 00:13, schrieb Belgacem TLILI:
> >
> > > i'm using jquery to get the ajax action
> >
> > > this my code in the template
> >
> > > 
> > > $("#MyButton").click(function() {
> > >remote_function(array("update"=>"item_list","url"=>"cap/new"));
> > > });
> > > 
> >
> > > i have not any result ?
>
> --
>  If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-06 Thread Belgacem TLILI
i have include


if i use  i will get an error
(i thinks for sf 1.4 we must use JavascriptBase

On 6 avr, 00:24, Robert Heim  wrote:
> Oh I'm sorry.. I did not know that remote_function(..) is a built-in
> support for ajax in symfony.. I thought it was meant as a JS function..
>
> So you might want to remove the >"< again.
>
> Did you include the JS-Helper?
> 
>
> Am 06.04.2010 00:13, schrieb Belgacem TLILI:
>
> > i'm using jquery to get the ajax action
>
> > this my code in the template
>
> > 
> > $("#MyButton").click(function() {
> >    remote_function(array("update"=>"item_list","url"=>"cap/new"));
> > });
> > 
>
> > i have not any result ?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: [symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Robert Heim
Oh I'm sorry.. I did not know that remote_function(..) is a built-in 
support for ajax in symfony.. I thought it was meant as a JS function..


So you might want to remove the >"< again.

Did you include the JS-Helper?


Am 06.04.2010 00:13, schrieb Belgacem TLILI:

i'm using jquery to get the ajax action

this my code in the template


$("#MyButton").click(function() {
   remote_function(array("update"=>"item_list","url"=>"cap/new"));
});



i have not any result ?

   


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.


Re: [symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Robert Heim
I heard something like that Javascript doesn’t have built in support for 
associative arrays the way PHP and other programming languages do..

try

var Arr=new Array();

 Arr[0] = new Array();
 Arr[0]["first_name"] = "foo";
 Arr[0]["last_name"] = "bar";
 Mitarbeiter[0]["Wohnort"]= "Dresden";

I'm not sure..
Maybe this helps you: 
http://andrewdupont.net/2006/05/18/javascript-associative-arrays-considered-harmful/


cheers!
comb

Am 05.04.2010 23:44, schrieb Belgacem TLILI:

great it's work
the problem was resolved
thank you Mr Robert Heim

just one more thing

in Firebug i have an error that i think is not important
-
invalid assignment left-hand side
  'update' =>  'myzone',\n
---

??

On 5 avr, 23:34, Robert Heim  wrote:
   

try:

echo javascript_tag("remote_function(array(
  'update'  =>   'myzone',
  'url' =>   'mymodule/myaction',
))"
) ?>

you need the>"<  because otherwise its interpreted as an PHP-function..

Am 05.04.2010 23:31, schrieb Belgacem TLILI:

 

i'm using sf 1.4
and i'm searching to embed a form using ajax
i start with
echo javascript_tag(
remote_function(array(
  'update'  =>   'myzone',
  'url' =>   'mymodule/myaction',
))
) ?>
   
 

i have use the java script helper in my template
   
 

but i have an error
   
 

Fatal error: Call to undefined function remote_function() in D:
\sfprojects\ajaxembedform\apps\frontend\modules\cap\templates
\newSuccess.php
   
 

is there any configuration required  to have a solution for this
error ?
   
   


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Belgacem TLILI
i'm using jquery to get the ajax action

this my code in the template


$("#MyButton").click(function() {
  remote_function(array("update"=>"item_list","url"=>"cap/new"));
});



i have not any result ?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Belgacem TLILI
great it's work
the problem was resolved
thank you Mr Robert Heim

just one more thing

in Firebug i have an error that i think is not important
-
invalid assignment left-hand side
 'update' => 'myzone',\n
---

??

On 5 avr, 23:34, Robert Heim  wrote:
> try:
>
> echo javascript_tag("remote_function(array(
>      'update'  =>  'myzone',
>      'url'     =>  'mymodule/myaction',
>    ))"
> ) ?>
>
> you need the >"< because otherwise its interpreted as an PHP-function..
>
> Am 05.04.2010 23:31, schrieb Belgacem TLILI:
>
> > i'm using sf 1.4
> > and i'm searching to embed a form using ajax
> > i start with
> > echo javascript_tag(
> >    remote_function(array(
> >      'update'  =>  'myzone',
> >      'url'     =>  'mymodule/myaction',
> >    ))
> > ) ?>
>
> > i have use the java script helper in my template > use_helper('JavascriptBase') ?>
>
> > but i have an error
>
> > Fatal error: Call to undefined function remote_function() in D:
> > \sfprojects\ajaxembedform\apps\frontend\modules\cap\templates
> > \newSuccess.php
>
> > is there any configuration required  to have a solution for this
> > error ?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.