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. The way to get around that is to set an array of all the possible results if you are doing an if/then on the client side. This way, you can grab from the array based 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:

    
  1. Re: [OT] Javascript help ( Mark Derrick 2007)
  2. Re: [OT] Javascript help ( Donovan Brooke 2007)
  3. Re: [OT] Javascript help ( Matthew Bohne 2007)
  4. Re: [OT] Javascript help ( Donovan Brooke 2007)
  5. [OT] Javascript help ( Mark Derrick 2007)
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. The way to get around that is to set an array of all the possible results if you are doing an if/then on the client side. This way, you can grab from the array based 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:

ShipCost Data Base (1998) WebCat2b13MacPlugIn - [include] (1997) Re:ListFields and [name] (1997) Almost a there but..bye bye NetCloak (1997) User Defined Sorting (1997) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) Explorer 3.0/ Access Denied! (1997) Bug Report, maybe (1997) PSC recommends what date format yr 2000??? (1997) Is there an alternative to emailer? (1999) Delete Context - to remove record (1998) PCS Frames (1997) b12 cannot limit records returned and more. (1997) Tech support (2000) Access to shopping cart files (2005) Who is John Jakovich? (1999) WebCat2: Items xx to xx shown, etc. (1997) OT: Version Control (2007) problems with WebCat-Plugin () Add to a field (1998)