You can read up on how prototype extends the DOM and why IE is different
from everyone else here: http://prototypejs.org/learn/extensions.
-- Dash --
eggie5 wrote:
> It seems to be working for the most part. This is a big issue, why
> haven't I seen this documented anywhere? Where is it documented?
>
> On Apr 30, 7:19 pm, "Gareth Evans" <[EMAIL PROTECTED]> wrote:
>
>> IE doesn't automatically extend the elements.
>>
>> var filter=document.createElement('li');
>> filter = $(filter)
>> filter.addClassName('filter');
>>
>> should fix your prob.
>>
>> On 5/1/07, eggie5 <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>>> When ever I use any prototype methods from within internet explorer I
>>> get an "Object doesn't support this property or method".
>>>
>>> Does any body know what's going on?
>>>
>>> function SetupListFilters()
>>> {
>>>
>>> Sortable.create("filters-list");
>>>
>>> var filters=$$('ul.use-filters li.use-filter a');
>>>
>>> for(i=0; i<filters.length; i++)
>>> {
>>> Event.observe(filters[i], 'click', function(event)
>>> {
>>> try
>>> {
>>> var e=Event.element(event);
>>>
>>> var filters=$('filters-list');
>>>
>>> var filter=document.createElement('li');
>>> filter.addClassName('filter');
>>> var a=document.createElement('a');
>>> a.appendChild(document.createTextNode(e.innerHTML));
>>> filter.appendChild(a)
>>>
>>> filters.appendChild(filter);
>>>
>>> a.observe('dblclick', RemoveFilter);
>>>
>>> Sortable.create("filters-list");
>>> }
>>> catch(e)
>>> {
>>> alert(e.message);
>>> }
>>> });
>>> }
>>>
>>> }
>>>
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---