Re: External file forJavaScript

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Murray (forums_at_HAHAgreat-web-sights.com)
Date: 10/08/04


Date: Fri, 8 Oct 2004 11:10:14 -0400

Not necessarily. It would depend on what the contents of thescript.js
is/are. If it contains only function definitions, then you might need to do
something like this -

<script type="text/javascript">calltheFunction()</script>

Did you get any instructions with the script?

-- 
Murray
"Fred" <fred@finecats.co.uk> wrote in message 
news:esxUtPUrEHA.556@tk2msftngp13.phx.gbl...
> Hi Murray and Steve,
>
> It's an hotel search box which obviously has a lot of JavaScript in it and 
> I need it to load half way down the page. Would I be right in guessing 
> that I insert <SCRIPT SRC="thescript.js">
> </SCRIPT> where I want it to appear.
>
> "Murray" <forums@HAHAgreat-web-sights.com> wrote in message 
> news:ukto2JUrEHA.3760@TK2MSFTNGP09.phx.gbl...
>> It would depend on what the script was doing, and what the name of the 
>> function that you need to call is.
>>
>> -- 
>> Murray
>>
>> "Fred" <fred@finecats.co.uk> wrote in message 
>> news:uKeuvuTrEHA.4008@TK2MSFTNGP14.phx.gbl...
>>> Can you please tell me what command I place in the body of the page 
>>> where I want the script to appear.
>>>
>>> "Steve Easton" <admin@95isalive.com> wrote in message 
>>> news:O2wa50SrEHA.2980@TK2MSFTNGP10.phx.gbl...
>>>> Using notepad and saving the file with the .js or .css extension.
>>>> Note that an external script file contains the actual script, but it 
>>>> does *not* contain the opening
>>>> and closing script tags.
>>>>
>>>> Then place the following between the head tags of the page:
>>>> <script type="text/javascript" src="filename.js"></script>   for a 
>>>> javascript
>>>> and
>>>> <link rel="stylesheet" type="text/css" href="filename.css"> for a style 
>>>> sheet
>>>> -- 
>>>> Steve Easton
>>>> Microsoft MVP FrontPage
>>>> 95isalive
>>>> This site is best viewed............
>>>> .......................with a computer
>>>>
>>>> "Fred" <fred@finecats.co.uk> wrote in message 
>>>> news:%23EuqqWSrEHA.596@TK2MSFTNGP11.phx.gbl...
>>>>> Can anyone please tell me how I can create an external file for 
>>>>> JavaScript.
>>>>> According to IBM, I  need to use an external file for my JavaScript 
>>>>> and
>>>>> Stylesheet code. Any help for a novice would be much appreciated. If 
>>>>> you
>>>>> need to take a look at one of my pages (produced in FP 2002) please 
>>>>> visit
>>>>> http://www.book-holidays-direct.com/Jamaica.htm
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
> 


Relevant Pages

  • Re: access code of external scripts
    ... I would like to read the contents of the external file as a string ... You say you want to "access" the code found within a script tag ... JavaScript. ...
    (comp.lang.javascript)
  • Re: External file forJavaScript
    ... It would depend on what the script was doing, and what the name of the ... >> and closing script tags. ... >>> JavaScript. ... I need to use an external file for my JavaScript and ...
    (microsoft.public.frontpage.client)
  • Re: External file forJavaScript
    ... want the script to appear. ... > and closing script tags. ... >> JavaScript. ... I need to use an external file for my JavaScript and ...
    (microsoft.public.frontpage.client)
  • Re: External file forJavaScript
    ... That depends on what you're trying to do with your script, what the script is supposed to do!! ... > "Steve Easton" wrote in message ... >>> JavaScript. ... I need to use an external file for my JavaScript and ...
    (microsoft.public.frontpage.client)
  • VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
    ... Job is to convert that JAVASCRIPT code into SIMPLE VBA code ... Here's a bookmarklet that will tell you whether or not the browser ... JS sends request to the server (to a PHP script) ... This is the PHP script. ...
    (microsoft.public.vb.controls.internet)