TaskLister – My first project on CodeProject
I have submitted my first article for CodeProject.com – Which you can find at http://www.codeproject.com/csharp/TaskLister.asp.
I have submitted my first article for CodeProject.com – Which you can find at http://www.codeproject.com/csharp/TaskLister.asp.
This is same as my previous blog “Dynamic loading of content in a Dropdown box – without Ajax – Part I”, but I have used PHP with MySQL connectiviry for doing this.
< ?_php
require_once "db_common.inc";
db_connect();
$res = mysql_query("select * from category where parent_id=0 and language_id=1");
$i=0;
echo "";
?>
This code demonstrates a depricated way (my words) of dynamically filling dropdown list boxes based on the input value from another dropdown box.
Categories
Sub Categories
var Category = new Array() Category[0] = "FtFesT1"; Category[1] = "teFsT2"; Category[2] = "teFsT3";
var First = new Array() First[0] = "FtFesT1"; First[1] = "teFsT2"; First[2] = "teFsT3"; First[3] = "tFesT4"; First[4] = "tFesT5";
var Second = new Array() Second[0] = "teSsT1"; Second[1] = "teSsT2";
var Third = new Array() Third[0] = "TtesT1"; Third[1] = "TtesT2"; Third[2] = "TtesT3";
// Fill Main Category box
for (i=0;i // ChangeValues()
function ChangeValues() {
var submenu = new Array(); switch (cmbCat1.value) {
case "0": submenu = First;break;
case "1": submenu = Second;break;
case "2": submenu = Third;break;
default:
submenu = First;break;
} // Fill submenu
for (i=0;i }
//Fill fist submenu
ChangeValues();
Here is a sample code which demonstates “How to copy/save text to Clipboard”
Recent Comments