ajax-update with link_to_remote(image_tag), how to?

  • Thread starter Saravanankumar Saravanan
  • Start date
S

Saravanankumar Saravanan

Hi,

I have a image.
link_to_remote(image_Tag...) with update option.
Its working.
But, i cant get the next image what i want to display after click this.
How to do it?

what i code it(If i click the link)?


render_text link_to_remote(image_tag('notlocked.gif', :border => "none",
:title => "Not Locked - This game is free to be swapped." ), :update =>
'lockky', :url => {:controller => 'games', :action => 'toggle_tradable',
:id => item.id})

It is not coming?
Please help me how to do it?


with regards,
saravanan.
 
S

Senthil Kumar

render_text link_to_remote(image_tag('notlocked.gif', :border => "none",
:title => "Not Locked - This game is free to be swapped." ), :update =>
'lockky', :url => {:controller => 'games', :action => 'toggle_tradable',
:id => item.id})


you can call a javascript function in :complete option of your
link_to_remote and you can manuplate the image inside the javascript
function by changing its src value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top