I can get the demo to work in Safari and Opera: http://demos.mootools.net/Request.HTML
But when I use the script on my webpage, I am seeing errors. I can't get the script to work at all in Opera.
More frustrating, in SAFARI, the script ONLY works on the initial load. If I click on a link back to the home page, I get a "The request failed".
Mootools seems to have the easiest approach toward achieving an external load from another DIV, but I can't get it right.
Greatly appreciate all the help. Thank you. Erik My Website Link: http://www.honestskin.com/home.htm SCRIPT: window.addEvent('domready', function() { if (!window.demo_path) window.demo_path = ''; var demo_path = window.demo_path; var req = new Request.HTML({url:demo_path+'appoint.htm', onSuccess: function(html) { $('result1').set('text', ''); $('result1').adopt(html); }, onFailure: function() { $('result1').set('text', 'The request failed.'); } }); $('makeRequest').addEvent('click', function() { req.send(); }); }); HTML: <div id="result1"> <div id="board"></div> <div class="spc_3"></div> <div id="wrap_2"> <div id="appt"><a href="#" id="makeRequest" class="appt"></a></div> <div id="spc_4"></div> <div id="treat"><a href="#" class="treat"></a></div> <div id="spc_5"></div> <div id="prdct"><a href="#" class="prdct"></a></div> </div> </div>
