On 23/11/2007, LexNonScripta <[EMAIL PROTECTED]> wrote:
>
> If you wish to change the link from:
>     <a id="event_1" href="...">klik here</a>
>       to
>     <a id="event_1" href="...">changed text</a>
>
> DO:
>  $('event_1').innerHTML="changed text";
>
> But this is just JAVASCRIPT, not Ajax. Ajax is when you request a new
> page from JavaScript "behind the scenes" (without refreshing the
> current page)
>
>
> On Nov 23, 1:37 pm, Tarscher <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I have <a id="event_1" href="...">klik here</a>
> >
> > and want to update 'klik here' via ajax.
> >
> > Many thanks in advance
> > Stijn
> >
>

You could use new Ajax.Updater() - see http://prototypejs.org/api/ajax/updater


-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to