Re: [OT] Javascript help
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69080
interpreted = N
texte = Mark Derrick wrote:> Javascript isn't a place I normally live - and I'm struggling to adapt > this sample script to suit my needs.> > This is from LivePerson.com - and the script checks whether there's an > operator logged in, if there is it should show one code sample, and if > not it should show another.> > > > I need to be able to use the "operator online/offline" sections to > include HTML/WebDNA coding - but am lost as to the best way to achieve > this.> > Any help gratefully received.> > Thanks.> > Mark.Mark, you can't "include" serverside stuff in a client side language. Theway to get around that is to set an array of all the possible results if youare doing an if/then on the client side. This way, you can grab from the arraybased on the result of the if/then.Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 835-2476 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Mark Derrick wrote:> Javascript isn't a place I normally live - and I'm struggling to adapt > this sample script to suit my needs.> > This is from LivePerson.com - and the script checks whether there's an > operator logged in, if there is it should show one code sample, and if > not it should show another.> > > > I need to be able to use the "operator online/offline" sections to > include HTML/WebDNA coding - but am lost as to the best way to achieve > this.> > Any help gratefully received.> > Thanks.> > Mark.Mark, you can't "include" serverside stuff in a client side language. Theway to get around that is to set an array of all the possible results if youare doing an if/then on the client side. This way, you can grab from the arraybased on the result of the if/then.Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 835-2476 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Donovan Brooke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
problem with NT beta (1997)
search form problem.. (1997)
Cookies and WebCat?? (1999)
webcat- multiple selection in input field (1997)
Running a store on BOTH http and https (1998)
RE: Symantec VIsual Page 1.0.3 (1997)
Symantec VIsual Page 1.0.3 (1997)
Can you do this??? and other stuff (1997)
[WebDNA] [BULK] Console / WebDNA no connection to module (2011)
[WebDNA] Receive JSON POST (2019)
select multiple (1997)
multiple price line in formula.db (2004)
Country & Ship-to address & other fields ? (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Separate SSL Server (1997)
$Append for Users outside the ADMIN group (1997)
Sorting by date (1997)
[SearchString] usage (1997)
CommandSecurity? (1997)
File Upload (1997)