HTML - Upload Document
Hi guys. I took this coding from a free coding site but am stuck already!
I would like the document the user uploads to appear on the website straight away. I am trying to get a notice board affect where multiple users can upload a document for someone else to look at. Thanks <!-- TWO STEPS TO INSTALL UPLOAD FILTER: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: ArjoGod, Shauna Merritt --> <!-- Modified By: Ronnie T. Moore, Editor --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin extArray = new Array(".gif", ".jpg", ".png"); function LimitAttach(form, file) { allowSubmit = false; if (!file) return; while (file.indexOf("\\") != -1) file = file.slice(file.indexOf("\\") + 1); ext = file.slice(file.indexOf(".")).toLowerCase(); for (var i = 0; i < extArray.length; i++) { if (extArray[i] == ext) { allowSubmit = true; break; } } if (allowSubmit) form.submit(); else alert("Please only upload files that end in types: " + (extArray.join(" ")) + "\nPlease select a new " + "file to upload and submit again."); } // End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> Please upload only images that end in: <script> document.write(extArray.join(" ")); </script> <p> <form method=POST name=upform action="/cgi-bin/some-script.cgi" enctype="multipart/form-data"> <input type=file name=uploadfile> <p> <input type=button name="Submit" value="Submit" onclick="LimitAttach(this.form, this.form.uploadfile.value)"> </form> </center> <p><p> <!-- Script Size: 1.55 KB --> Similar TutorialsJust wondering how do I get the innerHTML of document.title using javascript, I tried; var title document.title.innerHTML; But it's not working, anyone help me please? How can I change a HTML document to an XHTML document? I have set up some document downloads with <a href>NameofDocument</a> , but everytime a user downloads a document a blank browser window opens and then comes the pop up to either save or open in Office. Any ideas on how to keep this blank browser window from opening or being created. I have to send someone a family tree chart converted from a no-text-wrap RTF file to an HTML file so they can upload it to the internet. I have converted files from RTF to HTML easily enough with PolyEdit in the past, but this file has a very large width. When I convert it, the resulting HTML file doesn't keep the no-text-wrap setting and everything is a mess. Is there a way around this? I am having trouble with displaying documents with the tabbed browsing, how do I get a document to open up in acrobat reader w/in the browser? I have a code that I'm using right now from dhtml for displaying the documents in a tabbed browsing format but O want to enable clients to click on the doc and fill out in acrobat w/out leaving the browser. _____________________ sport book betting steroid I have a document I've created in HTML and I'm attempting to be able to have people fill it out and save the results. The document contains radio buttons, check boxes, and text fields that need to be filled out. Now I need a way to have the results saved and sent to me. For some reason I thought if they saved the page after compleating it and e-mailed it to me it would save their results, but it just sends the orriginal page. Any suggestions. Any suggestions on the best way for me to put a rather large document on the web? It will have about 500 pages, looks like. Comes in 22 chapters of varying sizes. Currently all the pages are .jpg pictures. Html menu tree to chapters then sections then pages? Or just html links in a similar fashion - with thumbnails maybe? Or should I make one or more .pdf 's ? Or should I/could I put it in an SQL database and serve it up from there? ( A bit unlikely, I think - I don't get that much room with my host and I don't want to pay for more - but if it turns out to be the solution of choice I'd maybe go for it.) Or what? Worked Out Hello everyone. I'm a bit new to these to please bear with me for a second. I hope I am asking this question in the right place. I have a client that want's me to create some emailable stationary that they can in turn send to all their clients. I'm working on a MAC Leopard using Safari and Firefox. The cool thing about Safari is that you can take any webpage and turn it into emailable stationary by going File>email contents of webpage. It will copy images, formatting CSS and I think embedded Java Scripts. So I thought Great. I'll create a simple webpage, turn it into stationary... 30 minutes and I should be done. 3 days later I'm still working on this project and I'm stuck. The issue it the. I have created a webpage. It's very simple you can view it here if you want http://www.drewwfilms.com/Temp/Conte...ate/test3.html The problem is this. I can't get text to stay. If I type text into the Textarea and do something like... create new webpage (to create a new webpage from the current address) the text will not copy into the new document. Does that make sense? So the text getting entered into the textarea where is that in my html code? I've viewed the source code and cannot find it. Is it being entered into cache or something? I do not know enough about this (obviously) and am really looking for some help. Anyone that could give a helping hand I'd really appreciate it. Thanks -D Hi people, I just built a web site with a design made in photoshop, so when I saved it as gift and html everything fine, but when I made the code over the <head> for Xhtml all my images and stuff were distorted. Thanks for your help Regards Paul Weinstock How can I insert a movie into a HTML document? Anyone helps? Thanks in advance. I am writing a web page that I need to either 1. embed the word document contents in the web page, or 2. have a link to the work document on the web page. When I try 1. I save the word document as a web page when I am in word. but the html that is generated is so large and full of stuff that I don't need, and it doesn't display very good. If I do 2. then the user has to have word on there machine in order to view the document. Is there another way? Thanks in Advance, Laurence Hi, I'm doing a small project for my school. And I have a problem. I'm using a page with two iframes. One has photo's the other has text. What I'm trying to do is jump from one frame to another part in the Other frame, and back. I've tested it sofar in Chorme and it all works. But it doesn't in Firefox and IE... Firefox opens it in a new tab, IE in a new window. Is there someway to let them jump the the specified frame??? Her is my site: http://stap.iam.hva.nl/~frieli03/ I hope you can help me out! Thanks in advance, Joren Here's a new one...Firefox performs the way I want, and IE doesn't do the job. Only problem is, I need it to work in IE. Here's a simple one-liner for an opening a Word document in a local sub-folder: <a href="subfolder/filename.doc">Link Title</a> When I left-click on this link in my index page, I get the typical "Open", "Save", and "Cancel" options popping up in a window. When I click "Open", it currently opens the Word file within the browser (not what I want). Can someone please tell me what I need to do to my HTML file to have the Word document open within the Microsoft Word application? I don't want to change any default settings on my computer. Thank you for your help! I have written a form using HTML. This form will allow customers to customize their products. I am having a problem with attachments. I am not sure how to setup a spot for them to upload an attachment. After the attachment is uploaded i want them to be able to submit the document to me via email. I currently have the email setup as
HTML Code: <form action="MAILTO:CustomerService@trainorglass.com" method="post" enctype="text/plain"> Can someone please help me out and tell me if this is possible. Hello all. I have been trying to figure out this problem for the past few days, and can't seem to find a solution anywhere. I have an iframe that embeds a transparent document to view on my webpage. All the text, images, etc. work great in every single browser, EXCEPT IE9. Does anyone have any ideas as to why this may be happening? Because I am at a loss here. Here is the page in question: http://jdp.pr.erau.edu/HTML/projects...s_project1.htm Thanks I am wondering if there is a way to make a link on one page load a page into the frame or iframe on another page. For example I have pages A.html, B.html and C.html. B has an iframe in it, and I want to load C into that iframe, using a link on page A. Does anyone know if that is possible with html? Thanks, Marcus |