can a text field be set to display a *.txt file?
I’m using dreamweaver mx, no luck so far, can only input text direct into the code!
Any help would be great..
Thanks
Alan
[code=php] <script type="text/javascript"> function getFile(fileName){ oxmlhttp = null; try{ oxmlhttp = new XMLHttpRequest(); oxmlhttp.overrideMimeType("text/xml"); } catch(e){ try{ oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e){ return null; } } if(!oxmlhttp) return null; try{ oxmlhttp.open("GET",fileName,false); oxmlhttp.send(null); } catch(e){ return null; } return oxmlhttp.responseText; } ... <body onload="document.getElementById('fillMe').value=getFile('someFile.txt');"> ... <input type="text" id="fillMe" /> [/code]
Help @aebrooks spread the word by sharing this article on Twitter...