Rank: Member
Groups: Member
Joined: 10/26/2004(UTC) Posts: 1
|
What get importances additional form element, except (for instance , and etc) in PHP file.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Do you have problems with uploading additional data in <textarea> and other tags (except <input>)? Could you post (or submit case) a link where you test Image Uploader? Or if not available, send a HTML code you use? Edited by user Friday, May 23, 2008 3:47:13 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/4/2004(UTC) Posts: 2
|
I have problems getting textarea to work. I use Dundas for serverside scripting. This is how my form looks like: Code:<form id="Tjeneste" method="post" enctype="multipart/form-data">
<tr>
<td>
Navn:<br>
<input type="text" name="navn" size="111">
</td>
</tr>
<tr>
<td>
Beskrivelse:<br>
<textarea name="beskr" rows="10" cols="113"></textarea>
</td>
</tr>
<tr>
<td>
<input type="checkbox" value="on" name="pri" checked> Prioritert
</td>
</tr>
</form>
<tr>
<td valign="top">
Velg et bilde:<br>
<object classid="clsid:A18962F6-E6ED-40B1-97C9-1FB36F38BFA8"
CodeBase="ImageUploader3.cab" width="474" height="300" id="ImageUploader" name="ImageUploader">
<param name="Layout" value="TwoPanes">
<param name="FolderView" value="Thumbnails">
<param name="UploadView" value="Thumbnails">
<param name="UploadThumbnail1FitMode" value="fit">
<param name="UploadThumbnail1Width" value="100">
<param name="UploadThumbnail1Height" value="75">
<param name="UploadThumbnail1JpegQuality" value="60">
<param name="UploadThumbnail2FitMode" value="fit">
<param name="UploadThumbnail2Width" value="400">
<param name="UploadThumbnail2Height" value="300">
<param name="UploadThumbnail2JpegQuality" value="60">
<param name="BackgroundColor" value="#FFFFFF">
<param name="PaneBackgroundColor" value="#FFFFFF">
<param name="ShowButtons" value="False">
<param name="ShowStatusPane" value="False">
<param name="ShowDebugWindow" value="True">
<param name="AdditionalFormName" value="Tjeneste">
<param name="Action" value="script/control_tjenester_upl.asp">
<param name="RedirectUrl" value="index.asp?mmode=control_tjenester_leggtil&lmode=control">
<param name="LicenseKey" value="2640-3317-9228-4603">
<param name="MaxFileCount" value="1">
<param name="FileMask" value="*.jpg;*.jpeg;*.jpe;*.bmp;*.gif;*.png">
<param name="TreePaneWidth" value="180">
<param name="PreviewThumbnailSize" value="56">
<param name="Padding" value="1">
</object>
</td>
</tr>
And this is the code that is supposed to handle it: Code:Dim strSQL, strName, strDescr, strPri, intPri
strName = objUpload.Form("navn")
strDescr = objUpload.Form("beskr")
The script works fine if i use <input type="text"> instead of <textarea>. The strDescr variable is inserted into an Access database but turns out empty when I use textarea! Anyone know why? Edited by user Monday, December 24, 2007 4:27:40 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,659
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
elements are not supported in version 3.0, so way in order to transfer their content to server, you need to copy their value to via JavaScript.
We will fix this problem in upcoming Image Uploader 3.5.
|
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Member
Joined: 9/20/2004(UTC) Posts: 3
|
Fedor,
Do you have sample code that you could suggest for this workaround?
Thanks!
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,659
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Code is very simple: Code:<script>
function processUpload(){
//Copy value to hidden field
document.getElementById("hiddenAuthor").value=document.getElementById("textareaAuthor").value;
//Upload
ImageUploader1.Send();
}
</script>
<form ID="Form1" name="Form1">
<input type="hidden" name="hiddenAuthor" id="Author">
</form>
Author:<br>
<textarea id="textareaAuthor" cols="50" rows="8">Alex</textarea>
<br>
<input type="button" value="Upload" onclick="processUpload();">
Form1 is form which we attach. Edited by user Monday, December 24, 2007 4:27:49 PM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/4/2004(UTC) Posts: 2
|
This is about the same code i use now. I also do some clientside error checking (check that users fill out the form correctly) in my version of the processUpload. I haven't found a way to do serverside error checking yet. Or more precisely: I can do server side error checking but i'm having difficulties telling the user what went wrong. (H)
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.