1. Be patient. It's only been 90 minutes since you posted. This
list is most active in the late afternoon/evening (for my time zone,
anyway), as many members are in Europe.
2. Debugging is a skill.
a. Often, more information is helpful. For example, in this case, it
is not possible to determine the extra removals aren't being caused
by some other line of code that you didn't post.
b. Online examples are helpful when asking for reviewers.
c. Minimal cases are extremely helpful, and will often direct you to
the cause of the bug.
d. Turn CSS off to ensure it's a Javascript problem, not a CSS problem.
e. What version of Prototype are you using? You've identified a
particular browser (helpful), but not a browser version (less helpful).
f. Don't be scared to look under the hood in Prototype. In this case
it's unlikely (possible, but unlikely) that a function that's been
stable through multiple versions and unit tests is acting
improperly. For example, the code for Element.remove is very
straightforward, and uses DOM methods:
// ...
remove: function(element) {
element = $(element);
element.parentNode.removeChild(element);
return element;
}
// ...
TAG
On Mar 6, 2007, at 2:19 PM, Booshan wrote:
>
> Appreciate any help on this problem.
>
> On Mar 6, 2:53 pm, "Booshan" <[EMAIL PROTECTED]> wrote:
>> JS for replace and remove looks like this...
>>
>> $('d1').replace( "<div id='d1'>Some Data</div>");
>>
>> $('d1').remove();
>>
>> Thanks
>> Booshan
>>
>> On Mar 6, 2:27 pm, "wiggles" <[EMAIL PROTECTED]> wrote:
>>
>>> can you post the actual JS?
>>
>>> On Mar 6, 10:52 am, "Booshan" <[EMAIL PROTECTED]> wrote:
>>
>>>> I have the following type of html content. When I replace or remove
>>>> div with id=d1, all the divs underneath d1 also disappears. This
>>>> happens only in IE, but works fine in Firefox. Appreciate any
>>>> help for
>>>> the fix.
>>
>>>> Thanks
>>>> Booshan
>>
>>>> <div id="d1"></div>
>>>> <div id="d2"></div>
>>>> <div id="d3"></div>
>>>> <div id="d4"></div>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---