> I have a method that checks to see if the textbox should be > displayed and returns > PROCEED or SKIP accordingly in the textboxes > onBeforeDisplayEvent. What does this method do? Is it re-entrant, meaning does it give the same result every time? If you set an instance variable in this_onBeforeDisplay() and refer to that instance variable inside textbox_onBeforeDisplay(), I can't think of any reason why it would fail for the subsequent rows. > Second, I have some JavaScript which is submitting my form. > How can I specify a > java method to execute when the form is submitted. I have > tried passing a string > parameter back with the submit method but that didn't work. You can set a hidden field value before submitting with JavaScript and in this_onBeforeLoad()look for the value of this field and call your method. Aby TeamND > -----Original Message----- > From: Mick Davis [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 13, 2000 7:38 AM > To: [EMAIL PROTECTED] > Subject: [ND] Hiding textboxes in repeated and submitting form in > JavaScript > > > > I have a couple of situations that I'm hoping somebody can > help with. First I have a > repeated that has multiple rows of text boxes. There is a > button that when clicked > should toggle the display (display or not display) of several > columns in the table. > I have a method that checks to see if the textbox should be > displayed and returns > PROCEED or SKIP accordingly in the textboxes > onBeforeDisplayEvent. The problem > is that this is working only for the first row in the > repeated. I've tried putting code in > the onBeforeDisplay of the repeated and checking to see if > the object being displayed > is the textbox but that didn't seem to work. Does anybody > have an example of how to > do this? > > Second, I have some JavaScript which is submitting my form. > How can I specify a > java method to execute when the form is submitted. I have > tried passing a string > parameter back with the submit method but that didn't work. > > Please help. > > Thanks in advance. > > Mick Davis > ______________________________________________________________ > ___________ > > 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]
