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

Web Development

 
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 
GeneralRe: Creating multiple input fields using javascript Pin
wallyson28-Sep-06 4:27
wallyson28-Sep-06 4:27 
Hey thanks for that script, I do appologize I have not used it, I sort of already created my own, using DOM as well.

here is what I have:
<code>
<html>
<script>
var annouceInputs = 1;
//////////////////////////
//Creates new announcement
//////////////////////////
function addAnnounce()
{

var table = document.getElementById('annoucementData');
var tr = document.createElement('TR');
var td2 = document.createElement('TD');
var td3 = document.createElement('TD');
var inp1 = document.createElement('INPUT'); //url for announcement
var inp2 = document.createElement('INPUT'); //headline for announcement
var breaks= document.createElement('br');
var inp3 = document.createElement('INPUT'); // delete "-" button
var p1 = document.createElement('p');
var p2 = document.createElement('p');
var inp4 = document.createElement('INPUT');
var break2 = document.createElement('br');
if(annouceInputs>0)
{
var img = document.createElement('IMG');
inp3.setAttribute('type', 'button');
inp3.setAttribute('value', '-');
inp4.setAttribute('type', 'button');
inp4.setAttribute('value', '+');
p1.className='delete';
inp1.className= 'delete';
inp2.className= 'delete';

td3.appendChild(inp4);
td3.appendChild(break2);
inp3.onclick = function()
{
removeElement(tr);
}
inp4.onclick = function()
{
addAnnounce();
}

td3.appendChild(inp3);
}
inp1.setAttribute("name", "announceUrl"+annouceInputs);
inp1.setAttribute("value", "URL"+annouceInputs);
inp2.setAttribute("Name", "annouceHeadline"+annouceInputs);
inp2.setAttribute("value", "Headline"+annouceInputs);
table.appendChild(tr);

td2.style.paddingLeft = "50px";
tr.appendChild(td2);
tr.appendChild(td3);
td2.appendChild(inp1);
td2.appendChild(breaks);
td2.appendChild(inp2);


annouceInputs++;
}
//////////////////////////////
//Removes the new Child element
//////////////////////////////
function removeElement(tr)
{
tr.parentNode.removeChild(tr);
}
</script>

<body onload="addAnnounce();" >


<br /><br />
<FORM NAME="myform" ACTION="#" METHOD="GET">
<table>

<tr>
<th><p>Email Generator</p></th>
</tr>
<tr>
<td style="padding-left: 50px;">
<input class="delete" type="text" name="date" value="Date">
</td>
</tr>
<tr>
<th align="left"><p>Announcements</p></th>

<td valign="top">
<input type="button" value="+" onClick="addAnnounce();">
</td>
</tr>
<tr>
<tbody id="annoucementData" valign="top" border="1">
</tbody>
</tr>
</table>
</FORM>
</body>
</html>
</code>
Now you can put that into a temp page and see waht it actually does.
The problem that I am Having now, is that I dont know how to collect the data if
someone were to actually fill out the input boxes. (lets say they fill out 4 sets)

How do I collect the data?
Please help, and thanks
Wally
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 
GeneralRe: Simple Regular Expression? Pin
neo_605328-Sep-06 15:48
neo_605328-Sep-06 15:48 

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.