Click here to Skip to main content
16,005,339 members
Home / Discussions / Web Development
   

Web Development

 
QuestionDynamic adding of rows to a table Pin
philinmp22-Sep-06 4:45
philinmp22-Sep-06 4:45 
QuestionMaking labels all one set width under both FF and IE? Pin
Red_Wizard_Shot_The_Food22-Sep-06 1:21
Red_Wizard_Shot_The_Food22-Sep-06 1:21 
AnswerRe: Making labels all one set width under both FF and IE? Pin
Guffa22-Sep-06 4:59
Guffa22-Sep-06 4:59 
GeneralRe: Making labels all one set width under both FF and IE? Pin
Red_Wizard_Shot_The_Food22-Sep-06 6:14
Red_Wizard_Shot_The_Food22-Sep-06 6:14 
QuestionHTML file browse Pin
prabha.swati21-Sep-06 23:23
prabha.swati21-Sep-06 23:23 
AnswerRe: HTML file browse Pin
Stephan Pilz22-Sep-06 4:40
Stephan Pilz22-Sep-06 4:40 
GeneralRe: HTML file browse Pin
prabha.swati8-Oct-06 21:11
prabha.swati8-Oct-06 21:11 
QuestionHow to do this with Javascript??? [modified] Pin
hiral_shah21-Sep-06 21:11
hiral_shah21-Sep-06 21:11 
Hi there,
I have a problem in passing html form to Javascript. In Javascript I can't get the form as an object.

for example, i wrote the following code,

<html>
<head>
<title>Edit Resources</title>
<script language = "javascript" src="../js/source_resource.js"></script>
</head>
<body>
<form action=Resource.php method='post' name="Resources" onsubmit="return validateres(this.Resources);">
<center>
<br>
<br>
<table width="400" height="100" border="0" cellpadding="5">
<tr>
<th colspan="6" align="center" valign="middle" > Edit Resource </th>
</tr>
<tr>
<td>
<table width='100%' height='50%' border='0' align='center' cellpadding='3' cellspacing='1' >
<tr>
<td colspan='3' align='center' valign='middle'> </td>
</tr>
<tr>
<td align='right' valign='middle'><span class='style1'></span></td>
<td colspan='2' align='left'><input type='hidden' name='action' value='add'></td>
</tr>
<tr>
<td><br> Name</td>
<td><br>&nbsp;<input type='text' name='res_name' value="" </td>
</tr>
<tr>
<td> Description</td>
<td>&nbsp;<input type='text' name='res_desc' value=""> </tr>
<tr>
<td> Address </td>
<td>&nbsp;<input type='text' name='res_addr' value=""></td>
</tr>
<tr>
<td> Contact Person</B></td>
<td>&nbsp;<input type='text' name='res_con_per' value=""></td>
</tr>
<tr>
<td> Contact Number</td>
<td>&nbsp;<input type='text' name='res_con_num' value=""></td>
</tr>
<tr align='center'>
<td colspan='3' valign='middle'>
<label> <br>
<input type='hidden' name='id' value={id}>
<input type="button" name="Submit" value="Cancle" onClick="return canclefrm('Resources', this.bkbtn);">&nbsp;
<input name='Submit' type='submit' value=' Update '>
<input type='hidden' name='action2' value='update'>
</label>
<p>&nbsp; </p></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</form>
<form name="bkbtn" action=back method="post">
<center><input id="submit1" name="submit1" disabled="disabled" type='submit' class="buttonStyle" value='Back'></center>
<input type='hidden' name='access' value="first"/>
</form>
</body>
</html>

by clicking on cancle button

function canclefrm(frmname, bkbtn)
{
preset = document.frmname;
preset.res_name.value = '';
preset.res_addr.value = '';
preset.res_con_per.value = '';
preset.res_con_num.value = '';
preset.res_desc.value = '';
document.bkbtn.submit1.disabled = false;
}


My problem is: I am not getting any value by using object 'frmnm'. I am getting 'undefined' at time of alerting object.

Please Answer me as soon as possible.

Thank you in Advance...Smile | :)
AnswerRe: How to do this with Javascript??? Pin
Guffa21-Sep-06 21:39
Guffa21-Sep-06 21:39 
QuestionRe: How to do this with Javascript??? Pin
hiral_shah21-Sep-06 22:37
hiral_shah21-Sep-06 22:37 
AnswerRe: How to do this with Javascript??? Pin
Guffa22-Sep-06 0:21
Guffa22-Sep-06 0:21 
Questiondeploying a .net winforms that has to connect to remote sql server Pin
steve_rm21-Sep-06 19:44
steve_rm21-Sep-06 19:44 
QuestionPaging records Pin
alxtech21-Sep-06 11:13
alxtech21-Sep-06 11:13 
AnswerRe: Paging records Pin
Christian Graus21-Sep-06 12:06
protectorChristian Graus21-Sep-06 12:06 
GeneralRe: Paging records Pin
alxtech22-Sep-06 3:31
alxtech22-Sep-06 3:31 
AnswerRe: Paging records Pin
JUNEYT25-Sep-06 21:43
JUNEYT25-Sep-06 21:43 
QuestionHow do I do this ?? Pin
Eytukan21-Sep-06 5:08
Eytukan21-Sep-06 5:08 
AnswerRe: How do I do this ?? Pin
led mike21-Sep-06 18:54
led mike21-Sep-06 18:54 
GeneralRe: How do I do this ?? Pin
Eytukan21-Sep-06 21:22
Eytukan21-Sep-06 21:22 
QuestionProblems with IIS and users in XP Pin
Brady Kelly20-Sep-06 22:14
Brady Kelly20-Sep-06 22:14 
AnswerRe: Problems with IIS and users in XP Pin
Christian Graus21-Sep-06 12:13
protectorChristian Graus21-Sep-06 12:13 
QuestionRe: Problems with IIS and users in XP Pin
Brady Kelly21-Sep-06 20:15
Brady Kelly21-Sep-06 20:15 
QuestionHTML to PDF Converter Pin
Brady Kelly20-Sep-06 20:49
Brady Kelly20-Sep-06 20:49 
AnswerRe: HTML to PDF Converter Pin
Stephan Pilz20-Sep-06 21:42
Stephan Pilz20-Sep-06 21:42 
Questionadding additional security to website Pin
bankerkev20-Sep-06 16:42
bankerkev20-Sep-06 16:42 

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.