Javascript file not being called at appropriate time in 2.0?
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Quick 2.0 question. I have this script in my <HEAD> tag:
<script TYPE="text/javascript" src="js/myscripts.js"></script>
I'm using the callback functionality of 2.0 and the page doesn't work
correctly because the javascript file is clearly being loaded at some
time that is incompatible with the back-end code. HOWEVER, when I copy
and paste the actual script (the javascript code, not the file) in the
exact same place in the <HEAD> tag, everything works great.
Why is that?
.
Relevant Pages
- Re: RFD: How To Recognize Bad Javascript Code
... Elements consist of tags ... Your example `script' elements are empty where they should have ... | Using the pseudo-protocol javascript in the href is never valid. ... Some web developers use this to work ... (comp.lang.javascript) - Re: More than a single script block within a single HEAD and BODY
... Can there be more than a single script block in a given HEAD tag? ... The W3C HTML validator lets you paste markup directly into the validation form. ... (comp.lang.javascript) - Re: Help-Need confirmation page email address to be assigned to a javascript variable - Stuc
... I have tried that and just awaiting results from the tracking company...but ... as you say the problem lies in the statement between the no script tags ... JavaScript - and JavaScript is not available if a tag is ... (microsoft.public.frontpage.programming) - Re: Is there a correct place to put javascript within a html file?
... The HTML specification tells you where script elements are permitted: ... script files have downloaded and if they're all in the head ... ... like the sensible thing to do; at least there's a reason for it. ... javascript is positioned just before the then the various html ... (comp.lang.javascript) - Need Help with Registering Client Scripts
... I assume the second script is a start-up script since it is not a callable function. ... I see neither registered scripts are placed within the <head> tag. ... I need to put this in a control that really should register the scripts in an organized way. ... (microsoft.public.dotnet.framework.aspnet) |
|