hi there,
is there any way to have a javascript onload event in the bodytag of all pagesdbman generates?
something like:
HTML Globals
##########################################################
# Put any globals you like in here for your html pages.
$html_title = ' Database Manager';
$html_body = 'onload="javascript:{if(parent.frames[0]&&parent.frames['Nav'].Go)parent.frames['Nav'].Go()}"';
##########################################################
i also tried to put that event into every single page like:
Home Page ##
##########################################################
sub html_home {
# --------------------------------------------------------
# The database manager home page.
&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Main Menu.</title>
</head>
<body onload="javascript:{if(parent.frames[0]&&parent.frames['Nav'].Go)parent.frames['Nav'].Go()}"'; >
etc
additionally i tried to call it via en external js, as suggested in on e of the earlier posts, but didnt have any luck.
PS: as you might have thought, i'm not too good with perl, but even though someone suggested one should not mix perl with js, i would be really grateful if someone could tell me if its a)possible and b) point me in the right direction.
thanks
olly
is there any way to have a javascript onload event in the bodytag of all pagesdbman generates?
something like:
HTML Globals
##########################################################
# Put any globals you like in here for your html pages.
$html_title = ' Database Manager';
$html_body = 'onload="javascript:{if(parent.frames[0]&&parent.frames['Nav'].Go)parent.frames['Nav'].Go()}"';
##########################################################
i also tried to put that event into every single page like:
Home Page ##
##########################################################
sub html_home {
# --------------------------------------------------------
# The database manager home page.
&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Main Menu.</title>
</head>
<body onload="javascript:{if(parent.frames[0]&&parent.frames['Nav'].Go)parent.frames['Nav'].Go()}"'; >
etc
additionally i tried to call it via en external js, as suggested in on e of the earlier posts, but didnt have any luck.
PS: as you might have thought, i'm not too good with perl, but even though someone suggested one should not mix perl with js, i would be really grateful if someone could tell me if its a)possible and b) point me in the right direction.
thanks
olly