[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread ryan.j
i'd actually be tempted to try... try { pDialog.remove(); } catch(e) { /* console.log("remove method failed"); */ pDialog.parentNode.removeChild(pDialog); } ...which isn't very pretty but it should start working properly as soon as somebody gets around to fixing remove() without needing th

[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread snakebit
I know the feeling :) my temporary solution is almost the same as yours: var pDialog = data_responce.getElementsByTagName("PDialog"); data_responce.documentElement.removeChild(pDialog[0]) On 18 Май, 17:13, "ryan.j" wrote: > monday morning mate, i completely misread what you wrote :| > > it's a

[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread ryan.j
monday morning mate, i completely misread what you wrote :| it's a bug i guess, have you tried to bypass the remove() method? eg. pDialog.parentNode.removeChild(pDialog); On May 18, 12:17 pm, snakebit wrote: > I'm little confused. Why you think I want to remove a string? What I'm > doing

[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread snakebit
I tray that, but find didn't finde < PDialog > node. On 18 Май, 13:20, Karthikraj wrote: > instead of  $(data_responce).find('PDialog'); > try this $(''+data_responce+'').find('PDialog'); > > On May 18, 1:42 pm, snakebit wrote: > > > Hi, > > > I have an ajax request which is returning an xml, b

[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread snakebit
I'm little confused. Why you think I want to remove a string? What I'm doing is with find('PDialog') to access the node and after that to remove it. On 18 Май, 13:01, "ryan.j" wrote: > remove() will remove an object from the DOM, but essentially you're > just trying to remove part of a string a

[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread Karthikraj
instead of $(data_responce).find('PDialog'); try this $(''+data_responce+'').find('PDialog'); On May 18, 1:42 pm, snakebit wrote: > Hi, > > I have an ajax request which is returning an xml, but when I tray to > remove an element from the xml response I'm receiving the following > error message

[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread ryan.j
remove() will remove an object from the DOM, but essentially you're just trying to remove part of a string aren't you? maybe try replace()? On May 18, 9:42 am, snakebit wrote: > Hi, > > I have an ajax request which is returning an xml, but when I tray to > remove an element from the xml respons

[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread ryan.j
remove() will remove an object from the DOM, but you're jsut trying to remove part of a string. use replace()? On May 18, 9:42 am, snakebit wrote: > Hi, > > I have an ajax request which is returning an xml, but when I tray to > remove an element from the xml response I'm receiving the following