[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [CF-Scripting] parentElement()



Bloody hell, must be the first post on this list.

My JS skills have become a bit rusty now, but I'll go and figure it out for
ya :-) 

> -----Original Message-----
> From: scripting-bounces@list.cfdeveloper.co.uk 
> [mailto:scripting-bounces@list.cfdeveloper.co.uk] On Behalf 
> Of Stephen Moretti (cfmaster)
> Sent: 11 November 2004 16:39
> To: Javascript, CSS, XML, DHTML
> Subject: Re: [CF-Scripting] parentElement()
> 
> >- see footer for list info
> Tom Smith wrote:
> 
> >Probably not the right list for this... 
> >
> This is the right place...
> 
> >but does anyone know if there's a way to change a 
> parentElement in JS?
> >
> >I have some code that works on the selected range 
> (createRange())...  I 
> >can get the parentElement() from this, but I want to change the 
> >parentElemenet (a table cell - TD) to a table header (TH)
> >
> >Any help would be very useful right now!
> >  
> >
> Well parentElephant is a readonly property, so I would guess 
> you would have to insert a new TH element at the same level 
> as your parent and then move the child element into the new 
> element and delete the old parent.
> 
> Couldn't you just change the style?
> 
> --
> Registration for MX Europe 2005 is now open. 
> http://www.mxeurope.org/go/registration
> 
> Early bird discounts available.
> 
> 
> _______________________________________________
> 
> For details on ALL mailing lists and for joining or leaving 
> lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo
> 
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- Support and list management provided by Russ Michaels -<
>