Products/Services Website Design DNN Web Hosting Bespoke Software Solutions
Spotlight Business Made Simple Credica Wilson Chauffeur Services Lysander Whitegrove FC Ultramagic Bracklesham Boardriders Johns Motors
DotNetNuke Modules janet.Articles janet.ReferMe! janet.Menu janet.Gallery janet.Guestbook janet.GoogleAds janet.Marquee
DotNetNuke Skins janet.VeniceGrandCanal janet.ParisSkyline janet.ColourBar
Articles HTML Javascript ASP .net DotNetNuke Web Robots
In this article we shall be covering one approach to adding and removing items from a JavaSCRIPT array.
function addItemToList() {destList = window.document.menuList.addList; srcList = window.document.menuList.stockList; var len = destList.length; for(var i = 0; i < srcList.length; i++) { if ((srcList.options[i] != null) && (srcList.options[i].selected)) { var found = false; for(var count = 0; count < len; count++) { if (destList.options[count] != null) { if (srcList.options[i].text == destList.options[count].text) { found = true; break; } } } if (found != true) { destList.options[len] = new Option(srcList.options[i].text); len++; } } } }
Copyright © 2004-2007 Janet Systems Ltd.
DotNetNuke Website design and hosting from £15.00 per month. More...
Looking for a website design company in the Thames Valley, call us on 01628 566178
DotNetNuke ModulesDotNetNuke Skins
from Janet Systems