Solution for the Problem decribed in Craig's Weblog

Hi SDN Members,
Craigs Weblog: "INPUT TYPE="FILE" and your options..."
/people/sap.user72/blog/2004/08/11/input-typefile-and-your-options
Summarizes forum posts about the following problem:
<i>" ... a common task that many web developers have to deal with. They have to create an upload form and let the user select a file from the local computer. This is handled quite nicely by the HTML form element input type="file", however most of you that have used this know that it creates a text field and a button together and the text for the button is generated automatically. This automatic generation of text is connected to the browser and you have no control over it."</i>
Double points for the one who comes up with the solution. (Brian McKellar has thrown in 100 of his own points too
Looking forward to it, Mark.

Hello Dagfinn,
I've just sent you an email with the screen shots and the code I am using. However, as I've stated it doesn't work. We've been trying it on every type of system we can find here and it just doesn't work.
<html>
  <head>
    <script type="text/javascript">
    //Function which fills the fake form's input field
    function fillFakeForm()
           document.forms['fakeForm'].myFileText.value= document.forms['realForm'].file.value;
    </script>
    <!--The transparency is set in the fileUpload class-->
    <style type="text/css">
     .fileUpload {
        -moz-opacity:0 ;
        filter:alpha(opacity: 0);
        -khtml-opacity: 0;
    </style>
  </head>
  <body>
    <!--Real form. Must have higher z-index than fake form-->
    <span style="position: absolute; top: 10px; left: 10px;z-index: 1;">
      <form name="realForm" method="post" ENCTYPE="multipart/form-data">
        <!--The file upload uses the css class defined previously and defines two event handlers-->
        <input type="file" class="fileUpload"  name="file" onkeyup="fillFakeForm();" onmouseout="fillFakeForm();">
        <input type="submit">
      </form>
    </span>
    <!--Fake form which should be visible. Must have lower z-index than the real form-->
    <span style="position: absolute; top: 10px; left: 10px; z-index: 0;">
      <form name="fakeForm">
        <input type="text" name="myFileText">
        <!--This image is the graphics replacing the browse button-->
        <img src="<%=CL_BSP_MIMES=>SAP_ICON( id = 'ICON_EDIT_FILE' ) %>" border="0">
      </form>
    </span>
  </body>
</html>
That is the code we've been trying that works for Brian, but not for us. I've tried it in different broswer on a BSP page as well as a normal HTML page.

Similar Messages

  • Anyone has a solution for the problem: typing keywords and suddenly it does not work anymore. Mostly I have to restart my iphone 4Gs

    Does anyone has a solution for this problem?
    Since I updated to iOS 6 sometimes my keywords did not work.
    I always have to restart my iPhone to have it work.
    It's ridiculous to always restart my phone.
    If you also have this problem you can repost + give some tips.
    Thanks and greetings,
    Max Louis

    Hi Alo816,
    I'm sorry to hear you are having such extensive issues with Messages on your iPhone. If you continue having issues sending or receiving Messages, you may find the troubleshooting steps outlined in the following article helpful:
    iOS: Troubleshooting Messages - Apple Support
    If you continue to have issues with Messages after that troubleshooting, especially if it is still having or crashing, you may want to make sure you have a current backup of your data in iTunes, then try restoring your iPhone to factory settings and testing it in that default condition to see if the issues persist before restoring your data. You may find this article useful:
    Use iTunes to restore your iOS device to factory settings - Apple Support
    Regards,
    - Brenden

  • When i try to open the itunes store in itunes,windows closes it after not finding a solution for the problem.I have uninstalled and reinstalled the Itunes software. I am running Win 7-with IE10-any help?

    When I selected the Itunes store on my win PC today-the program was closed by windows with windows saying there was a problem. I tried a couple of times and then uninstalled the itunes software and reinstalled it with the same results. The program has always worked before but I have not used it recently since the Ipad now receives it's software updates right off the router. I am running Win 7 with IE10. Anyone with the same problem?

    My post has been viewed 24 times, and yet have had no answers. I have always like adobe products, however if this is the type of support they offer, I will never purchase another product of theirs. The issue I am having is the same issue many others have had, and yet no answer. Poor customer service!

  • Anyone have a solution for the problems with Maverick iMovie?

    I made the upgrade to Maverick and expected to have a bit of a learning curve but not a total revamp of basic stuff.  I have  a LOT of video files and when iMovie made the conversion, my files were so jumbled I couldn't make heads or tails of where things were.  In the previous iMovie version I had all of my files nice and neat in folders, dated, labeled so I could discern what was what without too much trouble.  Not so once the conversion was complete.  I was so glad to find that my old version of iMovie was still on my computer as well and delighted that my files were intact and I could easily find them.  Here's hoping that Apple is on the ball and will soon have the new imovie working like we have come to expect Apple products to work.
    In the meantime, any pointers would be appreciated. 

    I am trying to do a wedding and now spending too much time searching the web for tutorials and reviews to try to figure out what is going on. There needs to be better detailed help.

  • My display has quit working.  Does anyone have a solution for this problem?

    I have had my Verizon Jetpack MiFi 5510L for a couple of months now.  It has worked fine until a few days ago the display on it started looking strange and now has finally gone blank.  Does anyone have a solution for the problem?

    You can do both, whatever is more convenient to you.  As long as VZW gets its hands on the old device you will be good to go.  Replacements under the warranrty require the user to turn in the old device to VZW.  If your old device is not returned then you will be charged a fee for an entirely new device.  Purchasing a tracking number for a shipment of this kind would be a good idea if you choose to send it in.  Otherwise dropping it off at a store is the safest route you can take. 
    I would suggest contacting VZW phone support on this one and running through your options.  The VZW phone rep can coordinate a delivery to your local VZW store if they do not already have one in stock.  You can also turn in the old device in person to rule out any non-returned device fees.

  • I just rented a film using my apple TV and was then asked to enter a code - which I haven't been asked for in long time. I have forgotten the code. Any quick solutions to the problem?

    I just rented a film using my apple TV and was then asked to enter a code - which I haven't been asked for in long time. I have forgotten the code. Any quick solutions to the problem?

    Hello anetsa
    It sounds like you have restrictions setup on your Apple TV. If you do not know your passcode to unlock it, then you will need to restore your Apple TV. Check out the articles below for more information about Restrictions as well as restoring your Apple TV.
    Apple TV: Understanding Restrictions (parental controls)
    http://support.apple.com/kb/HT200198
    Apple TV (2nd and 3rd generation): Restoring your Apple TV
    http://support.apple.com/kb/HT4367
    Regards,
    -Norm G.

  • TA24002 My 500 GB can't verify nor repair. I have photoshop work that I need to recover. I would like to know which erase option would be the best solution for this problem.

    My 500 GB can't verify nor repair. I have photoshop work that I need to recover. I would like to know what option would be the best solution for this problem?

    You appear to have two issues: 1) a hard drive that is not working properly and 2) files you wish to recover.
    Re 1) you need to answer Kappy's questions.
    Re 2) does the drive load and can you see your photo files? If so can you copy them to another drive?
    Do you not have a backup of the photo files?

  • I have problems in the initiation of the Encore process when opening presents the following error message : "Encore CS6 Cannot Run in Non-Royalty Serialized".... What is the best solution for this problem ?

    Help Me.
    What is the best solution for this problem ?

    Encore is activated when you activate Premiere Pro... so, as Stan asked, how did you install P-Pro?
    Ask for serial number http://forums.adobe.com/thread/1234635 has a FAQ link
    -and a fix for Encore http://forums.adobe.com/thread/1421765?tstart=0 in reply #7
    -plus more Encore http://helpx.adobe.com/encore/kb/cant-write-image-fie-larger1.html

  • My solution for the "Error -50" and/or "Syncing" problem

    Hi
    After upgrading to iPhoto 5.0.2 I also had the "Error: -50" problem"
    How have I solved this problem => also with the help and tips from other forums.
    • Before the upgrade all my pictures from iPhoto were available on my iPod Photo (30 GB)
    • After the upgrade of iPhoto to 5.0.2 I received the "Error: -50" every time I tried to synchronize my iPod. Strange, strange, strange, ...
    => first I detected that putting pictures on my iPod starting from a folder (in stead of iPhoto) worked fine.
    Trying to change back to iPhoto did not work and no albums where available in the iPod Options view!
    => then I tried to create a new iPhoto library (press and hold Option(alt)-key while starting iPhoto), put some pictures and albums in it ... and even this did not work.
    What did I do to solve this problem!
    1. I thrashed my iPhoto application (DO NOT empty you trash, because you have to put it back again)
    2. I used "Disk Utility" to repair the disk permissions.
    3. I put back my iPhoto application from the thrash (same location as before - Applications folder)
    4. and did again a "repair disk permissions"
    5. then I tried to sync my NEW iPhoto library on my iPod and EUREKA this worked.
    6. Then I switched back to my original iPhoto library (launch iPhoto holding the Option key).
    7. Tried to sync ... again the same problem => no pictures and albums available in the iPod - Optoins - Photo tab.
    => conclusion : the problem has to be in my iPhoto library
    8. after trying many things (such as eliminating albums => trail and error method) I found the cause for my problem.
    => I used KEYWORDS in my iPhoto library with strange characters and had SMART albums using it. In my situation it was the "&" character.
    Replacing or removing this character solved my problem. All my pictures and albums were available in the iPod - Options - Photo tab
    9. Sync could be started ... Youpi!
    After synchronizing my iPhoto library I noticed that not all pictures were available on the iPod. I start looking which pictures that were missing on my iPod. When I found them I wanted to know why they were not synchronized.
    I found the explanation in the file "AlbumData.xml" in the "iPhoto Library" folder.
    If you open this file with TextEdit and search for this missing file then you'll find that (at least in my case) corresponding path does not exist (any more). And that was the case for each missing file!
    How solving this problem?
    1. I tried rebuilding the iPhoto Library => launch iPhoto holding the Option and Command keys. This did not work.
    2. What did I do?
    2.1. First I exported all my Pictures from the active iPhoto Library (Share - Export)
    => VERY IMPORTANT NOTE : all extra info such as "Key words", Albums, ... will NOT be saved!
    2.2. I created a new iPhoto Library (launch iPhoto holding the Option key)
    2.3. Then I imported all exported pictures.
    => if you check the file paths in the AlbumData.xml file, you'll see that this info is correct!
    2.4. At least I recreated (manually) all "Key words", Albums, ... so I had a duplicate of my original Library.
    I hope this also works for other people with the same problem.
    Greetings
    P@nt@ni

    Here my solution for the itunes' "unknown error -50" and not showing any albums in the prefs' tab:
    1. All rebuilding options in iphoto didn't resolve the problem.
    2. I opened the file "AlbumData.xml" in the iPhoto-Library-Folder with a text editor. I figured out, that the problem wasn't in the Albums, but in the "Master Image List"-Section. They look like this:
              <key>1741</key>
              <dict>
    .. titles, filenames, ....
    </dict>
    After making a backup of this file, I started deleting entries here (you know, the fastest way to do it is to split it always in halves and check in iTunes if the error still exists). After about half an hour I got the problem key.
    3. The problem was: Some (curious) white spaces at the BEGINNING of the comment! Curious, because they weren't visible in iPhoto's comment, but I could delete them in Iphoto! I guess they weren't normal space characters, but any special symbols (line feeds? whatever)
    4. After that, the -50 error was gone. Now I could see the Album Names. But the sync stopped after a while with a "... file not found...." - error.
    5. Again, with trial&error I found out, that 4 pictures in the last 3 months' rolls made this second problem: I just duplicated them in iPhoto and deleted the original ones. So I still don't know why they have produced this error... anyway,
    6. Now all of my photos sync well.
    .. well, the whole story took me 2 evenings. I really didn't switched to Mac to play debugger for Apple. Do they read these groups here or do I better write them anywhere? They should get those problems fixed asap! As far as I read in the groups, those errors do exist quite a long time?!
    My versions:
    iPhoto 5.0.4 (263)
    iTunes 5.0.1 (4)
    OS X 10.3.9
    iPod Nano 1.0

  • I bought my iphone 5 in Houston Texas May 15 2013 IMEI Nr. 013428009645399.The problem is that in the Greece the country which I live the 4G is not working.If you have any solution for this problem pls. let me know.My email is philcoueth@yahoo.gr Thank yo

    I bought my iphone 5 in Houston on May 15 2013.
    IMEI 013428009645399.The problem I have is that in the country
    which I live GREECE the 4G is
    not working.Please if you have any solution for this
    problem let me know.My email is [email protected]
    Thanking you in advance
    Philip Couridis

    iPhones purchased in the US are NOT guaranteed to work with 4G bands outside of North America.
    For what crazy reason did you purchase an iPhone in the US if you live in Greece?  If your phone needs servicing, it will have to be brought back to the US.  You cannot get that phone serviced in Greece.

  • TS1424 i cannot play my videos or shows on itunes any more. i get the message saying "windows can check online for a solution to the problem" " i tunes has stopped working"

    i cannot play my videos or shows on itunes any more. i get the message saying "windows can check online for a solution to the problem" " i tunes has stopped working"

    Hi marymike,
    The crash signature is simalr to that mentioned in the thread: https://forums.adobe.com/thread/644139
    Please try the suggested steps mentioned and check.
    Regards,
    Rave

  • When I click onto the firefox webbrowser, I get the message "firefox has stopped working, windows will close the application to find a solution to the problem " This has been going on for several days, I've had to go back IE to access web pages

    When I click onto the firefox webbrowser, I get the message "firefox has stopped working, windows will close the application to find a solution to the problem."

    I had this exact same problem.  I found this fix and it worked for me. 
    Step 1:
    Browse to C:\Program Files (x86)\Common Files\Apple\Apple Application Support and copy the filen named QTMovieWin.dll. 
    Step 2:
    Browse and past that file into C:\Program Files (x86)\iTunes.
    Hope this helps you.  I wish I could remember where I saw this originally so I could thank them.
    Good Luck.
    Anthony

  • Everytime I try to launch the iTunes store I get a message that iTunes has stopped working and that windows is searchning for a solution to the problem, but nothing gets fixed

    everytime I try to launch the iTunes store I get a message that iTunes has stopped working and that windows is searchning for a solution to the problem, but nothing gets fixed

    Hello mcgivnma,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Best of luck,
    Mario

  • My mac book gives electric shock through its entire body while being charged from AC out let. is there a solution to the problem? my other two friends are haveing the same problem who recently have purchased the same note books, its weird for APPLE

    My mac book gives electric shock through its entire body while being charged from AC out let. is there a solution to the problem? my other two friends are haveing the same problem who recently have purchased the same note books, its weird for APPLE products. Please give any solution.

    Is the MBP properly grounded?  Are you using the three prong plug?  If not, do so and your problems may disappear.  If not, do what SwankPeRFection suggests.
    Ciao.

  • When will Firefox have a solution for the 'McAfee site advisor' problem in the new version 5 of the browser?

    I love Firefox and always keep it updated with the latest version, but the new version 5 keeps saying that McAfee Site Adviser will be disabled when I upgrade. So, I haven't downloaded the upgrade. I also love and depend on my site adviser and I'm not willing to loose it. Is Firefox working on a solution for this problems and if so, when do they expect to have a solution in place?
    Thanks for a reply,
    Wendy Ragsdale
    Clearwater, Florida

    Wendifly
    Isn't that sweet! You found a solution & the problem is solved. Now would you care to enlighten the rest of us here?

Maybe you are looking for