Re: [OT] JS snippet needed

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66922
interpreted = N
texte = 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)
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:

WCS Newbie question (1997) [WriteFile] problems (1997) [WebDNA] Server 8 license question (2015) [delete] problem (1997) taxRate and grandTotal calculation is not showing up on my ThankYou.tpl (2000) Running _every_ page through WebCat ? (1997) DHTML Tag Feature (2000) Trouble with formula.db (1997) Real Audio files (1997) A question on sub-categories (1997) [WebDNA] WebDNA on Windows 7 & IIS7.5 (2011) PCS Frames (1997) [Sum] function? (1997) How do I pass [cart] when user clicks back (2000) Hello??? (1997) [WebDNA] showif/sendmail question (2008) Search all Fields in a db (1997) Help name our technology! (1997) DNA Bandwidth Monitor (2005) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)