Call or send component file within component using AJAX request

Requests for new symfony features.

Moderators: dwhittle, Ian

Call or send component file within component using AJAX request

Postby n_shukla2000 » Fri Mar 21, 2008 8:06 am

How can we call or send component file within component file.

For example : I want to show some tips in a component and when we click on next or previous i have to bring action on same page via AJAX request.

Within Components :

Code: Select all
<?php
echo link_to_remote(image_tag("/images/pre.jpg" ;), 
array(
  'update'   => 'zzz',
  'url'      => '?id=2',            
  'loading'  => "Element.show('indicator')",
  'complete' => "Element.hide('indicator')" ;));
?>


what should be URL????

Anybody know how can i do that !!!!

:oops:
Last edited by n_shukla2000 on Fri Mar 21, 2008 8:07 am, edited 1 time in total.
n_shukla2000
Member
 
Posts: 32
Joined: Wed Feb 20, 2008 2:16 pm

Re: Call or send component file within component using AJAX request

Postby katie.gillot » Mon Oct 06, 2008 6:33 pm

Hi,
So did you manage to do that?
I am quite interested by calling direclty a component and not an action in the link_to_remote fonction.

If you know how to do that now, that would be a big help!!

Thanks,

KT.
katie.gillot
Member
 
Posts: 33
Joined: Mon Aug 04, 2008 5:11 pm

Re: Call or send component file within component using AJAX request

Postby djoos » Thu Oct 09, 2008 3:12 pm

Why not just call an action which actually just passes through stuff to the component?

So the actionSuccess would just do the include_component?
djoos
Faithful Member
 
Posts: 290
Joined: Mon Aug 13, 2007 1:29 pm
Location: London


Return to Feature requests

Who is online

Users browsing this forum: No registered users and 1 guest