By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,524 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

Importing a js file

toxicpaint
P: 58
Hi there.

I'm doing a job in a content management system and the controlling buggers censer anything after <script so, for example, if I want to import a js file and type
<script src="http://www.sophos.com/virusinfo/infofeed/hoax.js"></script>

it turns it into

<script></script>

Is there any other way of importing a js file?

There's no way I can move the js file as it is on another website and the reason we have to use their js file is they store an array in it with current viruses and hoaxes. By linking to their js file, we can therefore build a table of the latest virsuses and hoaxes on the net dynamically.

Any help would be appreciated.

Cheers
Oct 4 '06 #1
Share this Question
Share on Google+
4 Replies


P: 12
are you using any kind of server side scripting? maybe you could read the file and include it with a server side include...?
Oct 9 '06 #2

toxicpaint
P: 58
are you using any kind of server side scripting? maybe you could read the file and include it with a server side include...?
Thanks for your help.

They don't allow include files either.
Oct 9 '06 #3

P: 12
this is tough, not being able to use the same environment you are using, but i am wondering if you might be able to trick it with something like this:

<body ONLOAD="document.write('<' + 'script src=http://www.sophos.com/virusinfo/infofeed/hoax.js language=javascript><' + '/script' + '>');">

good luck :|
Oct 9 '06 #4

toxicpaint
P: 58
this is tough, not being able to use the same environment you are using, but i am wondering if you might be able to trick it with something like this:

<body ONLOAD="document.write('<' + 'script src=http://www.sophos.com/virusinfo/infofeed/hoax.js language=javascript><' + '/script' + '>');">

good luck :|
Nope. It changes the body tag from
<body ONLOAD="document.write('<' + 'script src=http://www.sophos.com/virusinfo/infofeed/hoax.js language=javascript><' + '/script' + '>');">

to

<body>

Thanks for the attempts, but alas they're all in vain.. God I hate management systems.
Oct 13 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.