Click here to Skip to main content
15,920,801 members
Home / Discussions / Web Development
   

Web Development

 
QuestionFooter at bottom Pin
eggsovereasy27-Sep-06 7:31
eggsovereasy27-Sep-06 7:31 
AnswerRe: Footer at bottom Pin
UltraCoder9-Oct-06 17:50
UltraCoder9-Oct-06 17:50 
QuestionLive video Pin
nida baber27-Sep-06 6:17
nida baber27-Sep-06 6:17 
AnswerRe: Live video Pin
zhengdong jin28-Sep-06 23:58
zhengdong jin28-Sep-06 23:58 
GeneralRe: Live video Pin
nida baber29-Sep-06 2:35
nida baber29-Sep-06 2:35 
GeneralRe: Live video Pin
zhengdong jin29-Sep-06 18:03
zhengdong jin29-Sep-06 18:03 
QuestionCreating multiple input fields using javascript Pin
wallyson27-Sep-06 4:25
wallyson27-Sep-06 4:25 
AnswerRe: Creating multiple input fields using javascript Pin
10011000100101101000027-Sep-06 7:58
10011000100101101000027-Sep-06 7:58 
<html>
<head>

<script>
var d=document;
var fldArray=new Array();
var IDcount=0;


function Field(){
this.fldID=0;
this.fldObj=0;
this.isAppended=0;
//Methods
this.CreateField=GCreateField;
this.AppendField=GAppendField;

}

function GCreateField(){
var newFld=d.createElement("DIV");
newFld.id="announcements"+IDcount;
IDcount++;
newFld.className="cFld";
newFld.innerHTML="<input type=\"text\" value=\"URL\"><br>"+"<input type=\"text\" value=\"Headline\"><br>";
this.fldID=newFld.id;
this.fldObj=newFld;
}

function GAppendField(parentID){
if(!this.isAppended){
var parentObj=d.getElementById(parentID);
parentObj.appendChild(this.fldObj);
this.isAppended=1;
}
}


function GAddField(){
var newFld=new Field();
fldArray.push(newFld);
window.defaultStatus=fldArray.length;
}

function GShowField(index){
if(fldArray[index]!=undefined){
fldArray[index].CreateField();
fldArray[index].AppendField("results");
}
}

</script>

<style>
.cFld {
}

</style>
</head>
<body>

Content:<br>
<div id="results"></div>

<input type="button" value="+" onClick="GAddField()"><br>
<input type="button" value="-">

<input type="button" value="Show 0" onClick="GShowField(parseInt(d.getElementById('fldInd').value))">
<input type="text" value="index to show" id="fldInd">
<!-- If the Status shows 5 the last index is 4.
</body
</html>

I hope this helps.
GeneralRe: Creating multiple input fields using javascript Pin
wallyson28-Sep-06 4:27
wallyson28-Sep-06 4:27 
AnswerRe: Creating multiple input fields using javascript Pin
10011000100101101000028-Sep-06 8:18
10011000100101101000028-Sep-06 8:18 
GeneralRe: Creating multiple input fields using javascript Pin
wallyson28-Sep-06 8:27
wallyson28-Sep-06 8:27 
QuestionCan a normal user admin IIS Pin
Dinuj Nath26-Sep-06 22:51
Dinuj Nath26-Sep-06 22:51 
QuestionMouse cursor setting for elements. Pin
Brady Kelly26-Sep-06 22:49
Brady Kelly26-Sep-06 22:49 
AnswerRe: Mouse cursor setting for elements. Pin
Kschuler27-Sep-06 8:51
Kschuler27-Sep-06 8:51 
Questionupdate or modify Pin
scorp_scorp26-Sep-06 21:54
scorp_scorp26-Sep-06 21:54 
AnswerRe: update or modify Pin
_AK_26-Sep-06 23:09
_AK_26-Sep-06 23:09 
GeneralRe: update or modify Pin
scorp_scorp26-Sep-06 23:50
scorp_scorp26-Sep-06 23:50 
GeneralRe: update or modify Pin
_AK_27-Sep-06 0:02
_AK_27-Sep-06 0:02 
GeneralRe: update or modify Pin
scorp_scorp27-Sep-06 0:29
scorp_scorp27-Sep-06 0:29 
GeneralRe: update or modify Pin
_AK_27-Sep-06 1:32
_AK_27-Sep-06 1:32 
QuestionAsp:Label control Pin
nannapanenikamalnath26-Sep-06 19:10
nannapanenikamalnath26-Sep-06 19:10 
QuestionSimple Regular Expression? [modified] Pin
neo_605326-Sep-06 18:00
neo_605326-Sep-06 18:00 
AnswerRe: Simple Regular Expression? Pin
_AK_26-Sep-06 23:11
_AK_26-Sep-06 23:11 
GeneralRe: Simple Regular Expression? Pin
neo_605327-Sep-06 0:02
neo_605327-Sep-06 0:02 
GeneralRe: Simple Regular Expression? Pin
_AK_27-Sep-06 0:06
_AK_27-Sep-06 0:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.