[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: "Russ Michaels \(Snake\)" <snake.lists@snakepit.net>
- Date: Fri, 12 Nov 2004 12:11:03 -0000
- In-reply-to: <04e201c4c89b$3b811d60$4200a8c0@herb.londonweb.net>
- 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>
- Reply-to: "Javascript, CSS, XML, DHTML" <scripting@list.cfdeveloper.co.uk>
- Thread-index: AcTImsR5LDT7XeOQQgG5j7gYQ8PbyQAFZBOA
I don't get any error, but after trying new content between the tags,
nothing appears, so I guess it doesn't work.
Perhaps outerHTML has been depreciated or something, because ethis code
SHOULD work.
In what way are you trying to achieve this, did I see you say your using a
WYSIWYG editor? Or are you just dynamically modifying an HTML page.
> -----Original Message-----
> From: scripting-bounces@list.cfdeveloper.co.uk
> [mailto:scripting-bounces@list.cfdeveloper.co.uk] On Behalf
> Of Tom Smith
> Sent: 12 November 2004 09:36
> To: Javascript, CSS, XML, DHTML
> Subject: Re: [CF-Scripting] parentElement()
>
> >- see footer for list info
> have you tested this?? :( I've already been there, and it's
> throwing some really nice undecipherable errors...
> ----- Original Message -----
> From: Russ Michaels (Snake)
> To: 'Javascript, CSS, XML, DHTML'
> Sent: Thursday, November 11, 2004 5:53 PM
> Subject: RE: [CF-Scripting] parentElement()
>
>
> >- see footer for list info
> Right I think this should do what you want.
>
> //obj is your reference to the parentElement
> objOldcontent = obj.innerHTML;
> objNewcontent = "<TH>"+objOldcontent+"</TH>";
> obj.outerHTML = objNewcontent;
>
> It will copy the content of the <TD> and replace it with a <TH>
>
>
> Russ
>
>
> _______________________________________________
>
> 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 -<
> _______________________________________________
>
> 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 -<
>