I have <a id="ph" href="#">.
I want to do that (sorry for my poor english):
When user click ph, i need to set href to some usable address (by
sending request Ajax.Request) and fire onclick once again.

I've done like below, but not works good :/ Please help... how to do
this better ?

                        $('ph').observe('click', function() {

                        $('ph').observe('owner:click', function() {

                                if($('ph').href.endsWith('#')) {

                                        new Ajax.Request("geturl.php", {
                                                onComplete: function(request) {
                                                        $('ph').href = 
                                } else {
                                                    // open link...


You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to