var rightElement = document.getElementById(rightUUID);
var leftElement = document.getElementById(leftUUID);
alert(leftElement);//--> [ObjectHTMLSpanElement]
var range = document.createRange();
range.setStartAfter(leftElement);
range.setEndBefore(rightElement);
var sel = window.getSelection();
sel.removeAllRanges();
sel.addRange(range);
document.body.removeChild(rightElement);//-->No error
document.body.removeChild(leftElement);//-->NotFoundError: Node was not found
__________________
Found a flower or bug and don't know what it is ? agrozoo.net galery
if you don't spot search button at once, there is search form: agrozoo.net galery search
Last edited by BubikolRamios; 12-07-2012 at 02:55 AM..
under construction on local host with ton of code around ...will do sample ......
__________________
Found a flower or bug and don't know what it is ? agrozoo.net galery
if you don't spot search button at once, there is search form: agrozoo.net galery search
See firebug error console, also the added spans does not disapear (inspecting with firebug), should they ? I mean, plan is that they should.
EDIT: They don't disapear coz of error, doh strange as document.getElementById(.. finds them (hence I think DOM refresh or something would not help).
__________________
Found a flower or bug and don't know what it is ? agrozoo.net galery
if you don't spot search button at once, there is search form: agrozoo.net galery search
Last edited by BubikolRamios; 12-07-2012 at 02:49 AM..
__________________
Found a flower or bug and don't know what it is ? agrozoo.net galery
if you don't spot search button at once, there is search form: agrozoo.net galery search