HTML - Popup Refresh Problem
Hi,
Iam generating a html page which creates popup windows on onload event, and data is written to html. When i refresh the initial html page,the data in the popupwindow is duplicating Is there any way to recreate the popup windows without data duplication? i tried using target_new but there new popup windows are created. Below is the html code : Code: <html> <script language="javascript"> var text=new Array(); text[0]='1'; text[1]='2'; text[2]='3'; text[3]='4'; function poponload(count) { alert('here'+count); var testwindow; for(var i=0;i<count;i++) { testwindow= window.open ("", "window"+i,"location=1,status=1,scrollbars=1,width=100,height=100",bgcolor="pink") alert('text[i]'+text[i]); testwindow.document.write(text[i]); testwindow.moveTo(i,0); } } </script> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor=#F535AA" onLoad="poponload(4)"> <form name=test1 method="post" action="test2" > </form> </body> </html> Kindly guide, Thanks in advance, arv Similar TutorialsHi, I'm having an issue with my website.. I can' t open my popups anymore. If you click on any of the pictures you will see that nothing happen. http://bridge.narbonne.assoc.pagespr...animations.htm I'm not a webmaster, and this is a old website... Maybe I guess it needs some modifications in the code? This is javascript... Thank you for your help. Cheers I have created a page which consists of 2radio buttons(r1,r2). When user selects radio button1(r1) a table(t1) belong to r1 is displayed.This is by default I mean radio button(r1) is Checked and table(t1) is displayed when this page is runned. When user selects 2nd radio button(r2) a table(t2) is displayed in place of t1. Every thing is working fine.Problem is when user selects radio button2 and if he refreshes page table t1 is being displayed with r2 checked this is where I am Placing problem. Can anyone resolve this issue and give a suggestion how to display table belong to corresponding clicked radio button even after page refresh. Reference: http://www.noahscs.com/realestate.html So the entire form on this page is within an iframe. The iframe should refresh itself upon submit. It works fine in IE, but does not refresh in FF. Anyone have any ideas why? Would anyone have any idea why, sometimes when I refresh this page www.bopia.com or browse random pages within the site, the right div will show inside the left div? It happens in different browsers and different computers. In other words, the main content is showing inside the sidebar after the sidebar's content... Only happens sometimes, you may need to refresh a couple of times before you may see it happening. The pages are php, I figure the servers know how to serve php pages, have you ever seen this problem? Do you know if I need to specify any special Content-type? I triple checked the source and all divs are opening and closing correctly. Thank you! Hi All, I want to refresh the contents of IFrame without refreshing the whole page.....How is it possible... Hello I have a web page where I display 2 frames The bottom frame is a link to REPORT SERVICE Every day at 5 am server does RESTART and then I get an error (split screen is open 24 hours) How do I do REFRESH automatically after receiving an error? Thanks in advance I have this problem, Put the script on my page. in this script the people vote but When they return to the site the text of this form again at 1 and not recognized the vote.As I keep the voting when users refresh the page <form name="HOME"> <input type="text" value="1" name="CASA"> <input onclick="document.HOME.CASA.value = Number(HOME.CASA.value)+1;" type="button" value="Vote"> </form> As I keep the voting when users refresh the page i developing a web application one of page has following code Code: <frameset rows="12%,70%,12%" border="0" > <frame src="Frame/header.html" scrolling="no"> <frameset cols="28%,*" border="0" > <frame src="Frame/Menu.html" scrolling="no" > <frame src="Frame/content.html" name="ShowContentArea" scrolling="auto"> </frameset> <frame src="Frame/footer.html" scrolling="no"> </frameset> now for the second frameset , my problem is as below menu.html contains a dynamic tree structure , clicking on which m contents are displayed in content.html Now there is one more link to add a menu item in menu.html, if i click on that link the respective form to add menu item is displyaed After submission of the form the menu item is added to database but not reflected in menu.html as a another menu item . But if i refresh the whole page that menu item is get displayed That means i just want to set the refresh value of the whole page after adding a new item !!!!!!! but i tried a lot but failed , thats whay i need ur help , please help me guyes Thanks I really need help on this this is the original code : - Code: <html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <meta name="generator" content="Andy Moo http://locationdetection.mobi/"> <title>TEST1</title> </head> <body> <div id="geo" class="geolocation_data"></div> <?php include 'geojavascript.php'; ?> </body> </html> I would like to add ajax auto refresh.. to refresh the div link which is something like this : - Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script src="http://ajax.googleapis.com/ajax/ libs/jquery/1.3.0/jquery.min.js"></script> <script> var auto_refresh = setInterval( function() { $('#geo').fadeOut('slow').load('geojavascript.php').fadeIn("slow"); }, 20000); </script> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <meta name="generator" content="Andy Moo http://locationdetection.mobi/"> <title>Locator</title> </head> <body> <div id="geo" class="geolocation_data"></div> <?php include 'geojavascript.php'; ?> </body> </html> But, there is something wrong here... instead of refreshing the div.. it refresh html page only.. not the div data.. anyone.. please help me on this ? thanks in advance guys... -------------------------------------------------------------------------------- Hey How can i wrote a program that refresh a web page and checks if a certain string is in the page ? Hello guys, first time posted, long time watcher! Really wanted a little bit of advice on something i'm trying to do at work. We use a web based helpdesk system to log our technical support calls, but it kicks us out every 10 mins if we leave our desk for something and have to go through the long process of logging in again. I was woundering if i created a frame set in another window and kept refresh the home base of the helpdesk system every say 1 min it would keep the connection up. Is this possible? Dave Hi Does anyone know of a way to make webpages instantly refresh themselves when they are viewed. I'm changing content daily and having bother with people not being able to see all the new stuff as they are loading yesterday's page from their cache. Any help would be greatly appreciated. I want to refresh the page after clicking submit button with interval of 10 seconds. How can I do that? My IE is configured to automatically find the most rexent page, so when I address a website I see the current page. However, Safari and Firefox do not seem to have this optiion. So, when users address my website with those browsers they have to push the refresh button to be sure they are seeing my site's latest page. Yet when I use those browsers to access websites other than my own, I seem to get the latest page. This suggests that there may be a way to include in a page file a code that forces refresh. I know that there is a code ("no archive") that does the job where a search engine is involved, but how do I handle this problems where my URL is being directly addressed? I'm working on an HTML page that is going to be an iFrame on another page. The innerHTML of the iFrame page is set to automatically refresh every 20 seconds. The problem is that when that page refreshes, it "flashes" a white background for about 2 seconds before loading the background and content. How can I prevent that from happening every time it refreshes? Here is the page that has the problem: http://www.mattscss.com/rtb/template Here is the page that has the above link as an iFrame: http://www.mattscss.com/wzmr/wzmr_wmp.htm my webpage is divided by div. i face a problem which is, i want to open a link which will refresh the whole page instead of refresh the div. i'm not familiar using div, need help from someone plz..... thanks in advance... This is my first time posting here and was needing some help regarding auto refresh in html. I have a web page on our local network for my work that uploads screen shots of security cameras around the different locations. I have the page set to auto refresh and when it does refresh to redirect to another page that has a different set of cameras on it. The redirect works but the problem is after leaving this page up and running for several hours it will get stuck after a redirect and will keep trying to load the page for hours and wont redirect. It usually gets stuck on grabbing one of the images of the cameras, and then has problems displaying the image which then causes the page to sit and try to load for hours with no redirect. I was just wondering if there is anything that i can do for this? I am new to html and dont know much so any help will be greatly appreciated. Dpat We have an web application that currently uses standard javascript popups. If we change them to open in a new tab instead of popups, will popup blockers still treat the opening into a new tab as a popup? Thanks, s-one Hi, sorry for my english. I'm searching a script to make a particulary popup. In this link there is an example, is flash popup with spot Microsoft. LINK EXAMPLE POPUP I use this code but I search the code for flash popup not for img popup Code: <script> Crea(); function Crea(){ var div = document.createElement('DIV'); div.id='Banner'; div.style.position ='absolute'; div.style.top = "250px"; // Distanza dall'alto div.style.left = "200px"; // distanza da sinistra div.onclick = Chiudi; div.innerHTML='<img src=popup.jpg>'; // Percorso immagine document.body.insertBefore(div, document.body.firstChild); } function Chiudi(){ var div=document.getElementById('Banner'); div.style.display='none'; } </script> Thanks Okay, so heres my problem, i am creating a page for a touch screen based intranet at Coca Cola in Australia. the homepage will be the main page, other links will only be viewed for short amounts of time. is there anyway to make it so, if there is no activity for an amount of time (say 5 minutes) the page will refresh to the homepage ? I have tried Combining these to codes that i have found off the net, but just cant get it to work - THIS CODE IS FOR AUTO REFRESH <head> <title>Auto Reload</title> <script language="JavaScript"> <!-- var time = null function move() { window.location = 'http://yoursite.com' } //--> </script> </head> <body onload="timer=setTimeout('move()',3000)"> <p>see this page refresh itself in 3 secs.<p> </body> THIS CODE IS FOR NOTICE WHEN INACTIVE <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9" /> <title>5 seconds mouse inactivity</title> <script language="javascript"> var activity; document.documentElement.onmousemove = function() { clearInterval(activity); activity = setInterval(saySomething, 5000); } function saySomething() { alert("it's been 5 seconds that your mouse didn't move Smile"); } </script> </head> <body onload="activity=setInterval(saySomething, 5000);"> </body> </html> I want it to Load a Page When Inactive, rather then Alert |