Greg Hauptmann
2007-Feb-13 01:06 UTC
AJAX status update to application just before a external site''s button/link sends the user to another site ???
Hi, I''m incorporating a Palpal donate button on my site, however I''d like to be able to send an update (AJAX) to my application to alert it to the fact that the user has clicked on donate, and hence would be in the process of being taken to the PayPal site. Is there a way to wrap an AJAX update back to my application around an external site''s link that I embed. Tks Greg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sheldon Hearn
2007-Feb-13 09:08 UTC
Re: AJAX status update to application just before a external site''s button/link sends the user to another site ???
On Feb 13, 3:06 am, "Greg Hauptmann" <greg.hauptmann.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there a way to wrap an AJAX update back to my application around an > external site''s link that I embed.Take a look at how any popular web analytics package handles the tracking of outclicks. For example: http://s10.sitemeter.com/js/counter.asp (Note: Copyright) Basically, you add an onclick event handler to every link in the document by iterating over document.links. Ciao, Sheldon. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Greg Hauptmann
2007-Feb-13 09:40 UTC
Re: AJAX status update to application just before a external site''s button/link sends the user to another site ???
thanks Sheldon - you don''t happen to know whether prototype or scriptaculus have this type of feature inbuilt somewhere? Greg On 2/13/07, Sheldon Hearn <sheldonh-Uqlk7TKVmMlWaveUIWBRJg@public.gmane.org> wrote:> > > On Feb 13, 3:06 am, "Greg Hauptmann" <greg.hauptmann.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Is there a way to wrap an AJAX update back to my application around an > > external site''s link that I embed. > > Take a look at how any popular web analytics package handles the > tracking of outclicks. For example: > > http://s10.sitemeter.com/js/counter.asp (Note: Copyright) > > Basically, you add an onclick event handler to every link in the > document by iterating over document.links. > > Ciao, > Sheldon. > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sheldon Hearn
2007-Feb-13 10:08 UTC
Re: AJAX status update to application just before a external site''s button/link sends the user to another site ???
On Feb 13, 11:40 am, "Greg Hauptmann" <greg.hauptmann.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> thanks Sheldon - you don''t happen to know whether prototype or scriptaculus > have this type of feature inbuilt somewhere?Well they both support iterating over document elements (although iterating over document.links is easy enough), and from there I''d imagine it''s just the usual remote post handling. Ciao, Sheldon. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---