|
JP1 Remotes
|
View previous topic :: View next topic |
Author |
Message |
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21211 Location: Chicago, IL |
Posted: Tue Oct 12, 2004 8:26 pm Post subject: HTML Experts, help me out |
|
|
Hey Lucy, is that you??? 8)
Here's what I'm trying to do. I've compiled a spreadsheet that lists all the Device Upgrade files from Yahoo along with their descriptions and their authors. My intent is to write some HTML to fake out the upload process on my new File Section, so all I have to do is press a button and the file gets loaded. I would then make the spreadsheet write the HTML for me.
Well, I have it all working except for the file part. If I leave the file section box un-hidden with the BROWSE button active, i can use the browse button to select a file and load it, this much works. But what I want to be able to do is hard code the file name into the INPUT statement of the HTML form, then all I'd have to do is press the button, and voila, but this is the part I can't get working.
Does anybody have any ideas how I can make this work, or maybe think of a different way of approaching it? _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
gfb107 Expert
Joined: 03 Aug 2003 Posts: 3411 Location: Cary, NC |
|
Back to top |
|
|
pgk
Joined: 21 Aug 2004 Posts: 113 Location: London |
Posted: Wed Oct 13, 2004 8:33 am Post subject: |
|
|
Rob,
I believe you can't do it that way, most (all?) browsers don't accept a value clause on <input type=file> statements for security reasons. i.e. To stop me tricking people into uploading files I want, rather than ones they select.
Paul. |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21211 Location: Chicago, IL |
Posted: Wed Oct 13, 2004 9:10 am Post subject: |
|
|
Thanks guys, and thanks for that link Greg, that pretty much answers the question, and I agree with them that it would be a security risk if what I am trying to do was allowed across the board.
I got a few files loaded last night by manually selecting the file but letting the hard coded HTML take care of the other details, so I will probably continue doing it that way.
Having said that, I might take one last look into Java Script to see if I can make it copy the value from one place to another when I click on the SUBMIT button. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|