Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

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

  • 1 ответ
  • 1 имеет эту проблему
  • 1 просмотр
  • Последний ответ от 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>

Изменено cor-el

Все ответы (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.