mmJava - /* REM JavaScript functions for Make/Model...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* REM JavaScript functions for Make/Model selector ("YMM Lite") REM Works on both NetScape (4.0+) and IE (4.0+). REM Look at \source\misc\home.asp for an example of how to use these functions. */ function mmInitialize(parent, make, model, make_caption, model_caption, bnew) { mmInitializeEx(parent, make, model, make_caption, model_caption, bnew, false); } function mmInitializeEx(parent, make, model, make_caption, model_caption, bnew, buse_short_name) { var makeHash = {}; if (bnew == 'true') { for (var i = 0; i < mmMkN.length; i++) { if (mmMkN[i]) { makeHash[RenameModel(mmMkN[i])] = mmMkN[i]; } } } else { for (var i = 0; i < mmMkU.length; i++) { if (mmMkU[i]) { makeHash[RenameModel(mmMkU[i])] = mmMkU[i]; } } } //sort the keys of makeArray var makeNames = []; for (var i in makeHash) { makeNames.push(i); } makeNames.sort(); clearList(parent.mmMakes); addElement(parent.mmMakes, make_caption, 0); //fill dropdown for (var i = 0; i < makeNames.length; i++) { addElement(parent.mmMakes, makeNames[i], makeHash[makeNames[i]]) } if (make) { setDefaultByText(parent.mmMakes, make); if (model_caption != "none") mmChangeMakeEx(parent, bnew, model_caption, buse_short_name);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

mmJava - /* REM JavaScript functions for Make/Model...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online