I have been banging my head against this problem for a while and seem to be 
overlooking something.  I have a div that I'm trying to populate through an 
ajax request.  It works like a charm in Firefox, but I can't seem to make it 
work in IE.  I've read through the documentation and have gone through the 
messages that seem to be related to this issue.  Does anyone have any thoughts 
on what I'm missing?

- Thomas



*** HTML SNIPPET ***

<form name="datefilter" id="datefilter">
    <div id="date-container" class="filter_box">
        <div id="date-header">

            <div id="date-range">
                <div id="date-startbox">
                    <div id="date-startbox-head">
                        <a href="javascript:void(0)" 
id="date-startbox-head-link" onclick="toggledatecalendar('date-startbox', 
'date-endbox')" class="active">Start</a>
                    </div>
                    <div id="date-startbox-display"></div>
                </div>
                <div id="date-endbox">

                    <div id="date-endbox-head">
                        <a href="javascript:void(0)" id="date-endbox-head-link" 
onclick="toggledatecalendar('date-endbox', 'date-startbox')">End</a>
                    </div>
                    <div id="date-endbox-display"></div>
                </div>
                <div style="clear:both"></div>
            </div>
        </div>

        <div id="date-calendar">
            <div id="date-startbox-value-container">
                <input type="hidden" id="date-startbox-value" 
name="date_startbox_value" value="" />
            </div>
            <div id="date-endbox-value-container" style="display:none">
                <input type="hidden" id="date-endbox-value" 
name="date_endbox_value" value="" />
            </div>
        </div>
    </div>

    <div id="filter-box"></div>
</form>

*** JAVASCRIPT ***


function drawfilterbox (l, sp, co, cl, se, te, ds, ad, act, temp, coreteams) {
    $('filter-box').update ('Drawing the filter.');
    new Ajax.Request ('rpc.php',
    { parameters: {
        rpc: 'listfilter',
        league: l,
        sport: sp,
        conference: co,
        club: cl,
        season: se,
        team: te,
        disableseason: ds,
        affecteddiv: ad,
        action: act,
        template: temp,
        core: coreteams
    },
    method: 'post',
    insertion: Insertion.Bottom,
    onSuccess: function (transport) {
            if ($('filter-box')) {
                $('filter-box').update (transport.responseText );
                alert ('filter-box should now be updated.\n\n' + 
transport.responseText);
            } else {
                alert ("I couldn't find the filter-box div.");
            }
        },
    onFailure: function () {
            alert ('Unable to draw filter.');
        }
    });
}



--~--~---------~--~----~------------~-------~--~----~
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