Hey Everyone,
Well i keep getting the error that addInput is not defined but i can not figure out what is wrong with it. It worked perfectly fine when i was using it to submit data. But now that i am trying to make it display previously entered data it says addInput is not defined. could really use an idea on whats wrong with it because i can't figure it out.
here is what i have
javascript -
<script type="text/javascript">
-
function addInput(divName){
-
var dynamic = document.getElementById('dynamicInput');
-
var thevalue = document.getElementById('theValue');
-
var count = (document.getElementById('theValue').value -1)+ 2;
-
thevalue.value = count;
-
var newdiv = document.createElement('div');
-
var divIdName = 'dynamic'+count+'Input';
-
newdiv.setAttribute('id',divIdName);
-
-
newdiv.innerHTML =
-
"<table class='zpExpandedTable' id='modeltable'>" +
-
"<th class='sectiontitletick' colspan='7'>Serial Information "+ count +" </th>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>Model No: </td>" +
-
"</td>" +
-
"<td>" +
-
"<select name='modelno_" + count + "'>" +
-
"<option value=''>Make A Selection</option>" +
-
"<cfoutput query='models'>" +
-
"<option value='#model#'<cfif #model# is #model_no#>selected</cfif>>#model#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"<td>" +
-
" Product Type:" +
-
"</td>" +
-
"<td>" +
-
"<select name='producttype_" + count + "'>" +
-
"<option value='' selected>No Choice</option>" +
-
"<cfoutput query='getProdType'>" +
-
"<option value='#pk_productType#'<cfif #pk_productType# is #product_type#>selected</cfif>>#pk_productType#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"<td class='red'>" +
-
" Type Of Hardware Failure*:" +
-
"</td>" +
-
"<td>" +
-
"<select name='hardwarefailure_" + count + "'>" +
-
"<option value='' selected>Make A Selection</option>" +
-
"<cfoutput query='getHardwareFail'>" +
-
"<option value='#pk_hardwareFailure#'<cfif #pk_hardwareFailure# is #type_hardware_failure#>selected</cfif>>#pk_hardwareFailure#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"</tr>" +
-
"<table>";
-
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td>" +
-
"<input type='button' class='removeticket' value='Remove Serial ""+count +""' onclick=\"removeElement(\'"+divIdName+"\')\"></a>" +
-
"</td>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
document.getElementById(divName).appendChild(newdiv);
-
-
}
-
-
function removeElement(divNum) {
-
var d = document.getElementById('dynamicInput');
-
var olddiv = document.getElementById(divNum);
-
d.removeChild(olddiv);
-
}
-
</script>
heres the form - <body onload="addInput('dynamic');">
-
<form action="userformedit.cfm" id="userForm" name="userForm" method="POST" enctype="multipart/form-data" onclick="multipleSelectOnSubmit();">
-
<input type="hidden" value="0" id="theValue" />
-
<div id="dynamicInput">
-
-
</div>
-
<input type="button" class="addticket" value="Add Serial" onClick="addInput('dynamicInput');" >
-
<input type="submit" value="submit" name="submit">
-
</form>
-
</body>
Thank you in advance,
Rach
Sep 16 '08
19 2572
Hey Acoder,
I went with your second way an it works. But i do have another question.For some reason when it displays. if i have multiple serial numbers. Instead of it displaying one table for one ticket an another table for another ticket. It instead puts all the tickets in one table. How could i make them go into separate tables?
Like for example
how it appears
serial information one
serial: 111 serial: 222
like for it to appear
serial information one
serial: 111
serial information two
serial: 222
i was thinking of a loop but now sure if i need to use a javascript loop or coldfusion loop.
Here is what i have. - <script type="text/javascript">
-
-
<!---Allows us to show previous fields --->
-
-
function showInput(divName){
-
var dynamic = document.getElementById('dynamicInput');
-
var thevalue = document.getElementById('theValue');
-
var count = (document.getElementById('theValue').value -1)+ 2;
-
thevalue.value = count;
-
var newdiv = document.createElement('div');
-
var divIdName = 'dynamic'+count+'Input';
-
newdiv.setAttribute('id',divIdName);
-
-
-
<!--- Adds Extra fields for Model No, Product Type, and Type of Hardware Failure --->
-
newdiv.innerHTML =
-
-
"<table class='zpExpandedTable' id='modeltable'>" +
-
"<th class='sectiontitletick' colspan='7'>Serial Information "+ count +" </th>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>Model No: </td>" +
-
"</td>" +
-
"<td>" +
-
"<select name='modelno_" + count + "'>" +
-
"<option value=''>Make A Selection</option>" +
-
"<cfoutput query='models'>" +
-
"<option value='#model#'<cfif #model# is #model_no#>selected</cfif>>#model#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"<td>" +
-
" Product Type:" +
-
"</td>" +
-
"<td>" +
-
"<select name='producttype_" + count + "'>" +
-
"<option value='' selected>No Choice</option>" +
-
"<cfoutput query='getProdType'>" +
-
"<option value='#pk_productType#'<cfif #pk_productType# is #product_type#>selected</cfif>>#pk_productType#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"<td class='red'>" +
-
" Type Of Hardware Failure*:" +
-
"</td>" +
-
"<td>" +
-
"<select name='hardwarefailure_" + count + "'>" +
-
"<option value='' selected>Make A Selection</option>" +
-
"<cfoutput query='getHardwareFail'>" +
-
"<option value='#pk_hardwareFailure#'<cfif #pk_hardwareFailure# is #type_hardware_failure#>selected</cfif>>#pk_hardwareFailure#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"</tr>" +
-
"<table>";
-
-
<!--- Adds Extra fields for Serial Number and Software/Hardware --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='modeltable'>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>" +
-
"Serial Number: " +
-
"<cfoutput query="serial"><input type='text' name='serialnum_" + count + "' value='#pka_serialNo#' ></cfoutput>" +
-
" Software/Hardware: " +
-
"<select name='softhardware_" + count + "'>" +
-
"<option value='' selected>No Choice</option>" +
-
"<cfoutput query='getSoftHard'>" +
-
"<option value='#pk_softwareHardware#'<cfif #pk_softwareHardware# is #software_hardware#>selected</cfif>>#pk_softwareHardware#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for Description --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='3' cellspacing='0'>" +
-
"<tr>" +
-
"<td id='paddingformutli'>" +
-
"Description: " +
-
"</td>" +
-
"<td class='descriptionmoveinmulti'>" +
-
"( You may enter up to 500 characters. )"+
-
"<br>" +
-
"<cfoutput query="description"><textarea maxlength='500' onkeyup='return ismaxlength(this)' onkeydown='return ismaxlength(this)'rows='4' cols='60' name='thedescription_" + count + "'>#description#</textarea></cfoutput>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for Resolution --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td id='paddingformutli'>" +
-
"Resolution: " +
-
"</td>" +
-
"<td class='resolutionmoveinmulti'>" +
-
"( You may enter up to 500 characters. )"+
-
"<br>" +
-
"<cfoutput query='serial'><textarea maxlength='500' onkeyup='return ismaxlength(this)' onkeydown='return ismaxlength(this)' rows='4' cols='60' name='resolution_" + count + "'>#resolution#</textarea></cfoutput>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for Resolution Date, Current Date (for resolution date) and resolution vertified as effective by --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoldatetab' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>" +
-
"Resolution Date: (MM/DD/YYYY) " +
-
"</td>" +
-
"<td>" +
-
"<cfoutput query='serial'><input type='text' name='resdate_" + count + "' value='#resolution_date#'> </cfoutput>" +
-
-
" Current Date: " +
-
"<input type='checkbox' name='currentdateresol_" + count + "' onClick=resdate_" + count + ".value=fill_date()>" +
-
"</td>" +
-
"<td>" +
-
"Resolution Verified as effective by: " +
-
"</td>" +
-
"<td>" +
-
"<select name='resvertified_" + count + "'>" +
-
"<option value='' selected>Make A Selection</option>" +
-
"<cfoutput query='gettech'>" +
-
"<option value='#fname# #lname#'<cfif '#fname# #lname#' is #resolution_verified_by#>selected</cfif>>#fname# #lname#</option>" +
-
" </cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for Vertification Date, Current Date (for vertification date) --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>" +
-
"Verification Date: (MM/DD/YYYY) " +
-
"</td>" +
-
"<td class='vertificationmoveinmulti'>" +
-
"<cfoutput query='serial'><input type='text' name='vertifidate_" + count + "' value='#verification_date#'> </cfoutput>" +
-
" Current Date: " +
-
"<input type='checkbox' name='currentdatevert_" + count + "' onClick=vertifidate_" + count + ".value=fill_date()>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for Dept/Vendor Responsibility --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td class='red' id='paddingformultitop'>" +
-
"Dept/Vendor Responsibility*: " +
-
"<select name='deptvendor_" + count + "'>" +
-
"<option value='' selected>Make A Selection</option>" +
-
"<cfoutput query='getDeptVendor'>" +
-
"<option value='#pk_deptVendor#'<cfif #pk_deptVendor# is #dept_responsibility#>selected</cfif>>#pk_deptVendor#</option>" +
-
" </cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for RMA Data Only --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>" +
-
"RMA Data Only: " +
-
"</td>" +
-
"<td class='rmanmoveinmulti'>" +
-
"( You may enter up to 500 characters. )"+
-
"<br/>" +
-
"<cfoutput query='serial'><textarea maxlength='500' onkeyup='return ismaxlength(this)' onkeydown='return ismaxlength(this)' rows='4' cols='60' name='rma_" + count + "' >#rma_data#</textarea></cfoutput> " +
-
"</td>" +
-
"</tr>" +
-
"</table>" +
-
"<input type='hidden' name='serialcount' value='" + count + "'>";
-
-
<!--- Adds Delete to every ticket --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td>" +
-
"<input type='button' class='removeticket' value='Remove Serial ""+count +""' onclick=\"removeElement(\'"+divIdName+"\')\"></a>" +
-
"</td>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
document.getElementById(divName).appendChild(newdiv);
-
-
}
-
-
<!---Allows us to add serial information multiple times --->
-
function addInput(divName){
-
var dynamic = document.getElementById('dynamicInput');
-
var thevalue = document.getElementById('theValue');
-
var count = (document.getElementById('theValue').value -1)+ 2;
-
thevalue.value = count;
-
var newdiv = document.createElement('div');
-
var divIdName = 'dynamic'+count+'Input';
-
newdiv.setAttribute('id',divIdName);
-
-
<!--- Adds Extra fields for Model No, Product Type, and Type of Hardware Failure --->
-
newdiv.innerHTML =
-
"<table class='zpExpandedTable' id='modeltable'>" +
-
"<th class='sectiontitletick' colspan='7'>Serial Information "+ count +" </th>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>Model No: </td>" +
-
"</td>" +
-
"<td>" +
-
"<select name='modelno_" + count + "' >" +
-
"<option value=''>Make A Selection</option>" +
-
"<cfoutput query='models'>" +
-
"<option value='#model#'>#model#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"<td>" +
-
" Product Type:" +
-
"</td>" +
-
"<td>" +
-
"<select name='producttype_" + count + "'>" +
-
"<option value='' selected>No Choice</option>" +
-
"<cfoutput query='getProdType'>" +
-
"<option value='#pk_productType#'>#pk_productType#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"<td class='red'>" +
-
" Type Of Hardware Failure*:" +
-
"</td>" +
-
"<td>" +
-
"<select name='hardwarefailure_" + count + "'>" +
-
"<option value='' selected>Make A Selection</option>" +
-
"<cfoutput query='getHardwareFail'>" +
-
"<option value='#pk_hardwareFailure#'>#pk_hardwareFailure#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"</tr>" +
-
"<table>";
-
-
<!--- Adds Extra fields for Serial Number and Software/Hardware --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='modeltable'>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>" +
-
"Serial Number: " +
-
"<input type='text' name='serialnum_" + count + "'>" +
-
" Software/Hardware: " +
-
"<select name='softhardware_" + count + "'>" +
-
"<option value='' selected>No Choice</option>" +
-
"<cfoutput query='getSoftHard'>" +
-
"<option value='#pk_softwareHardware#'>#pk_softwareHardware#</option>" +
-
"</cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for Description --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='3' cellspacing='0'>" +
-
"<tr>" +
-
"<td id='paddingformutli'>" +
-
"Description: " +
-
"</td>" +
-
"<td class='descriptionmoveinmulti'>" +
-
"( You may enter up to 500 characters. )"+
-
"<br>" +
-
"<textarea maxlength='500' onkeyup='return ismaxlength(this)' onkeydown='return ismaxlength(this)'rows='4' cols='60' name='thedescription_" + count + "'></textarea>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for Resolution --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td id='paddingformutli'>" +
-
"Resolution: " +
-
"</td>" +
-
"<td class='resolutionmoveinmulti'>" +
-
"( You may enter up to 500 characters. )"+
-
"<br>" +
-
"<textarea maxlength='500' onkeyup='return ismaxlength(this)' onkeydown='return ismaxlength(this)' rows='4' cols='60' name='resolution_" + count + "'></textarea>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for Resolution Date, Current Date (for resolution date) and resolution vertified as effective by --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoldatetab' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>" +
-
"Resolution Date: (MM/DD/YYYY) " +
-
"</td>" +
-
"<td>" +
-
"<input type='text' name='resdate_" + count + "' value='' > " +
-
-
" Current Date: " +
-
"<input type='checkbox' name='currentdateresol_" + count + "' onClick=resdate_" + count + ".value=fill_date()>" +
-
"</td>" +
-
"<td>" +
-
-
"Resolution Verified as effective by: " +
-
"</td>" +
-
"<td>" +
-
"<select name='resvertified_" + count + "'>" +
-
"<option value='' selected>Make A Selection</option>" +
-
"<cfoutput query='gettech'>" +
-
"<option value='#fname# #lname#'>#fname# #lname#</option>" +
-
" </cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for Vertification Date, Current Date (for vertification date) and resolution vertified as effective by --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>" +
-
"Verification Date: (MM/DD/YYYY) " +
-
"</td>" +
-
"<td class='vertificationmoveinmulti'>" +
-
"<input type='text' name='vertifidate_" + count + "'> " +
-
" Current Date: " +
-
"<input type='checkbox' name='currentdatevert_" + count + "' onClick=vertifidate_" + count + ".value=fill_date()>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for Dept/Vendor Responsibility --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td class='red' id='paddingformultitop'>" +
-
"Dept/Vendor Responsibility*: " +
-
"<select name='deptvendor_" + count + "'>" +
-
"<option value='' selected>Make A Selection</option>" +
-
"<cfoutput query='getDeptVendor'>" +
-
"<option value='#pk_deptVendor#'>#pk_deptVendor#</option>" +
-
" </cfoutput>" +
-
"</select>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
<!--- Adds Extra fields for RMA Data Only --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td id='paddingformultitop'>" +
-
"RMA Data Only: " +
-
"</td>" +
-
"<td class='rmanmoveinmulti'>" +
-
"( You may enter up to 500 characters. )"+
-
"<br/>" +
-
"<textarea maxlength='500' onkeyup='return ismaxlength(this)' onkeydown='return ismaxlength(this)' rows='4' cols='60' name='rma_" + count + "'></textarea> " +
-
"</td>" +
-
"</tr>" +
-
"</table>" +
-
"<input type='hidden' name='serialcount' value='" + count + "'>";
-
-
<!--- Adds Delete to every ticket --->
-
newdiv.innerHTML = newdiv.innerHTML +
-
"<table class='zpExpandedTable' id='resoltable' cellpadding='1' cellspacing='0'>" +
-
"<tr>" +
-
"<td>" +
-
"<input type='button' class='removeticket' value='Remove Serial ""+count +""' onclick=\"removeElement(\'"+divIdName+"\')\"></a>" +
-
"</td>" +
-
"</td>" +
-
"</tr>" +
-
"</table>";
-
-
document.getElementById(divName).appendChild(newdiv);
-
}
-
-
-
<!---Allows us to remove multiple fields --->
-
function removeElement(divNum) {
-
var d = document.getElementById('dynamicInput');
-
var olddiv = document.getElementById(divNum);
-
d.removeChild(olddiv);
-
}
-
-
</script>
-
<body onload="showInput('dynamicInput');">
-
<form>
-
<input type="hidden" value="0" id="theValue" />
-
<div id="dynamicInput">
-
<!--- All Ticket Information Appears Here--->
-
-
</div>
-
<input type="button" class="addticket" value="Add Serial" onClick="addInput('dynamicInput');" >
-
</form>
-
</body>
Thank you :),
Rach
acoder 16,027
Recognized Expert Moderator MVP
Just add a <br> tag in between.
I notice that you're using a separate table for each and every field. It'd make more sense to have one table per ticket.
Just add a <br> tag in between.
I notice that you're using a separate table for each and every field. It'd make more sense to have one table per ticket.
Hey Acoder,
yes you are right it does make more sense to use one table. An i tried to do it that way but i ended up running into lots of trouble which is why it ended up the way it is.
I tried the <br> tag but it don't work. What i am trying to do is right now every ticket i ever added appears like this
serial information 1
serial: 1 serial: 2 modenol:4 modelno: 5
but it needs to appear like this
serial information 1
serial: 1 modelno:4
serial information 2
serial: 2 modelno: 5
its kinda hard to explain so i took a picture of it. http://img145.imageshack.us/my.php?image=page1ie1.jpg
Thank you for all the help :),
Rach
acoder 16,027
Recognized Expert Moderator MVP
Use a <tr> element to create a new row, so you'll have to move things around. Instead of putting them next to each other using <td> cells, use rows.
Use a <tr> element to create a new row, so you'll have to move things around. Instead of putting them next to each other using <td> cells, use rows.
Hey Acoder
i can not see how putting all the elements in rows will make everything appear in separate tables.If i change each td to tr it will make it look like this
model no
serial no
instead of what i need to look like which is this model no serial no
but i am just confused on how changing the td's to tr's will make that big of a difference if you could please explain it i might understand better on how to go about this.
here is an example of how i am trying to make it show previously entered tickets. http://img178.imageshack.us/my.php?image=appearda5.jpg
Thank you for all the help :),
Rach
Hey Acoder,
If i change all the td's to tr's wont it just make each field appear in a line like
model no
serial no
what i am trying to do is right now all the serials that i added appear under
serial information 1. an i am trying to make it where the first serial number is under serial information 1 and the second serial is under serial information 2. Is there anyway to make it show all serials that have been added on load in there own sections like serial number 1 and serial number 2 instead of all serials that been added appear on serial information 1?
Thank you again for all the help :),
Rach
acoder 16,027
Recognized Expert Moderator MVP
Now I think I'm beginning to understand what the problem is.
I assume you're using some Coldfusion code to loop over the previous tickets to display them. You can add a table header "Serial Information " based on the count which would increment on each loop iteration.
Now I think I'm beginning to understand what the problem is.
I assume you're using some Coldfusion code to loop over the previous tickets to display them. You can add a table header "Serial Information " based on the count which would increment on each loop iteration.
Hey Acoder,
Right now i am not using a loop, i am just having it output the results. Was thinking i needed a loop but not sure how to apply a loop for this particular situation, would i apply it to the following since i use this to output the results? - <cfquery name="serial" datasource="CustomerSupport">
-
SELECT pka_serialNo,pkb_fk_ticketNo,model_no,product_type,software_hardware,
-
resolution,resolution_date,verification_date
-
,rma_data,type_hardware_failure,dept_responsibility,resolution_verified_by FROM dbo.tbl_CS_serial
-
</cfquery>
or would i do something to the following below to make it loop?
Thank you again for all the help :),
Rach
acoder 16,027
Recognized Expert Moderator MVP
This should really be output using Coldfusion without using JavaScript. If you want to do this, start a new thread in the Coldfusion forum.
This should really be output using Coldfusion without using JavaScript. If you want to do this, start a new thread in the Coldfusion forum.
Hey Acoder,
started a new thread in the coldfusion here is a link to it http://bytes.com/forum/showthread.ph...19#post3361219
Thank you for all the help,
Rach
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Dave |
last post by:
Hello all,
Please consider this code:
#ifndef FOO_INCLUDED
#define FOO_INCLUDED
// File: foo.h
class foo
{
|
by: David Emme |
last post by:
Access 97
I have a number of SELECT statements which contain references to
user-defined VBA functions. These typically work as expected, but
occasionally, on one user's machine or another, produce a "function not
defined" message when the SELECT statement is executed, even having
previously worked on that machine.
What can I do to correct this difficulty when it occurs? What do I need
to know about user-defined functions in SELECT...
|
by: Leiji Liu |
last post by:
Hi,
I am curious if there are any pre-defined varables (constants?) in C? I saw
some code with __LINE__, __FILE__, etc. Are those located in some include
files?
LL
|
by: E. Robert Tisdale |
last post by:
In the context of the comp.lang.c newsgroup,
the term "undefined behavior" actually refers to
behavior not defined by the ANSI/ISO C 9 standard.
Specifically, it is *not* true that "anything can happen"
if your C code invokes "undefined behavior".
Behavior not defined by the ANSI/ISO C 9 standard
may be defined by some other standard (i.e. POSIX) or
it may be defined by your compiler,
your operating system or your machine architecture.
|
by: William L. Bahn |
last post by:
I'm working on some lessons and want to be sure I get some stuff correct. If
any of this is covered in the FAQ, please feel free to point me to the
section - I couldn't find it.
----------------------------------------------------------------
Overflow/Wraparound behavior of integer values
----------------------------------------------------------------
If an arithmetic operation such as (+, -, *) yields a result that exceeds
the...
| |
by: Michael B Allen |
last post by:
Which is the preferred method for preprocessor tests and why?
#ifdef XYZ
or
#if XYZ
or
#if defined(XYZ)
and
|
by: karthi |
last post by:
hi,
I need user defined function that converts string to float in c.
since the library function atof and strtod occupies large space in
my processor memory I can't use it in my code.
regards,
Karthi
|
by: Rui.Hu719 |
last post by:
Hi, All:
I read the following passage from a book:
"There are three exceptions to the rule that headers should not contain
definitions: classes, const objects whose value is known at compile
time, and inline functions are all defined in headers. "
Can someone explain to me why some of the const objects must be defined
in the header file?
|
by: curious2007 |
last post by:
During the linking I get the following:
1>Linking...
1>main.obj : error LNK2005: "double __cdecl sigma(class curious2007::pair<double,double> const &)" (?sigma@@YANABV?$pair@NN@curious2007@@@Z) already defined in Characteristics.obj
1>main.obj : error LNK2005: "double __cdecl sigma_linear(struct std::pair<double,double> const &)" (?sigma_linear@@YANABU?$pair@NN@std@@@Z) already defined in Characteristics.obj
1>main.obj : error LNK2005:...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |