[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [CF-Scripting] parentElement()
- To: "Javascript, CSS, XML, DHTML" <scripting@list.cfdeveloper.co.uk>
- Subject: Re: [CF-Scripting] parentElement()
- From: "Tom Smith" <tomo_smith@yahoo.co.uk>
- Date: Thu, 11 Nov 2004 17:35:39 -0000
- List-archive: <http://list.cfdeveloper.co.uk/pipermail/scripting>
- List-help: <mailto:scripting-request@list.cfdeveloper.co.uk?subject=help>
- List-id: Javascript, CSS, XML, DHTML <scripting.list.cfdeveloper.co.uk>
- List-post: <mailto:scripting@list.cfdeveloper.co.uk>
- List-subscribe: <http://list.cfdeveloper.co.uk/mailman/listinfo/scripting>, <mailto:scripting-request@list.cfdeveloper.co.uk?subject=subscribe>
- List-unsubscribe: <http://list.cfdeveloper.co.uk/mailman/listinfo/scripting>, <mailto:scripting-request@list.cfdeveloper.co.uk?subject=unsubscribe>
- References: <00f201c4c80b$8ad55a10$4200a8c0@herb.londonweb.net> <41939597.30000@cfmaster.co.uk>
- Reply-to: "Javascript, CSS, XML, DHTML" <scripting@list.cfdeveloper.co.uk>
Thanks for the heads up... this was the way I was looking... but unfortunately the code I have is a really mishmash of different levels of DOM and DHTML... which is a bitch ... f*cking WYSIWYG editors.
I would use styles, but that's no good if it's got to be accessible ;(
OH for 1995 pre tables.
----- Original Message -----
From: Stephen Moretti (cfmaster)
To: Javascript, CSS, XML, DHTML
Sent: Thursday, November 11, 2004 4:38 PM
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 -<