Re: #include Java in HTML ?

From: peterken (peter273_at_hotmail.com)
Date: 05/18/04


Date: Tue, 18 May 2004 09:23:12 GMT


It was Javascript I was talking about, sorry if my post was a bit confusing.
Ronx's solution works fine, thanx, saves me lots of editing now.

"Ronx" <ronx917@hotmail.com> wrote in message
news:uno2BK%23OEHA.3476@TK2MSFTNGP09.phx.gbl...
Java and JavaScript are two very different, completely unrelated, animals.
Java will not work on new installations of IE6 or WindowsXP unless the
users download a Java Virtual Machine from Sun's website.

Assuming you mean JavaScript and do not mean Java, place this in the head
section of each page:

<script language="JavaScript" type="text/javascript"
src="path/to/script.js"></script>

-- 
Ron
Reply only to group - emails will be deleted unread.
"peterken" <peter273@hotmail.com> wrote in message
news:CyXpc.112185$TY7.6357091@phobos.telenet-ops.be...
> Hello group
>
> Being a rather newbie I was wondering if in HTML one can include a
> javascript file in a HTML page using some C/C++ syntax like <#include
> "file.h">.
>
> To describe the prob:
> I've got a rather large set of html-pages all using identical
> javascript-functionality BUT using/modifying some local parameters of the
> html-file itself.
> I'd love to "include" the java-file as "included file" and call upon it's
> functions, would make any alterations to the JS itself easier since not
> editing all individual pages.
>
> Note: My providers server doesn't support SSI, PHP, ASP etc but Java
seems
> to work OK for every individual page (at least....so far it does).
>
> Thanks
> P.
>
>
>


Relevant Pages

  • Re: Connect to Web interface to process data
    ... >>> I would like to use Java to connect to a Web page. ... > http://bioinfo.cis.nctu.edu.tw/service/gprm/) it seems to be Javascript, ... to an otherwise fully functional HTML form element. ...
    (comp.lang.java.programmer)
  • Re: Attempt to de-mystify AJAX
    ... I jumped into Java Server Faces because you could supposedly use it without JSP, using straight java code for everything. ... And since it is still an approach to client event handling on the server, it is suggested to incorporate javascript where needed. ... Java doesn't run in the browser and interact with the DOM. ...
    (comp.databases.pick)
  • Re: Javascript
    ... Java and Javascript are two different things. ... Applets are downloaded as separate files to your browser alongside an HTML ... |> opened up a browser window and brought it to google now a browser window ...
    (microsoft.public.security)
  • Re: Service Pack 2, file:///C:/index.htm Javascript blocked disabled
    ... Although this SP2 issue also occurs with Java, Java and Javascript are not ... I had a similar situtation with local HTML files used as custom start ... It doesn't specify where in the HTML file it should go, ...
    (microsoft.public.windowsxp.general)
  • Re: Java Applet pulled from VMS Web Server
    ... Java Applet JAR file are not "surfaced" by AJAX? ... 2a) Created a socket and connect back to the VMS server that is hosting the ... Are you really saying that Javascript is incapable of accessing any of the ...
    (comp.os.vms)