it looks ~like this:
<tr>
493 <td class="indicator-container">
494 <img alt="loading indicator" class="loading-indicator"
id="consultants-record-2-loading-indicator" src="/images/
active_scaffold/default/indicator.gif?1225219920"
style="visibility:hidden;" />
495 </td>
496 <td>
497 <a href="/consultants/ad_test/2?_method=get" class="ad_test
action" id="consultants-ad_test-2-link">Test</a> </td>
498 <td>
499 <a href="/consultants/edit/2?_method=get" class="edit action"
id="consultants-edit-2-link" position="replace">Edit</a> </td>
500 <td>
501 <a href="/consultants/destroy/2?_method=delete" class="destroy
action" id="consultants-destroy-2-link" onclick="return confirm('Are
you sure?');">Delete</a> </td>
502 <td>
503 <a href="/consultants/show/2?_method=get" class="show action"
id="consultants-show-2-link" position="replace">Show</a> </td>
504 </tr>
505</table>
506 </td>
507 </tr>
508
509<script type="text/javascript">
510actions = new ActiveScaffold.Actions.Record(
511 $$('#consultants-list-2-row a.action'),
512 $('consultants-list-2-row'),
513 $('consultants-record-2-loading-indicator'),
514 {refresh_url: '/consultants/row/2?_method=get'}
515);
516</script>
problematic link is on 497 line (ad_test method); i see no script
there so i supose action is handled inside new
ActiveScaffold.Actions.Record - will need to look at it...
On 28 Paź, 10:07, "Sergio Cambra .:: entreCables - Symbol Servicios
Informáticos S.L. ::." <[EMAIL PROTECTED]> wrote:
> El Monday 27 October 2008 21:36:32 Kodak escribió:
>
>
>
> > Hi,
> > got AS1.2RC1 and Rails 2.1.1 and problem:
> > whant to add action link do to simple alert but nothing happens, only
> > indicator is running (no server request in logs) :(
> > my ~code:
> > controller:
>
> > config.action_links.add 'ad_test', :label => 'Test', :type
> > => :record,
>
> > :inline => true, :position =>
>
> > false, :crud_type=>nil, :dhtml_confirm=>false, :confirm=>false
>
> > def ad_test
> > end
>
> > ad_test.rjs:
> > page.alert "Hello"
>
> > ad_test.rjs launched from browser giver proper JS; got no errors on
> > FF3 javascript console
> > where to look for problem?
>
> is the html for link right?
>
> --
> Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
> Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
> T) 902 021 404 F) 976 52 98 07 E) [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---