RE: CForms: Inserting Text Into HTMLArea

2006-05-29 Thread Stewart, Gary


> Reijn wrote: 
>
> Hi Gary,
> 
> just to be sure. Reading your email you have a javascript 
> that adds text to the HTMLArea object?
> HTMLArea puts the text back to the textarea on the onUnload 
> event. Are you sure it get's saved back to the textarea?

Ah, I think this helps. I want to use another widget on the CForm to add text 
to an HTMLArea "Widget" (a widget that then uses the HTML type for its 
display). Getting that widget's value returns null but that is probably because 
that's the text (which hasn't been assigned) and not the actual HTMLArea object 
which will populate that value on the onUnload event. I'm still not sure how I 
can actually call functions on the HTMLArea object though.

Thanks,

Gary

*
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only. If you 
have received this message in error or there are any problems 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CForms: Inserting Text Into HTMLArea

2006-05-29 Thread Jeroen Reijn

Hi Gary,

just to be sure. Reading your email you have a javascript that adds text to the 
HTMLArea object?
HTMLArea puts the text back to the textarea on the onUnload event. Are you sure 
it get's saved back to the textarea?

Reijn





Stewart, Gary wrote:

I'm using the HTMLArea component of CForms (though I did upgrade it to Xinha 
but most of the calls seem the same). I've got a javascript in my CForms 
definition file that attempts to add text to that component. However I've had 
difficulty accessing the object. I did a cocoon log output on the lookup and 
that returns null. Is there a way to access the HTML component from the 
definition?

I tried something like:

var cc = event.source.parent.lookupWidget("cctext").getValue();
cocoon.log.info("Lets check out the object: " + cc);

but that returns null (after entering text to try and check that the object was 
created.

Thanks,

Gary

*
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only. If you 
have received this message in error or there are any problems 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.

*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CForms: Inserting Text Into HTMLArea

2006-05-26 Thread Stewart, Gary
I'm using the HTMLArea component of CForms (though I did upgrade it to Xinha 
but most of the calls seem the same). I've got a javascript in my CForms 
definition file that attempts to add text to that component. However I've had 
difficulty accessing the object. I did a cocoon log output on the lookup and 
that returns null. Is there a way to access the HTML component from the 
definition?

I tried something like:

var cc = event.source.parent.lookupWidget("cctext").getValue();
cocoon.log.info("Lets check out the object: " + cc);

but that returns null (after entering text to try and check that the object was 
created.

Thanks,

Gary

*
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only. If you 
have received this message in error or there are any problems 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]