Function definition placement
In an ASP file, if the definition of the function F() is taken out from within <% %> and placed within
then the server returns with an error.
Is there some rule governing function placement?
var Seven = F();
Response.write("Seven = " + Seven);
Originally Posted by ROK
functions should be declared before the are used...(according to jslint)..
JS functions that manipulate the html must wait for the html is finished loading before JS can do its stuff...
Thanks for the reply.
YES on your statements #1 (20 years at C++ taught me that) & #2.
I stumble upon this anmomoly when I was using the syntax '... src= "..." ' as an "include" statement within <script> </script>. I have recently seen in the literature the syntax "#include" for ASP code. I'm looking into that now.
(p.s. If you were to view my profile, you might want to modify you moniker to "GrumpyNotSoOldMan"
Talk about shooting the messenger.
As for your profile I could not care if you where Gates, Hickson or Crockford for that matter.
If you are willing to rephrase your request so we do not need to view your profile and be mid readers then some-one will respond appropriately. I look forward to it.
My P.S., as indicated by the accompaning icon, was intended to interject a bit of potential humor relating to our relative ages.
Your moniker is apropos without modification.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)