supermerc Posted July 14, 2009 Share Posted July 14, 2009 Hey, I have a script where when you click on a link it opens from 20-30 iframes in the page to a x,y coordinate where is located a recaptcha so its basicly 20-30 recaptcha's beside each other. The only problem is that it can take a while to load 20-30 pages and you cant really start entering them till they are all loaded so you lose a lot of time. What I thought of doing is make them open in popup and make there only like 5 per page. My code right now is: <?php include 'config.php'; $order = $_GET['order']; $raid = $_GET['raid']; $all_members = mysql_query("SELECT * FROM accounts where rank = '$order' ORDER BY level DESC") or die(mysql_error()); if(mysql_num_rows($all_members) > 0) { while($row = mysql_fetch_assoc($all_members)) { $q = mysql_query("SELECT * FROM accounts") or die(mysql_error()); if(mysql_num_rows($q) > 0) { echo "<iframe src=\"scroll.php?id=$row[owid]&raid=$raid\" width=\"325\" height=\"200\" scrolling=\"no\"></iframe>"; } } } echo '</table>'; ?> So it loops all the accounts in database to load in iframe, but what i want is to load first 5 in popup, then 5 other in another popup etc. Can anyone help? Link to comment https://forums.phpfreaks.com/topic/165921-new-window-php-javascript/ Share on other sites More sharing options...
phporcaffeine Posted July 14, 2009 Share Posted July 14, 2009 Well in javascript you have the window.open and window/parent.location methods that may be of some help. window.open however will generally run you into a pop-up blocker issue. Link to comment https://forums.phpfreaks.com/topic/165921-new-window-php-javascript/#findComment-875133 Share on other sites More sharing options...
supermerc Posted July 14, 2009 Author Share Posted July 14, 2009 But i dont understand how can I make my loop open 5 iframes in new page then 5 more in new one after that etc. Link to comment https://forums.phpfreaks.com/topic/165921-new-window-php-javascript/#findComment-875137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.