Hovik,
I'm sorry, I don't know why it doesn't work with .aspx files. Works fine
with .asp files on a .NET Server, though!
But ask around in the ASP.NET lists.
Please let me know if you find a solution!
/Robert
-----Ursprungligt meddelande-----
Fr=E5n: Hovik Melkomian [mailto:melvik@b...]
Skickat: den 12 december 2002 09:29
Till: javascript
Kopia: robert.nyman@c...
=C4mne: Re: [javascript] SV: included js file
Dear Robert:
Tnx 4 response, I tried ur way & was great, but there is some problems
as: 1st I use ASP.NET & not Traditional ASP, so ur contentType makes to
download the ASPX file not to run it( I dont know why?!) The When I
tried to change charset 1256 all page changed :( & I just want to set
1256 to only javascript file. I think there is missing something here &
...
Looking to hear from u ASAP.
Thanks in advance,
Hovik.
----- Original Message -----
From: "Robert Nyman" <robert.nyman@c...>
To: "javascript" <javascript@p...>
Sent: Monday, December 09, 2002 2:56 PM
Subject: [javascript] SV: included js file
It can't be done through regular JavaScript, AFAIK.
But a solution (if you use ASP, that is) might to save the JS file as an
ASP file. Like this:
<script language=3D"JavaScript" type=3D"text/javascript"
src=3D"menu.asp></script>
And then in menu.asp
<%@ Page Language=3D"JScript";
<% Response.ContentType =3D "text/javascript";%>
/*
our JS code here
Here you can include other files as well, whose content will be in the
same file used for JS on the client For example:
<!--#include file=3D"someFile.asp"-->
*/
/Robert
-----Ursprungligt meddelande-----
Fr=E5n: Hovik Melkomian [mailto:melvik@b...]
Skickat: den 9 december 2002 09:05
Till: javascript
=C4mne: [javascript] included js file
Hi friends:
How can I use another code page in js file!?
DETAILS:
Im using a menu in my page that I set its values in included .js file
like: <script language=3D"javascript1.2" src=3D"menu.js"></script>
cuz menu items are not English I cant work well, of course
I use unicode & solve the problem but developing is too difficult.
Hope to dear from u, ASAP,
Hovik.
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to