Having a problem using Request.HTML that seems to be occurring only
IE. The script starts with the that I'm working on: The problem is
that these two request work fine in FF and Safari but not in IE 7
(when I click the links the HTML is returned for each). I checked the
demo resources but still no luck. Here is the example page
http://www.nyu.edu/alumni/Request.HTML/Request.HTML/index.html

var req = new Request.HTML({url:demo_path+'data.html',
                onSuccess: function(html) {

                        $('result').set('text', '');
                        //Inject the new DOM elements into the results div.
                        $('result').adopt(html);
                },
                onFailure: function() {
                        $('result').set('text', 'The request failed.');
                }
        });

        var req2 = new Request.HTML({url:demo_path+'homeaddress.html',
                onSuccess: function(html) {
                        //Clear the text currently inside the results div.
                        $('result').set('text', '');
                        //Inject the new DOM elements into the results div.
                        $('result').adopt(html);
                },

                onFailure: function() {
                        $('result').set('text', 'The request failed.');
                }
        });

        $('makeRequest').addEvent('click', function() {
                req.send();
                });

        $('makeRequest2').addEvent('click', function() {
                req2.send();

       });

Reply via email to