Re: [OT] JS snippet needed

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66923
interpreted = N
texte = ** Correction ** devaulw@onebox.com wrote: > Can you post what you ended up using? > > Bill Sure.... this uses an "ID=" param for the element called det_pic. ----START Script (need to fill in WebDNA voids)---- [!] ** Format the array with WebDNA search stuff ** [/!] var array2Data = new Array(); // [!]** excluding all the webdna stuff to find the values for the array ** [/!] // [text]count=0[/text] // [founditems] array2Data[[count]]= '[COLNAME]|[BIG_IMAGE]|'; // [text]count=[math][count]+1[/math][/text] // [/founditems] [!] ** Sample results from above array2Data[0]= 'RED|somepic.jpg|'; array2Data[1]= 'BLUE|somepic1.jpg|'; array2Data[2]= 'GREEN|somepic2.jpg|'; [/!] [!] ** Updates the detail image up change of the color select menu ** [/!] function UpdateImage(val,ary,id){ var imgobj=document.getElementById(id); for (var zxc0=0;zxc0 <- Custom Paint, Labels, and Specialty Signage. -> <- Home and Business Embellishment/Fabrication, -> <- Glass Blowing, and Art Glass -> PH/FAX:> 1 (608) 835-2476 Web:> http://www.egg.bz | http://www.euca.us =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] JS snippet needed ( Donovan Brooke 2006)
  2. Re: [OT] JS snippet needed ( Donovan Brooke 2006)
  3. Re: [OT] JS snippet needed ( devaulw@onebox.com 2006)
  4. Re: [OT] JS snippet needed ( Donovan Brooke 2006)
  5. Re: [OT] JS snippet needed ( Marc Thompson 2006)
  6. Re: [OT] JS snippet needed ( Donovan Brooke 2006)
  7. Re: [OT] JS snippet needed ( Donovan Brooke 2006)
  8. Re: [OT] JS snippet needed ( "Bess Ho" 2006)
  9. Re: [OT] JS snippet needed ( Donovan Brooke 2006)
  10. Re: [OT] JS snippet needed ( Marc Thompson 2006)
  11. Re: [OT] JS snippet needed ( Marc Thompson 2006)
  12. Re: [OT] JS snippet needed ( "Dan Strong" 2006)
  13. [OT] JS snippet needed ( Donovan Brooke 2006)
** Correction ** devaulw@onebox.com wrote: > Can you post what you ended up using? > > Bill Sure.... this uses an "ID=" param for the element called det_pic. ----START Script (need to fill in WebDNA voids)---- [!] ** Format the array with WebDNA search stuff ** [/!] var array2Data = new Array(); // [!]** excluding all the webdna stuff to find the values for the array ** [/!] // [text]count=0[/text] // [founditems] array2Data[[count]]= '[COLNAME]|[BIG_IMAGE]|'; // [text]count=[math][count]+1[/math][/text] // [/founditems] [!] ** Sample results from above array2Data[0]= 'RED|somepic.jpg|'; array2Data[1]= 'BLUE|somepic1.jpg|'; array2Data[2]= 'GREEN|somepic2.jpg|'; [/!] [!] ** Updates the detail image up change of the color select menu ** [/!] function UpdateImage(val,ary,id){ var imgobj=document.getElementById(id); for (var zxc0=0;zxc0 <- Custom Paint, Labels, and Specialty Signage. -> <- Home and Business Embellishment/Fabrication, -> <- Glass Blowing, and Art Glass -> PH/FAX:> 1 (608) 835-2476 Web:> http://www.egg.bz | http://www.euca.us =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:

Navigator 4.0 & tables (1997) Generating unique SKU from [cart] (1997) corrupted images (2002) [WebDNA] divisible by 1 (2011) PSC recommends what date format yr 2000??? (1997) WCS Newbie question (1997) [WebDNA] WebDNA code validator (2011) WebCat2b12--[searchstring] bug (1997) Order not created error (never mind) (1997) SFTP and shell (2005) Encrypted links ... (2000) Using [Showif] tag. Mac (1997) Re:listfiles-looking for slick solution (1997) Bug? (1997) WebCatalog Plugin: Getting Data Canceled (2000) suffix mapping for NT? (1997) A Global Variable (1997) ShipCost and TaxRate problems (1998) Statistics... (2004) Cancel Subscription (1996)