Hi,
I think you misunderstand what is 'static' in a 'static text field'.

You can present completely different content, including references to
different graphics files back on the server, each time a static text field
sends html as its part of the page's html.

The 'static' aspect of it is that normally the html is not that of a form
field, it's just plain text, same as a hard-coded text (including any
references to graphics or links) in your page's .html file.  So the user
can't change it or send it back when s/he presses the submit button.

Some of us are using 'static text fields' to produce html that is not
static at all.  If you have a declared static text box on your page,
and you force its html to be (for example) <INPUT TYPE=SUBMIT
NAME="Enter_onWebEvent(Enter)" VALUE="Enter">, then your 'static text
field' will actually display as a button that calls back to a page event
method.

-- Curt Springer, Team ND


At 02:54 PM 4/26/99 -0600, VASWANI,ANISHA (HP-SanJose,ex1) wrote:
>Hi Curt,
>
>Thanks for the information - The user requirement is to show different
>graphics for different groups of customers which is why I didn't take the
>static text field approach. 
>
>I guess I'll just stick to using setHtmlTemplate on the page's onBeforeLoad
>event.
>
>Regards,
>Anisha
>
>
>-----Original Message-----
>From: Curt Springer [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 26, 1999 12:13 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [ND] Dynamically changing graphics on a page
>
>
>I recall somebody saying that spider include stuff was not variable at
>runtime.
>
>Is there any reason you couldn't have a static text field, and then in its
>onBeforeHtmlOutput event, cram in what ever you need?
>
>-- Curt Springer, Team ND
>
>
>At 12:08 PM 4/26/99 -0600, VASWANI,ANISHA (HP-SanJose,ex1) wrote:
>>Hi Everyone,
>>
>>I need to change a page's banners depending on a user session object. 
>>
>>I know I can do this by creating different html templates and calling the
>>.setHtmlTemplate method in CSpPage. I was wondering if there was an
>>easier/more efficient way of doing this using SPIDERINCLUDES. Could I
>>dynamically change the value of the SPIDERINCLUDE based on a user session
>>object? If yes, how?
>>
>>Thanks in advance,
>>Anisha
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~  Anisha Vaswani - IT Engineer Consultant @ Hewlett-Packard Company  ~
>>~          Components Group IT - WW Sales & Marketing Systems         ~
>>~   Email: [EMAIL PROTECTED] | Vmail: (408) 970-2242              ~
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 
>>_________________________________________________________________________
>>
>>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