Hi

An working example:

protected int onBeforeHtmlOutputEvent (CSpVisual visualObject)
        {
                if (visualObject instanceof CSpHref ) 
                 {
                        CSpHref hlink = (CSpHref) visualObject;
                        String defHTML = hlink.getHtmlText();
                        hlink.setHtmlText
(CSpUtil.replaceSubstringAll(defHTML, "<A", "<A
TARGET=\"pgRightFrame\""));
                }
                return (PROCEED_WITH_BUILTIN_HANDLING);
                
        }

----------------------

Good Luck
Mary
[EMAIL PROTECTED]


-----Original Message-----
From: Kaluza, Isabel SLGA [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 27, 1999 5:13 PM
To: 'NetDynamics Developers forum'; 'ND'
Subject: [ND] Using hrRef_onBeforeHtmlOutputEvent(CSpHtmlOutputEvent
event)


Hi
I want to change the following in the href onBeforeHtmlOutput
<a
        href="mailto:[EMAIL PROTECTED]"><font size="2"
        face="Arial Black">[EMAIL PROTECTED]</font></a>

to href="mailto:[EMAIL PROTECTED];[EMAIL PROTECTED]"><font size="2"
        face="Arial Black">all</font></a>

How to I set the value of the href??

-----Original Message-----
From: Aby Mathew [mailto:[EMAIL PROTECTED]]
Sent: Tue, Oct 26, 1999 06:25 PM
To: 'Teplitsky, Alexander'; 'NetDynamics Developers forum'
Subject: Re: [ND] JavaScript for objects inside repeated.


JavaScript 1.1 onwards is case-sensitive. Value is not the same as
value.

Being an extremely 'generous' and 'open-minded' language, it doesn't
complain if you say Value, but goes and creates an object called Value
for
you, which has nothing to do with value.

This could be the reason why TBHours[0].Value etc failed. I don't know
why
it didn't complain in the other instance.

Hope this helps,

Aby

-----Original Message-----
From: Teplitsky, Alexander [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 26, 1999 5:15 PM
To: 'NetDynamics Developers forum'
Subject: [ND] JavaScript for objects inside repeated.


I have 3 textboxes inside repeated:
TBRate, TBHours, TBPay.

In onChange event for TBHours I put something like:
document.forms[0].TBPay.Value = document.forms[0].TBHours.Value *
document.forms[0].TBRate.Value

This gives me no Javascript error, but doesn't perform any calculations.
Putting this in alert() function tells me that
TBHours and TBRate are undefined. When I look in generated Html, each
row
has TBHours and TBRate

I tried using TBHours[0] and TBRate[0] for first row in repeated, but
again
got an "undefined" message.

How do I refer to the values in TBHours and TBRate for each row using
JavaScript ?


Thanks !
________________________________________________________________________
_

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to:
http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]
________________________________________________________________________
_

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to:
http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]
________________________________________________________________________
_

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to:
http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to