Dear experts,
I have a problem with session_start() and JavaScript. In IE6 (but not
Mozilla) the first time the page below loads the JavaScript doesn't
work (clicking on the graphic should write 'click' in the form entry
box). After you hit refresh it works fine. IE doesn't report any error
(reporting is turned on). It also works fine if I remove the
"session_start( )". Is this an IE bug or am I doing something wrong?
Is there a fix or a work-around? Any help would be greatly
appreciated. I'm using PHP Version 4.3.8 on an Apache server (the full
"info()" can be seen here:
and the code included below can be tested here:
Sincerely,
Paul van Wamelen
<?php
session_start() ;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaS cript" type="text/javascript">
<!--
function BoardClick(){
document.GetMov eForm.elements[0].value = 'click';
}
// -->
</SCRIPT>
</HEAD>
<BODY vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff >
<IMG src="DruidBack1 x6.png" onClick='BoardC lick()'>
<FORM name=GetMoveFor m action=Druid.ph p method=get>
Click or enter move <INPUT maxLength=30 size=10 name=1>
<INPUT type=submit value="View move"></FORM>
</BODY>
</HTML>
I have a problem with session_start() and JavaScript. In IE6 (but not
Mozilla) the first time the page below loads the JavaScript doesn't
work (clicking on the graphic should write 'click' in the form entry
box). After you hit refresh it works fine. IE doesn't report any error
(reporting is turned on). It also works fine if I remove the
"session_start( )". Is this an IE bug or am I doing something wrong?
Is there a fix or a work-around? Any help would be greatly
appreciated. I'm using PHP Version 4.3.8 on an Apache server (the full
"info()" can be seen here:
and the code included below can be tested here:
Sincerely,
Paul van Wamelen
<?php
session_start() ;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaS cript" type="text/javascript">
<!--
function BoardClick(){
document.GetMov eForm.elements[0].value = 'click';
}
// -->
</SCRIPT>
</HEAD>
<BODY vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff >
<IMG src="DruidBack1 x6.png" onClick='BoardC lick()'>
<FORM name=GetMoveFor m action=Druid.ph p method=get>
Click or enter move <INPUT maxLength=30 size=10 name=1>
<INPUT type=submit value="View move"></FORM>
</BODY>
</HTML>
Comment