Open Bug 377533 Opened 18 years ago Updated 3 years ago

Firefox does not support run-time javascript file handling.

Categories

(Core :: DOM: Core & HTML, enhancement, P5)

x86
Windows XP
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: soliver, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Nowadays we use javascript heavily. IE supports run-time javascript file handling!!!!! FF does not. Example: -------------------------------------------------------- //runtime_example.js var langcode = navigator.systemLanguage; var str = <scr'+'ipt language="javascript" src=" data_' + langcode + '.js"></scr'+'ipt>'; document.writeln(str); -------------------------------------------------------- //runtime_example.html - works sometime or not. <html> <head> <script language="javascript" src="runtime_example.js"></script> </head> <body> <script language="javascript" > // Body javascript // some javascript using data_xx.js </script> </body> </html> -------------------------------------------------------- IE and FF both load "data_xx.js" file. But IE and FF both do not support this program. Because as soon as they compile the javascript in Header without loading "data_xx.js" file completely, they excute the javascript in Body. Now there is a solution for iE -------------------------------------------------------- //runtime_example.html - works perfect. <html> <head> <script language="JScript.Encode" src="runtime_example.js"></script> </head> <body> <script language="javascript" > // Body javascript // some javascript using data_xx.js </script> </body> </html> -------------------------------------------------------- if we use language as "JScript.Encode", IE compiles the javascript in Header and completely load the file "data_xx.js". Then they process the javascript in Body!!! This makes IE handle Javascript file in run-time!!! Reproducible: Always Steps to Reproduce: 1. 2. 3. This function makes programming very simple and speedy. 1 We do not need to connect the server. 2 We need only one HTML file instead of lots of ASP or PHP files.
Assignee: nobody → general
Component: File Handling → DOM: Level 0
Product: Firefox → Core
QA Contact: file.handling → ian
Assignee: general → nobody
QA Contact: ian → general
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.