Kangry.com [insert cool graphic here]
home | Topics | Logout | Search | Contact | ?? Kangry ?? | Bandwitdh
Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor

Name

Password

New user

uploaded files
(DVRSETUP1)-> (Parent)->javascript add selection box submited by Russell Fri 08 Jun 12
Web kangry.com
This is totaly a hack, but this method works
<script>
function add_option(x,option)
{ // from http://www.w3schools.com/jsref/met_select_add.asp
try
  {
  // for IE earlier than version 8
  x.add(option,x.options[null]);
  }
catch (e)
  {  
  x.add(option,null);
  }
};

var temp = document.getElementById('id_of_element_to_add_after');



          var newselect = document.createElement("select");

          newselect.setAttribute("id",'newselect');
          newselect.setAttribute("name",'newselect');
          newselect.setAttribute("onchange",'update_party(this.value)');

// this line creates the selection box.       
temp.parentNode.insertBefore(newselect,temp.nextSibling);

// add each option as required;
var option=document.createElement("option");
option.text="1";
option.value="1";
add_option(newselect,option);
var option=document.createElement("option");
option.text="2";
option.value="2";
add_option(newselect,option);
var option=document.createElement("option");
option.text="3";
option.value="3";
add_option(newselect,option);
var option=document.createElement("option");
option.text="4";
option.value="4";
add_option(newselect,option);
var option=document.createElement("option");
option.text="5";
option.value="5";
add_option(newselect,option);
var option=document.createElement("option");
option.text="6";
option.value="6";
add_option(newselect,option);
var option=document.createElement("option");
option.text="7";
option.value="7";
add_option(newselect,option);
var option=document.createElement("option");
option.text="8";
option.value="8";
add_option(newselect,option);
var option=document.createElement("option");

</script>



Add comment or question...:
Subject:
Submited by: NOT email address. Leave blank for anonymous    (Spam Policy)

Enter Text: (text must match image for posting)




This file (the script that presented the data, not the data itself) , last modified Wednesday 03rd of December 2014 09:40:39 AM
your client: CCBot/2.0 (http://commoncrawl.org/faq/)
current time: Sunday 22nd of October 2017 07:48:14 AM