On Jan 19, 5:16 am, Eric Talevich <[email protected]> wrote: > How were you trying to tweak the tag with JavaScript? Did you try > copying the the text from the <input type="file> field into a <input > type="hidden"> field? I think I've done this before by attaching an > event when the Submit button is clicked to copy the full text of the > file path into the hidden field.
It worked in the past on few browsers, but not today: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="static/favicon.ico" /> <link rel="icon" href="static/favicon.ico" /> <link rel="stylesheet" href="static/tabber.css" type="text/css" media="screen"/> <link rel="stylesheet" href="static/generator.css" type="text/css" media="screen"/> <script type="text/javascript" src="static/tabber.js"></script> <title>pygccxml & py++ demo</title> </head> <body> <form name="testform" action="jsref_onsubmit.asp" onsubmit="alert ('Hello ' + testform.fff.value +'!')"> <input type="file" name="fff" value="xxx"/> <input type="submit" value="Submit" /> </form> </body> </html> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
