Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

My javascipt code showing result in IE but now showing anything in mozila , whats the problem ?

  • 1 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi the-edmeister

more options

Hi everyone , i am trying to upload the text file contains on html page , code is working in IE but i cant say me Sir to use only IE , so is there any idea to let it work on mozila also ? code is here :

<html>
<head>
<script type="text/javascript" language="javascript">


function Read()
{
var Scr = new ActiveXObject("Scripting.FileSystemObject");
var CTF = Scr .OpenTextFile("C:\\Documents and Settings\\Administrator\\Desktop\\2011-03-02.txt", 1, true);
data = CTF .ReadAll();
data=data.replace(/\r?\n/g,"<br>");
document.write("<pre>" + data + "</pre>");
CTF .Close();
}
</script>
</head>
Hi everyone , i am trying to upload the text file contains on html page , code is working in IE but i cant say me Sir to use only IE , so is there any idea to let it work on mozila also ? code is here : <pre><nowiki><html> <head> <script type="text/javascript" language="javascript"> function Read() { var Scr = new ActiveXObject("Scripting.FileSystemObject"); var CTF = Scr .OpenTextFile("C:\\Documents and Settings\\Administrator\\Desktop\\2011-03-02.txt", 1, true); data = CTF .ReadAll(); data=data.replace(/\r?\n/g,"<br>"); document.write("<pre>" + data + "</pre>"); CTF .Close(); } </script> </head></nowiki></pre>

Được chỉnh sửa bởi cor-el vào

Tất cả các câu trả lời (1)

more options

ActiveX is IE-only, you need the proper code for other browsers.

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.