Closed Thread Icon

Topic awaiting preservation: Javascript functions outside of the head (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9025" title="Pages that link to Topic awaiting preservation: Javascript functions outside of the head (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Javascript functions outside of the head <span class="small">(Page 1 of 1)</span>\

 
jstuartj
Bipolar (III) Inmate

From: Mpls, MN
Insane since: Dec 2000

posted posted 02-15-2004 05:59

Quick question. Appearently you need to use javascript to trigger quicktime in a seperate bowser, from a standard link. The problem is the page is build by s ASP content management system, which I really can't mess with at this time. Now I think I should beable to include inline javascripts, but my javascript is a little rusty, can I define a function, and later call the function if the function is defined within that body, or will the function cease to exist once the script is exacuted. I need to do some experments but I someone knows up front you could save me some time.

J. Stuart J.

jstuartj
Bipolar (III) Inmate

From: Mpls, MN
Insane since: Dec 2000

posted posted 02-15-2004 06:10

Well da... I guess I could just embed the Quicktime in a seperate page, and then simply add a link with target. Perhaps I have had too much beer or too little sleep. I am a little bit rusty, on web stuff, but the new job should fix that. I still would be intrested in knowing if fuctions are useable outside of the head, in popular browsers.

J. Stuart J.


[This message has been edited by jstuartj (edited 02-15-2004).]

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 02-15-2004 19:48

Hi jstuartj,

Yes you can put JavaScript in the body and yes you can divide it up into separate chunks such that a function is defined in one chunk and called from others. You can even put chunks of javescript outside the body and use them at other locations, however, xhtml validation will complain if the chunks are not in the <body> or the <head>.


-- not necessarily stoned... just beautiful.


[This message has been edited by hyperbole (edited 02-15-2004).]

jstuartj
Bipolar (III) Inmate

From: Mpls, MN
Insane since: Dec 2000

posted posted 02-15-2004 21:35

Thanks a lot that's good to know.

« BackwardsOnwards »

Show Forum Drop Down Menu