I have a php page with three main sections. Php generates all of the HTML for sections two and three with the echo(); command after variables are passed from the database.
Section one is just the meta tags, headers, style, etc.
Section two creates buttons and displays data. The buttons are created via this command:
echo("<input style=\"background-image:url(../images/pencil.gif); width:21px; height:20; border:0px; cursor: hand;\" name=edit".$info['lenderid']." type=button value='' onClick=\"openEdits(lendersArray,'".$info['lenderid']."','ala".$info['lenderid']."');\">");
There are four buttons generated per record returned from the DB and there are typically about 20-30 records returned. All buttons for all records are identical as the HTML is generated in a WHILE LOOP.
Okay, now for the strange part...When I load the page, imagine that there is a virtual horizontal line 70cm (3") down from the top of the browser. NONE of the buttons ABOVE that line fire the onClick() event. It doesn't matter if I only return 2-6 records, or 50 records, tha same issue exists.
Now, if I comment out section two so that it doesn't get generated, ALL the buttons work as expected.
It seems to me that the system is going along generating the page, it gets started on section one stuff, but stops to see what's going on in section two, likes that better so it completes section two, then comes back to section one, only it ALWAYS forgets where it was and starts 70cm (3") below the top of the browser to begin implementing the onClick() events.
I realalize that the server doesn't have a personality, but that is the best way I can think of to explain the situation. Anyone have any ideas? If you need the code, I can email it or post the lot of it here.