I am very new user of ND. I am trying to understand some codes written by ND5.

In a ND page, there are one HREF and Hidden tag. When user click the href, the ND page 
open a new browser with an information in Hidden tag.
The Hidden tag has URL address, so HREF can open the new browser. 
The paroblem that I am in is "How  the HREF to know the Hidden tag", because I 
couldn't find anything that can explain the link.


The code is that 

this_onBeforeDisplayEvent
{
   :
webSite = "URL Address"
   :     
 }


hrTest_onBeforeHtmlOutputEvent
{
   :
CSpHref test = (CSpHref) getDisplayField("hrTest");       
       test .setHtmlText ( 
       CSpUtil.replaceSubstring ( 
                    hr.getHtmlText (), 
                    "SRC=", 
                    "width=\"62\" height=\"64\" border=\"0\" alt=\"This is Web site\" 
SRC=")); 
                return (PROCEED);
}


hfTest_onBeforeDisplayEvent
{
CSpHidden csh = (CSpHidden) getDisplayField("hfTest");                             
        csh.setValue(new CSpString(webSite));
        return (PROCEED);
}


hrTest_onWebEvent
{
        int command = PROCEED;
        command = doAction(event);
        return(command);
}


Please send me any information for this question.

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]

Reply via email to