Created
February 8, 2012 23:01
-
-
Save anonymous/1775221 to your computer and use it in GitHub Desktop.
TheWarden - pastebin.com/3bv12LsW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function selectStoreValues(fromElementID,toElementID) | |
{ | |
var fileToTableObj = document.getElementById('ImportexportFilesSelected'); | |
var fileToTable = fileToTableObj.options[fileToTableObj.selectedIndex].value; | |
var txtSelectedValuesObj = document.getElementById(toElementID); | |
var selectedArray = new Array(); | |
var selObj = document.getElementById(fromElementID); | |
var i; | |
var count = 0; | |
for (i=0; i<selObj.options.length; i++) | |
{ | |
if (selObj.options[i].selected) | |
{ | |
selectedArray[count] = selObj.options[i].value; | |
count++; | |
} | |
} | |
//txtSelectedValuesObj.value = selectedArray; | |
var mikhail = Object.create(null); | |
//Object.defineProperty(mikhail, fileToTable, { value: 'here', writable: true, configurable: true, enumerable: true }); | |
mikhail['name'] = 'mikhail'; | |
mikhail['age'] = 19; | |
mikhail['gender'] = 'male'; | |
mikhail['table'] = fileToTable; | |
mikhail[fileToTable] = selectedArray; | |
alert(mikhail['dma.zip:stb_dma']); | |
alert(mikhail['programs.zip:stb_programs']); | |
//txtSelectedValuesObj.value = mikhail; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment