Hi,
I have a form that has 2 text boxes. I'm not very saavy on <div>, but these input boxes are wrapped in <div> tags as follows:
Notice in the first text box, there's a call to a function settemp(this.value). This function makes a call to another file that's a ColdFusion file that performs some server-side processing to obtain current results.
I want those current results returned to my input boxes.
The return work fine, but when the update happens, instead of returning the updated information within my text boxes, it gives me the updated information outside the box.
Here's my logic from the (.cfm) file in case you need it.
I'm assuming this is a <div> or CSS type question. That's why I didn't post on the CF forum.
Is there a way to update the text boxes with the information returned?
I also tried assigning an id within the <input> tag, but it still returns data at the top of the box.
Thanks in advance for any help.
soho34
I have a form that has 2 text boxes. I'm not very saavy on <div>, but these input boxes are wrapped in <div> tags as follows:
Code:
<td>
<div id="tempid" style="font-size:12px;"><br>
<input type="text" name="tempid" onChange="settemp(this.value);" value="<cfoutput>#GetTemps.tempid#</cfoutput>">
</div>
</td>
<td>
<div id="fullname" style="font-size:12px;"><br>
<input type="text" name="tempName" value="<cfoutput>#GetTemps.tempname#</cfoutput>">
</div>
</td>
Notice in the first text box, there's a call to a function settemp(this.value). This function makes a call to another file that's a ColdFusion file that performs some server-side processing to obtain current results.
I want those current results returned to my input boxes.
The return work fine, but when the update happens, instead of returning the updated information within my text boxes, it gives me the updated information outside the box.
Here's my logic from the (.cfm) file in case you need it.
Code:
...query performed here
<cfoutput>
<script type="text/javascript">
parent.tempid.innerHTML = "#getTempName.tempid#";
parent.fullname.innerHTML = "#getTempName.fullname#";
</script>
</cfoutput>
I'm assuming this is a <div> or CSS type question. That's why I didn't post on the CF forum.
Is there a way to update the text boxes with the information returned?
I also tried assigning an id within the <input> tag, but it still returns data at the top of the box.
Thanks in advance for any help.
soho34