Click here to Skip to main content
15,886,816 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: HTML Frameset Pin
Smart_Boy16-Mar-07 1:27
Smart_Boy16-Mar-07 1:27 
QuestionShow desktop by clicking icon in a web application Pin
Robin Chaudhary15-Mar-07 20:32
Robin Chaudhary15-Mar-07 20:32 
AnswerRe: Show desktop by clicking icon in a web application Pin
Bradml15-Mar-07 23:56
Bradml15-Mar-07 23:56 
AnswerRe: Show desktop by clicking icon in a web application Pin
Vasudevan Deepak Kumar22-Mar-07 6:23
Vasudevan Deepak Kumar22-Mar-07 6:23 
QuestionCreating a web page Pin
ArchaBhandare15-Mar-07 20:29
ArchaBhandare15-Mar-07 20:29 
AnswerRe: Creating a web page Pin
Bradml15-Mar-07 23:55
Bradml15-Mar-07 23:55 
AnswerRe: Creating a web page Pin
Vasudevan Deepak Kumar22-Mar-07 6:24
Vasudevan Deepak Kumar22-Mar-07 6:24 
QuestionHTML + Javascript Problem!!! Pin
hiral_shah15-Mar-07 20:01
hiral_shah15-Mar-07 20:01 
Hi all,

I have create a dynamic table in javascript by following

function moreWorkClicked()
{
var tbl = document.createElement("table");
var tblBody = document.createElement("tbody");
var body1 = document.getElementsByTagName("body")[0];
var mainTable = document.getElementById("moreWorkTd");

var counter = parseInt(document.forms[0].clickCounter.value);
counter = counter + 1;

tblId = "tblEmployer" + counter;

tbl.setAttribute("id", tblId);
tbl.setAttribute("width", "100%");
tbl.setAttribute("border", "1");
tbl.setAttribute("align", "left");

labelArray = new Array("Employer Name", "Job Title", "Start Date", "End Date", "Salary Per Month(Approx.)");
nameArray = new Array("employerName_txt", "jobTitle_txt", "startDate_txt", "endDate_txt", "salary_txt");

for (var j = 0; j < 5; j++)
{
textboxName = nameArray[j] + counter;

var row = document.createElement("tr");
var cell = document.createElement("td");
cell.setAttribute("class", "formDataAlign");
var cellText = document.createTextNode(labelArray[j]);
cell.appendChild(cellText);

row.appendChild(cell1);

cell = document.createElement("td");
cell.setAttribute("class", "formDataAlign");
cellText = document.createElement("input");
cellText.name = textboxName;
cell.appendChild(cellText);

row.appendChild(cell);

tblBody.appendChild(row);
}

tbl.appendChild(tblBody);
body1.appendChild(tbl);

//This is the code for trying to put table at needed place but not working.

var mainRow = document.createElement("tr");
var mainCell = document.createElement("td");
cellText = document.createTextNode(tbl);
mainRow.appendChild(cellText);
mainTable.appendChild(mainRow);

mainTable.style.display = "";
}

By using above code my table is created but now I want to put it at some fixed place in my html page such as

HTML code:

<table width = "350" border = "1">
<tr>
<th colspan="4" align="left">
<strong>Work Experience Details</strong>
</th>
</tr>
<tr>
<td>
<table id="moreWorkTd" width="100%" border="0" style="display:none">
//Here I want that created table.
</table>
</td>
</tr>
</table>
<input type="hidden" name="clickCounter" value="0" />

Can you tell me that how I can put it on decided place??

Thank you in Advance.


--------------------------------------------------------------------------------------------------
Hiral Shah
India


If you think that my question is good enough and can be helpful for other then don't forget to vote. Smile | :)
AnswerRe: HTML + Javascript Problem!!! Pin
RichardGrimmer16-Mar-07 2:18
RichardGrimmer16-Mar-07 2:18 
QuestionPHP question Pin
john3415-Mar-07 8:48
john3415-Mar-07 8:48 
AnswerRe: PHP question Pin
Bradml15-Mar-07 10:39
Bradml15-Mar-07 10:39 
AnswerRe: PHP question Pin
hiral_shah15-Mar-07 18:33
hiral_shah15-Mar-07 18:33 
AnswerRe: PHP question Pin
john3416-Mar-07 0:15
john3416-Mar-07 0:15 
GeneralRe: PHP question Pin
hiral_shah16-Mar-07 1:38
hiral_shah16-Mar-07 1:38 
GeneralRe: PHP question Pin
hiral_shah16-Mar-07 1:45
hiral_shah16-Mar-07 1:45 
GeneralRe: PHP question Pin
john3416-Mar-07 1:58
john3416-Mar-07 1:58 
GeneralRe: PHP question Pin
Bradml16-Mar-07 14:53
Bradml16-Mar-07 14:53 
AnswerRe: PHP question Pin
hiral_shah16-Mar-07 2:15
hiral_shah16-Mar-07 2:15 
GeneralRe: PHP question Pin
john3416-Mar-07 5:12
john3416-Mar-07 5:12 
AnswerRe: PHP question Pin
JimmyRopes17-Mar-07 6:20
professionalJimmyRopes17-Mar-07 6:20 
Questionhow to sync files?? Pin
ajitscorpio15-Mar-07 6:00
ajitscorpio15-Mar-07 6:00 
QuestionDynamically setting &lt;img> data representing an SVG image Pin
Erik Hammar15-Mar-07 5:36
Erik Hammar15-Mar-07 5:36 
AnswerRe: Dynamically setting &lt;img> data representing an SVG image Pin
led mike15-Mar-07 6:06
led mike15-Mar-07 6:06 
Questionhelp in asp call back Pin
r_jaz15-Mar-07 5:01
r_jaz15-Mar-07 5:01 
AnswerRe: help in asp call back Pin
led mike15-Mar-07 5:30
led mike15-Mar-07 5:30 

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.