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

RE: [CF-Scripting] parentElement()



What happened to the formatting?

<tidyup>
//obj is your reference to the parentElement
objOldcontent = obj.innerHTML; 
objNewcontent = "<TH>"+objOldcontent+"</TH>"; 
obj.outerHTML = objNewcontent;
</tidyup>

> -----Original Message-----
> From: scripting-bounces@list.cfdeveloper.co.uk 
> [mailto:scripting-bounces@list.cfdeveloper.co.uk] On Behalf 
> Of Russ Michaels (Snake)
> Sent: 11 November 2004 17:54
> To: 'Javascript, CSS, XML, DHTML'
> 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 -<
>