Browser's don`t allow automatic copying file path names (obviously for security reasons).
But we need an innocent functionality to store and retrieve clickable file path names in our database.
This javascript code is applied but only has worked in IE:
document.getElementById('hlf').select();execCommand('Copy');document.getElementById('projOW_Sub2').value='file:/'+clipboardData.getData('text');
Check:
selected source:
FF seems to refuse document.getElementById('hlf').select(); alltogether.
Also nice would be tothe selected source in an iframe,
just like in
Would you have any work-around suggestions?
Geen opmerkingen:
Een reactie posten