Thank you so much Aby. It works nicely.
Cho Cho.
Aby Mathew <[EMAIL PROTECTED]> wrote:
>You can have a hidden field say hdSubmitFlag in the page whose value is
>defaulted to "N". Your javascript can set this field to "Y" and call
>submit(). this_onBeforeLoad() of the page you can check the value of this
>field to distinguish between first-time request for the page and a submit.
>(Your button_onWebEvent() code would go here)
>
>You can't rely on getDisplayFieldValue("hdSubmitFlag") since it will carry
>"session-bled value" on first-time invocation of the page. getWebVar() with
>check for null should work.
>
>Aby
>TeamND
>
>> -----Original Message-----
>> From: Cho Cho Aung [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, February 14, 2000 4:50 PM
>> To: [EMAIL PROTECTED]
>> Subject: [ND] From Javascript button loading ND page and calling
>> CSpider.putUserSessionObject
>>
>>
>>
>> I have an ND HTML page with Javascript embedded in it.
>> Basically the page displays the product tree structure
>> dynamically just like the file explorer.
>> When the page is first loaded it dislays
>> the root with a button (type button) and the name of the
>> product. When the button
>> is clicked the next level of products in the hierarchy
>> is displayed(one product per
>> row). This time on each row , together with the name
>> of the product, there are two
>> buttons of type 'button', one to expand/collapse the
>> tree further and another to
>> load the ND page that displays the details of the
>> product being clicked. These are
>> all done in Javascrpt & I'm creating the html of the
>> tree dynamically.
>> My problem is I want the button that loads the ND page also
>> to set user session values
>> using CSpider.putUserSessionObject()as well as loading
>> the ND detail page (this detail
>> page will retrieve the data of the selected product
>> from the database and display
>> them).
>> To do that at the moment I have a NetDynamics button on the
>> page. When the javascript
>> button in the product tree is clicked it invokes the
>> click event of this NetDynamics
>> button. This ND button will then load the next ND
>> page and set user session variables.
>> I have codes under the onWebEvent of the ND button
>> that does it.
>>
>> Everything works nicely except that this ND button is visible
>> all the time.
>>
>> Is there a way to hide it from display or should I be doing
>> it differently altogether?
>>
>> Cho Cho Aung
>>
>> ______________________________________________________________
>> ___________
>> To unsubscribe from this mailing list please send an email to:
>> [EMAIL PROTECTED]
>> Please remember to use the same email address you subscribed with.
>>
>> 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]
>>
_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.
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]