Hi, I have a simple problem which is driving me nuts:
I would like to make an AJAX req which returns the whole page - select an element by its ID from the response text and update "targetDiv" with this element (myDivID). But it doenst work :/ function loadContent(url) { new Ajax.Request(url, { method: 'get', onSuccess: function(transport) { var response = transport.responseText; var element = response.getElementById( 'myDivID'); $('targetDiv').update(element); } }); } Some ideas? thx --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---