#facetrow is a surrounding div ( a row of divs).  I'm trying to delete the
individual div of class zip inside of it, as opposed to the other inside
divs as well.

I did discover that the problem appears to be linked to when I reset a the
selected item of a select-option set.

When I change the selected item (back to the null option), it triggers the
click event.

function resetSelection(selection,el){
        $(selection).selectedIndex = 0;
        $('searchkeys').focus();
                    $$(el).addEvent('click',function(event){
                        $$(el).destroy();
                        processDrSearch();
                    } )

}

You can see a test site:
http://rubicon.impactcodebase.com/index.php?option=com_healthcare

If you add a zip from the lower left, that new div at the top can be deleted
in one click.  When you choose from the drop down, it takes two clicks in
Safari.  If I remove the reset of selectedIndex to 0 then it's ok..
I need to find a way to reset selectedIndex without triggering the event.

On Fri, Oct 10, 2008 at 5:02 AM, Tim E <[EMAIL PROTECTED]> wrote:

>
> $$ returns an array.
> $$('#facetrow div.zip')[0].destroy();  would work.
>
> #facetrow is a an object with an ID, so why not use: $
> ('facetrow').destroy() ?
>
> On 9 okt, 22:19, Jan Kassens <[EMAIL PROTECTED]> wrote:
> > the problem is likely not in that snippet, some more code or a demo
> > page would help allot.
> > On Oct 9, 2008, at 21:38, Rich V wrote:
> >
> >
> >
> > > The following works in Firefox, but not in Safari
> >
> > > $$('#facetrow div.zip').destroy();
> >
> > > In Safari, it empties the content of the div on the first click and
> > > deletes it on the second click..
> >
> > > Any ideas?
> >
> > --
> > my blog:http://blog.kassens.net
>



-- 
--
Rich Vázquez

Reply via email to