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:

Searching multiple Databases (1997) Using Currencies other than Dollars (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) [returnraw] and form variables (1998) Calculating days, hours, minutes ago (2004) Updating Prices db (still not working) (1999) RE: Ongoing group search problems ... (1997) Thanks for tips, more quest (1997) Nesting format tags (1997) Using Plug-In while running 1.6.1 (1997) [WebDNA] WebSite Examples (2008) [WebDNA] Conditional search (2009) ConvertWords (2001) Database of Tax Rates? (1997) RE: type 2 errors with ssl server (1997) Webcatalog/Butler (1998) Frames and [cart] (1998) WebCat2 several catalogs? (1997) Archives (2001) Yet another db manager (2004)