Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Alza  
#1 Posted : Tuesday, October 26, 2004 9:18:00 PM(UTC)
Alza

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.
Andrew  
#2 Posted : Tuesday, October 26, 2004 9:44:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 866

Thanks: 2 times
Was thanked: 26 time(s) in 26 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

dodgemaster  
#3 Posted : Thursday, November 04, 2004 12:55:00 AM(UTC)
dodgemaster

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>&nbsp;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

Fedor  
#4 Posted : Sunday, November 07, 2004 1:20:00 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,545

Thanks: 5 times
Was thanked: 58 time(s) in 57 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
pz  
#5 Posted : Thursday, November 11, 2004 7:15:00 AM(UTC)
pz

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!
Fedor  
#6 Posted : Friday, November 12, 2004 2:20:00 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,545

Thanks: 5 times
Was thanked: 58 time(s) in 57 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
dodgemaster  
#7 Posted : Saturday, November 13, 2004 12:26:00 AM(UTC)
dodgemaster

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)
Users browsing this topic
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.