forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: donnoman on December 19, 2004, 02:53:48 am

Title: Java Warning: document.searchcpg has no properties
Post by: donnoman on December 19, 2004, 02:53:48 am
Code: [Select]
Error: document.searchcpg has no properties
Source File: http://donnoserv/devel/search.php
Line: 261

I get this on both FF and IE, using classic and other themes.

Code: [Select]
<tr><td class="tableb">You are running Coppermine  1.4.1 (beta) which is only meant for very experienced users - this version comes without support nor any warranties. Use it at your own risk or downgrade to the latest stable version if you need support!</td></tr></table>
<!-- End standard table -->
<br />
              <script language="javascript" type="text/javascript">
<!--
document.searchcpg.search.focus();
-->
</script>

<form method="post" action="thumbnails.php" name="searchcpg">
Title: Re: Java Warning: document.searchcpg has no properties
Post by: Nibbler on December 19, 2004, 03:03:28 am
That would be my fault, I never see js errors in FF.
Title: Re: Java Warning: document.searchcpg has no properties
Post by: Nibbler on December 19, 2004, 03:11:26 am
Moving the javascript section to the bottom of the page solves the problem for me, is this an acceptable solution ?
Title: Re: Java Warning: document.searchcpg has no properties
Post by: Tarique Sani on December 23, 2004, 05:54:49 am
Yes this is acceptable - did you commit it - if not please do it - thanks
Title: Re: Java Warning: document.searchcpg has no properties
Post by: Nibbler on December 23, 2004, 01:59:23 pm
Commited into 1.13