On Mon, Jan 16, 2006 at 12:18:14PM -0700, Gregory Hill wrote:
> Not sure if it'll do what you want, but see my changes below: 

I wasn't sure with your line wrapping, but this is what I tried now,
but it's still doing double requests:

Sorry for the long lines:


<th onclick="new Ajax.Updater('tableTable', 
'http://bumby:3000/admin/location?o=name', { requestHeaders: ['X-Ajax-Updater', 
'ajax_table'] } ); Event.stop(e); return false;">
    <a href="http://bumby:3000/admin/location?o=name"; onclick="new 
Ajax.Updater('tableTable', 'http://bumby:3000/admin/location?o=name', { 
requestHeaders: ['X-Ajax-Updater', 'ajax_table'] } ); return false;">
        Location
    </a>
</th>


And then also:

var myrules = {
    // Disable bubble up to the <tr> that might have an onclick event
    '#matrix a' : function(e){
        e.onclick   = function(e){
            Event.stop(e);
            return false;
            /* above replaces below */
            if (!e) var e = window.event;
            e.cancelBubble = true;
            if (e.stopPropagation) e.stopPropagation();
        }
    }
};

Behaviour.register(myrules);


There's other odd things happening.  When I first load the page
clicking on the <a> links nothing happens, and I have to first click
either on the <th> area or on some link on the page ( like the ajax
updater for "page next", for example).

Another thing it's been bugging me is I have a spinner "busy" icon
that shows up during the ajax request.  But it only shows up sometimes
-- even on long requests.  For some reason its display prop isn't
being enabled.  No javascript errors according to Firefox, either.

Thanks,

-- 
Bill Moseley
[EMAIL PROTECTED]

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to