does $(id).select('span [class~=uploadingmessage]')[0] return an(extended)/ element correctly ?
----- Original Message ----- From: "Lavanya Shastri" <lavanyashas...@gmail.com> To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com> Sent: Wednesday, July 01, 2009 8:11 AM Subject: [Proto-Scripty] Re: hide() not working for me on IE > > It works if you do this: > > function hideElement(id){ > $(id).style.display='none'; > } > > > function fileUploaded(id, filename) { > var uploadingMessage = $(id).select('span > [class~=uploadingmessage]')[0] >> >> ; >> uploadingMessage.hide(); >> >> var a = new Element('a', { >> ''href' : "javascript:hideElement('" + id + >> "');" >> false;" >> }).update("(alpha)"); >> >> } > > > On Mon, Jun 29, 2009 at 12:28 PM, ls86 <lavanyashas...@gmail.com> wrote: >> >> Hi, >> >> I am new to Prototype and here is a code snippet that works perfectly >> on firefox but doesnt work on IE for some reason.If anyone knows whats >> wrong here or can help me out in any way I'd really appreciate it. >> >> function fileUploaded(id, filename) { >> var uploadingMessage = $(id).select('span >> [class~=uploadingmessage]')[0]; >> uploadingMessage.hide(); >> >> var a = new Element('a', { >> 'href' : "#alpha", >> onclick : "$('" + id + "').hide();return >> false;" >> }).update("(alpha)"); >> >> } >> >> Thanks, >> LS > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---