Hi David, I think this will recenter the topic. The code could be used
for browsing file into Quick or Easy edit ?
I played with this code (it may be not well written) :
---------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sans titre 1</title>
</head>
<form>
<input type="file"
onchange="trait(this);" />
</form>
<body>
<script>
function trait(zone){
var adr=zone.value.lastIndexOf("\\");
var fic=zone.value.substring(adr+1).split(".");
alert("Fichier:"+fic[0]+"\r\n" + "Extension:"+fic[1]);
}
</script>
</body>
</html>
------------------------
It works on IE and Firefox (not the same way, in firefox it always
open the fileselect dialog box like said Eric), but it is returning
the filename and the file extension. I don't figure out to set the
relative path other way that creating a "medias" folder assuming every
media file is in it and adding "medias/" before the chosen file ? This
could feet the need of a removable media use.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---