Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
sweetyp2005 #1
save file
I have checkbox item create in form and dynamic checkbox created by javascript.
I want to save a value of these item (only value of the items that checkbox is
checked in one file. How do I do that? I only know that I have to use
<cfdocument> but I dont know how to check condition of the checkbox and how to
get value from javascript.
<script type="text/javascript">
var k =3;
function addItem(myTable){
name = "chk" + (k++);
text = document.form.text.value;
var lastRow = myTable.rows.length;
var x=myTable.insertRow(lastRow);
var y=x.insertCell(0);
y.innerHTML='<input type="checkbox" name="+name+" value="+text+">' + text;
}
</script>
<table id='tbl1'>
<tr>
<td><input type="checkbox" name="chk1" value="Row1">Row1</td>
</tr>
<tr>
<td><input type="checkbox" name="chk2" value="Row2">Row2</td>
</tr>
</table>
sweetyp2005 Guest
-
cannot save .cfm file
I am having trouble saving .cfm using contribute. i can save .html files with no problem. doesnt anyone know why this is?? thanks -
Can't save file in CS
When i try to export a file from Ill CS to an version 8 EPS file it gives me the error message : "Can't save the illustration. There isn't enough... -
Can't SAVE over an old file!
There is no solution to this problem yet. -
Unable to Save/Save As/close Word XP file with Acrobat 5.0 installed
One of my user is having this problem on her Windows XP PC: Dell GX260 with Windows XP Professional running 512MB RAM, Office XP, Acrobat 5.0 ... -
Open file, make changes, save file, close, re-open, file contents not changed
I've now run into this several times and it's completely destroyed all of my confidence in Ilustrator CS on Mac. I'm hoping someone can confirm that... -
Dan Bracuk #2
Re: save file
Your first problem is that you don't have either a form or cfform tag, so there
is nothing to submit. Once you sort that out, you will need a submit control,
or button with an onclick event handler to submit the form.
On the page to which you submit the form, write some code to process the
fields and do what you want to do. If you want to save the values to a file on
your server, you will be using the cffile tag. If you want the user to be able
to save a file on his computer, you can use cfcontent, or cfdocument format =
"pdf"
Happy coding.
Dan Bracuk Guest



Reply With Quote

