var fields = {};
fields["comment-text-edit-" + commentID] = [
               {
                       "code"  :       "empty",
                       "text"  :       lng['error_comments_text']
               }
 ];

That should do it...

On 10/10/2008, at 12:56, DeMximus wrote:


Hello, every one!

Code:
~~~~~~~~~~
var fields = {
       "comment-text-edit-" + commentID : [
               {
                       "code"  :       "empty",
                       "text"  :       lng['error_comments_text']
               }
       ]
};
~~~~~~~~~~

Here I receive a error: "missing : after property id". How to me create such object?

--
Basketball is the future game.
http://bchance.ru/
http://bchance.ru/blogs/
http://forum.bchance.ru/


--
Saimon Moore
Freelance Web Developer
(Available for hire - For details visit http://saimonmoore.net)

Skype: saimonmoore
Yahoo IM: saimonmoore
Google IM: saimonmoore



Reply via email to