I'm working on a little rating system but ran into a problem.. On a results page i open up a pop-up window so you can vote 1 to 10 points.
Now my problem,
Everything works fine and once voted i close the window, but the problem is in the refresh of the parent window. I tried using window.opener.reload() and this one gives me an error and says something about retry.. I've tried numerous ways to fix it.. I found a fix but then the main window doesn't get updated, probably because the refresh is be4 the submittal of the popup...
So i'm trying to find a way to submit the popup, close it and refresh the main window.. I've tried just about everything and can't seem to get it to work...
Here a few examples of what i've tried:
Code: Select all
Here i think my problem is trying to refresh before the submittal and i get an error and have to hit retry.
<form name="form3" action="index.php?<variables>" method="post" onSubmit="window.opener.reload();window.close();">
This one seems to work, but it doesn't refresh the page until i hit F5.
<form name="form3" action="" method="post" onSubmit="window.opener.reload('index.php?<variables>');window.close();">Is there a way to submit the popup data on to the main window and work from there?
Hope someone can help me though...
Edit: I think I solved my problem.. window.opener.location.reload() wasn't an option for me... I'm not completely content with the result but i have a working solution..
The part i'm still not content with is that i have to pass vars back to the main page through an URL. I rather have them submitted so that they don't show in the URL...
But then again, after fiddling for 2 days it does work.. LOL... So no complaints here.. heheheh