Gossamer Forum
Home : Products : DBMan : Customization :

Javascript

Quote Reply
Javascript
Is there anything I have to pay attention to if I want to inccorporate javascript in my html.pl file?
Quote Reply
Re: Javascript In reply to
Just put the codes between the following anchors:

Code:
<head>
</head>

If you are going to use common javascript for all your sub-routines in the html.pl file, then you can create a sub-routine like the following:

Code:
sub javascript {
#-----------------------------------------
# prints javascript codes in sub-routines

print qq~ JAVASCRIPT CODES~;
}

Then you will have to insert this sub-routine as follows:

Code:
<head>
|; &javascript; print qq|
</head>

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------




[This message has been edited by Eliot (edited December 20, 1999).]