PDA

View Full Version : slow loading/refresh problem



moloko_man
11-21-2005, 04:49 PM
Not sure if my problem is in my php or my javascript, but here goes.

I have page 1 that has my form and below that fields that I populate from a mysql DB. The user can click on "add employee". here page 2 pops open with a list of employees, the user checks the employee they want to add, then when they click add the window closes and page 1 should refresh and show the new user below the form. Here is where my problem is... after page 2 closes, page 1 goes blank and sits there reloading until I get a network error. After that error I can view the page with the new employee has been added.
Anyone know whats going on?

On page 1 i'm using window.open

My reload code on pg. 2 is:



<script language="JavaScript" type="text/javascript">
<!--
opener.location.reload(true);
self.close();
// -->
</script>


I'm using a left join to display the employees, would that be slowing everything down?

Thanks

nightdriver09
12-06-2005, 09:04 AM
how do you pop-up page 2?