[TYPO3-project-formidable] Ajax Form inside LISTER howto ?

Nikitin S.M. nikitinsm at gmail.com
Thu Sep 25 09:23:57 CEST 2008


ameos_formidable/api/class.mainrenderer.php

line #288
$sJsonRowParams looks like

{"uid":"2","title":"","url":"nikitinsm at gmail.com"}{"uid":"2"}
{"uid":"3","title":"","url":"calendar.google.com"}{"uid":"3"} <= Equel

After entering the button "save" POST command looks like
Array
(
     [formid] => calendarshow
     [eventid] => ca339ac8d1
     [safelock] => 90d346e260
     [value] => 
{\"uid\":\"3\",\"title\":\"\",\"url\":\"calendar.google.com\"}
^----- It doesn't changes I think it is a problem of generating JSON 
command on client side



     [thrower] => calendarshow.emybox.emylist.3.btn_save
)
{"init":{},"attachevents":{},"tasks":{}}



Nikitin S.M. пишет:
> Submitting such a form in ajax mode returns OLD values and just inputted 
> are ignored
> 
> == COLUMNS:
> 
> 10{
>   type = renderlet:TEXT
>   custom = style="width:200px;"
>   name = title
>   activelistable = true
> }
> 20{
>   type = renderlet:TEXT
>   custom = style="width:400px;"
>   name = url
>   activelistable = true
> }
> 30{
>   type = renderlet:BUTTON
>   activelistable = true
>   name = btn_save
>   url = javascript:void(0)
>   label = Сохранить
>   listheader =  //!!!! <= also in LINK or BUTTON renderlet need to do 
> such thing to clear table header with STANDARD renderer.
>   onclick{
>         runat = ajax
>         params = rowData::uid,rowData::title,rowData::url
>         submit = full
>         userobj{
>             php(
>                 $aData = func_get_arg(1);
>                 print_r($aData);
>             )
>         }
>     }
> }


More information about the TYPO3-project-formidable mailing list