I need to read a text file from a client machine. Rite now i'm doing it through ActiveXObjects using javascript. Since ActiveXObject is Microsoft based, it doesn't work in other browsers except IE. IS there any other method to read ? Please advice. TIA.
Perhaps you can ask the user (of the web application) to upload the file, in which case the user will be presented with a file browser on the client side.
Why can't it be handled like that? If the answer is "that's my requirement"; then you may need to challenge this requirement. Technologies like ActiveX and applets have fallen out of favor for various reasons (like compatibility and security), and should no longer be used.