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<sa...@gmx.net> 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<?php
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.