I've sweated through some stuff like this.

The nd4 implementations of buttons and hrefs don't allow much flexiblilty.

I would recommend that you start over again with your ND3 version of the
code, and call back to an ND3 version of the event method, with the
standard single String[] argument and a return of int.  You do have to make
it public, whereas I believe protected worked in ND3.

-- Curt Springer, Team ND (who still looks forward to his 3-day weekend :-)  )

At 01:45 PM 5/28/99 -0400, Brent Claxton wrote:
>I have a page with a textbox.
>
>The page ins the following HTML form tag:
>
><form NAME="pgMain" METHOD="GET"
>ACTION="pgMain.cb_OnWebEvent(cb)">
>
>I modify the HTML generated for the text box with the following code:
>
>CSpTextBox tb = (CSpTextBox) event.getSource();
>tb.setHtmlText (CSpUtil.replaceSubstring (
>       tb.getHtmlText (),
>       ">"," ONCHANGE=\"form.submit()\">"));
>
>In ND3.12 this code was sufficient for a change in the text box to call the
>code of the cb event.
>
>In ND4.13 all I get is:
>
>Software Messages :
>spider.util.CSpMethod.call: Can't find the event 'cb_OnWebEvent' on the Page
>'pgMain'
>
>I have tried changing the event code so it does not take parameters but this
>did not help.  I'm not sure how I would construct the correct CSpWebEvent
>parameter or if this would even help.
>
>Can someone help with this problem?  More generally has there been some
>major change in JavaScript/ND integration?
>
>Thanks in advance,
>
>Brent Claxton
>
>_________________________________________________________________________
>
>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