Friday, 15 February 2013

Re: src attribute of script tag

On 15/02/2013 15:56, John Rickman Iyonix wrote:
> Chris Gransden wrote
>
>> In article <fee3641e53.iyojohn@rickman.argonet.co.uk>,
>> John Rickman Iyonix <rickman@argonet.co.uk> wrote:
>>> I have developed some web pages using javascript. NetSurf successfully
>>> handles the code and does what is required.
>
>>> However, the same javascript statements put into an external file do
>>> not work. It seems this is an html problem rather than JS as the
>>> <script src="mycode.js> </script> statement appears to be ignored and
>>> the code is not loaded.
>
>>> Is this a bug or a case of function yet to be implemented?
>
>>> At the moment lack of ablility to load external source means that
>>> JavaScript libraries, eg jQuery cannot be accessed by NetSurf
>
>> I had the same problem until I added an entry for 'applicaton/javascript'
>> to the MimeMap file.
>
> Thanks Chris,
>
> That is brilliant!

Should we add this to the platform's hardcoded mime tables ?
(beos/filetype.cpp, ...)

(/me wonders why it's not text/javascript but eh)

François.

No comments:

Post a Comment