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

RE: [CF-Scripting] parentElement()



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 -<
>