|
That seems to work. I am just looking at the
differences between putting onload in the body tag or in the js.
Thanks,
----- Original Message -----
Sent: Monday, February 06, 2006 12:23
PM
Subject: [Easy400Group] Re: _javascript_
source not getting included in html
In the external js do something similiar
to:
<!-- YourFunction = function(){ // your code
here }
if (window.attachEvent)
window.attachEvent("onload",
YourFunction) else
window.> This
will "attach" the function to the onLoad event.
-->
--- In [email protected],
"Jeff" <[EMAIL PROTECTED]> wrote: > > To make sure the js
source worked I copied it into the html and commented out the
<script...src="" line and it worked fine. I did a view source and it
looked OK there also. I then removed the js from the html and put in
the <script...src="" line and receive the same error as before
(CheckRequirements is not defined). When I did a view source on that
html I can see the <script...src="" line but of course you cannot
see the js it copies in. > > I then put js "alert" messages
before and after the <script...src="" lines and it looks like it
loads it before the <body> tag so I cannot figure out why it says
that "CheckRequirements is not defined." I also put in js "alert"
messages at the beginning and end of the CheckRequirements routine but
those never shown. When I copied the js source into the html then the
alert messages in the CheckRequirements routine shown. > > I
then tried using Mozilla's _javascript_ console and that did not seem to help
because the error shown up in the console way after the <body>
tag. > > I even tried an absolute path in place of the relative
path and that did the same. I checked again to see if the other js
routines in the same folder were working and they were. > >
Stumped. > > If nothing else, I can always copy the js source
into all the html source that uses it. I have proven that will
work. > > Thanks again. > Jeff > >
----- Original Message ----- > From: Tom Jedrzejewicz
> To: [email protected] >
Sent: Saturday, February 04, 2006 3:02 PM > Subject: Re:
[Easy400Group] _javascript_ source not getting included in html >
> > Jeff .. > > Two
thoughts .. > > 1 -- Have you examined the source
that is actually presented to the browser for the application that is
working and the one that is not. It stands to reason that you will
find something in that comparison. > > 2 -- The path
to the _javascript_ file is relative rather than absolute. Have you
confirmed that it is correct for the URL that calls the
application? > > Take care. > >
> On 2/3/06, Jeff <[EMAIL PROTECTED]>
wrote: > That was a typo, also along with the
"langauge". I checked the source and the " are in
there. > Thanks > >
> ----- Original Message -----
> From: [EMAIL PROTECTED]
> To: [email protected]
> Sent: Friday, February 03, 2006
2:15 PM > Subject: Re:
[Easy400Group] _javascript_ source not getting included in html >
> > > Jeff - You are
missing a double quote after the .js in the src tag. > >
>
>
"Jeff" <[EMAIL PROTECTED] >
>
Sent by: [email protected]
>
02/03/2006 12:10 PM Please respond
to >
[email protected] > >
> To
<[email protected]>
>
cc
>
>
Subject [Easy400Group] _javascript_ source not getting included in html
> >
>
>
>
>
> > > > I have
a CGIDEV2 app that I am using _javascript_ in and there is some _javascript_
that is in just about all pages so I want to take that out and put it in
it's own file. I have done this with other _javascript_ and it has
worked fine. My problem with this one is that is it being called by using
the following: >
> <body
>
>
> and I keep getting an error that
says it cannot find the CheckRequirements object. The following line
is in the <head> tag section:
>
> <script
langauge="_javascript_" src="" Easy400Group" on the
web. >
> b.. To
unsubscribe from this group, send an email
to: >
[EMAIL PROTECTED]
>
> c.. Your use of
Yahoo! Groups is subject to the Yahoo! Terms of Service . > >
> -------------------------------------------------------------------------- >
> > > >
> SPONSORED LINKS How to format a
computer hard drive Cobol programmer Iseries 400
>
How to format a computer How to format your computer How to format
computer > >
> -------------------------------------------------------------------------- >
YAHOO! GROUPS LINKS >
> a.. Visit your
group "Easy400Group" on the
web. >
> b.. To
unsubscribe from this group, send an email
to: >
[EMAIL PROTECTED] >
> c.. Your use of
Yahoo! Groups is subject to the Yahoo! Terms of Service. > >
> -------------------------------------------------------------------------- >
> > > > -- > Tom
Jedrzejewicz > [EMAIL PROTECTED] > >
SPONSORED LINKS How to format a computer hard drive
Cobol programmer Iseries 400
> How to format a
computer How to format your computer How to format
computer > >
> ------------------------------------------------------------------------------ >
YAHOO! GROUPS LINKS > > a.. Visit
your group "Easy400Group" on the
web. >
> b.. To unsubscribe from this group,
send an email to: >
[EMAIL PROTECTED] >
> c.. Your use of Yahoo! Groups is
subject to the Yahoo! Terms of Service. > >
> ------------------------------------------------------------------------------ >
SPONSORED LINKS
YAHOO! GROUPS LINKS
|