Can anyone give me a script or a link to a tutorial on how to refresh the window from another window? Example:
I have a list of items and there is a link for each item to delete them. When I click delete a new window pops up asking are you sure. When I click yes i want that window to close and the main window with the list of items to refresh to show the change.
when i load page it does nothing only blank page, may have code in wrong place but not sure so can someone show me a working example so i can find out what i'm doing wrong also i would like the part of page to refresh evey 120 seconds is this possibe with jquery?
I have a website that uses a custom built webserver to serve the pages. (Please don't ask me why my boss had his own web server written). I am displaying a log of information that is an unknown number of rows. This is currently displayed in a table.
The table is generated by some code that we had to write (thank you custom webserver) so that the webserver will parse HTML files and fill in the tags we created with some data before returning that to the browser, the HTML looks a lot like ASP or JSP using the <% %> tags to denote something to be filled in.
Now all that works fine and dandy, but in order for this log of information to show the latest stuff, the page needs to refresh and tell the server to go get the list of log info and fill in the HTML with the info then return it to the browser. All this happens pretty quick, but like any site, the page blinks while it refreshes.
Now my boss wants that page to update without refreshing (the blink annoys him apparently). At first I said that it couldn't be done, but he said that he didn't believe me. Thus I am forced to ask you guys.
I know you can update fields like that using JavaScript. (I made a font tag with an id and a JavaScript function resets the nodeValue. This changes the text without refreshing the screen). But my problem now is that I need to POST to the server to get the information without the page refreshing (through JavaScript?). Is this even possible? I planned on getting the data back and document.write() it all to the page.
I have an easy question, likely, that has me in a headspin. I have an include file to a frames based site that basically forces frames on the end user if they visit the site and hit a non-frames created page...
Simply, it is:
if (parent != self) self.parent.location.replace("/");
However, now I would like to force an inner frame to populate based on what frame someone was redirected from the include (above). So, if I visit http://domain/frame/innerframe_3.html, then I want to redirect to the above, but pass in /frame/innerframe_3.html to be included as a URL parameter for an inner frame to be populated.
When I modify this link to:
if (parent != self) self.parent.location.replace("/index.php?redir=" & location.href);
Then, the replaced location doesn't seem to recognize the ?redir= portion of the new location.
Is there a different way to do this? I can't use a META tag because I want the TARGET to be _TOP, basically.
Our company own a lot of domains and want to put a short page of copy on each address along with keywords before redirecting the user to our main site. I have been able to get the page to load the main site after the desired time using this code in the head...
That works perfectly, I am now trying to display a countdown timer from 40 seconds down to 0, and on 0 redirect the user. Saying something like "You will be redirected in XX seconds". Is there anyway of doing this? I've been searching google for the answers with no luck and can only seem to find timers that countdown to a set date.
We've got a server-side page (status.php) that dynamically generates a GIF image. The displayed image depends on the value of a boolean field in a database. Just calling the page displays the current value of the boolean, calling it with a parameter switch (status.php?switch) flips the database value and generates a new image. We've included headers to prevent caching of the image by the browser.
Whenever our HTML page is displayed in the browser, we just include an image that shows the current status: img src='status.php'/
We want to allow the user to click the image, which then inverts the boolean status in the database: img src='status.php' onclick='this.src=status.php?switch;'/
This works great in Internet Explorer, but both Mozilla and Opera only allow to switch once. My idea of the problem is that those browsers think like this; after one click, the src is already 'status.php?switch', so changing the src again would be redundent in their eyes, so they won't do it.
We found a temporary solution by generating the current time as a parameter in the image URL: img src='status.php' onclick='this.src=status.php?switch+(new Date());'/ However, this is not a very elegant solution.
Does anyone know a proper solution to this? This means, forcing Mozilla and Opera to load an image using JavaScript, even though the URL of the image didn't change?
I'm building a suite of free php applications to create virtual worlds. My problem is i can't get my file to refresh. Can this be done with javascript? I would like to have the display and the form be on a single page..unless this can be done with frames.
The sample application contains 2 files: a)The php file (with input controls and the embedded world) b)The embedded world (text file)
1. The php file accepts input from the user 2. The user hits Submit which creates the text file for the world this works - the text file is created with changes. next the page should refresh itself and show the world based on the user's input.
Right now steps 1 and 2 work perfectly in the sense that the text file for the world does get created. however the page will still show the older version of the text file.
To get the page to refresh properly, i have to hit the reload button on the browser...this gives me the "this page can't be refreshed without sending..." alert...but it then refreshes and shows the changes.
Inline script.... I got the above code from internet and it is used to change the width of the IMG element. This not only "changes" the width but also "refreshes" the page so that I can see the change in width.
Function script... I moved above inline script to a JS file and it is as follows. Now, 'width' of the IMG element seem to change but display does not get refreshed; and if I add a window.alert( ); then I see screen refreshing Code:
Page1 is the main page and when I click on a link on page a pop up window opens (page2).What I would like to happen is when page2 is closed I would like page1 to be refreshed.
I would like to hide div 2 and three and show only div 1.Than one page refresh I would like to hide div 1 and than show div 2 etc. In this order. So every page refresh would show a different div in the order of 1,2,3 etc.
i have a page with products and i want to auto refresh the page or a <div> in the page , when the admin adds a new product in the DB. So the user will be able to see the to see the product without refresh the page..
I have this script I want to use. I have 2 dropdown lists (which are both connected to mysql database). The second dropdown list is depending on the first dropdown list in order to show items from the database. I can select an item from the first dropdown, but the second remains on its default setting (kies project).Somehow the page doesn't refresh so the second dropdown list will never show items (according to the selection of the first dropdown list).
In this code there is in the option a "onSelect" part but I'm not sure if this should be there, I think it should be an onChange feature, but cant get it right.
hers the site i am working onhttp:/[url].....as you can see on this page.there are two main div(left,right)when a user clicks a link on left div accordingly an external page is loaded in the right div. when you click a link in IE the entire page is refreshed.I don't want to refresh entire page.i want to refresh the div (on the right) not the entire page.How should i go about it. Here's the link to script that i have used http:[url]......
I have a div tag that I want to loop through and refresh at the end of the loop. I understand Ajax is probably the best option for this but how do I refresh just the div tag alone without reloading the page?
In the title I meant to say How do I refresh a div tag without reloading the page?
Is there a way to prevent the user from refreshing/reloading a particular page? Or any way to prevent a particular form from being posted/inserted twice?
I'm unsure if this is a php or javascript problem as I am new to javacript...
I am using a javascript:popup('page.php') command to open a popup box and allow the user to make a few changes to a mysql database. However the values that are changed are displayed on the parent page (the one that the user clicks the popup link on).
Is there a way to refresh the parent page from the popup, so when they submit the form in the popup the parent automatically refreshes with the new values (rather than the user having to manually refresh the page)?