Stop Refreshing Automatically

Sep 21, 2005

Is there any way to stop page from automatic refreshing?

I want to give user flexibility to refresh or not to refresh automatically as I am dealing with realtime data.

For automatic refresh I am using meta tag. Is there any way to stop automatic refreshing.

View 1 Replies


ADVERTISEMENT

Automatically Refreshing Parent Window

Jul 20, 2005

Is it possible to (via Javascript) refresh a parent page from a child page.
I have an app that displays a list of items that the user has authority to
change. If the user selects one of the items, another window is opened
containing the details of the item. If the user changes any of the details
of the item I'd like to refresh the original (list) page.

View 1 Replies View Related

Automatically Open Popup Without Refreshing Parent?

Aug 6, 2011

I have the need to create a popup after a delay. The problem I'm getting is that the parent page is refreshing automatically from the action of creating the popup. I don't want the parent page to refresh!

This is what I currently have:

$popupScript = '
<script language="JavaScript">
setTimeout("window.open('index.php?do=renew','Popup1','toolbar=0, width=500, height=500')",' . $delay . ');
</script>';

The page is in php, so that's why I have it as a string, which I later pass to a template page.

This would simply be:

<script language="JavaScript">
setTimeout("window.open('index.php?do=renew','Popup1','toolbar=0, width=500, height=500')",6000);
</script>

... if it was placed straight into the HTML. Incidentally, it's included into the HTML HEAD area, not the body, as the original source of the script suggested: [URL]

$delay is the delay before the popup opens, in microseconds (so 6000 would be 6 seconds).

What can I do to have the same delayed auto-popup functionality, but without it automatically refreshing the parent page where the above code resides?

As some background to what I'm achieving: The issue with not wanting the parent page to refresh is that each time it does, the login session gets extended. The popup itself (which I already have working ok) provides a 'continue working' function, or close and refresh the parent is nothing has been done after a short period.

View 6 Replies View Related

How To Stop Page Refreshing Constantly

Feb 16, 2010

The code below taken from net works as I need it. onLoad It execute another page from a different page, the only trouble is it keeps on refreshing constantly. How can I stop this??? I'm making it into a function and calling it onLoad.

[Code]....

View 5 Replies View Related

Stop Refreshing The Page When Captcha Is Wrong?

Nov 28, 2011

Here's part of the codes I got from our website. Right now, when someone wants to register on our website, they have to put into the Captcha after they finish all the other information. If the captcha is empty, there would be an alert; if it's wrong, the page would be refreshed, and there would be another alert, and at the same time, all the information would be lost and they have to fill them again. Now the question is, how can I stop the page refreshing itself? All I need is an alert and then you could retype the captcha without losing the other information.

<script type="text/javascript">
function ltrim(stringToTrim) {
return stringToTrim.replace(/^s+/,"");
}
function validateForm()
{
var okSoFar=true
[Code]...

View 4 Replies View Related

Stop Refreshing Page When Captcha Is Wrong?

Nov 28, 2011

Here's part of the codes I got from our website. Right now, when someone wants to register on our website, they have to put into the Captcha after they finish all the other information.

If the captcha is empty, there would be an alert; if it's wrong, the page would be refreshed, and there would be another alert, and at the same time, all the information would be lost and they have to fill them again.

Now the question is, how can I stop the page refreshing itself? All I need is an alert and then you could retype the captcha without losing the other information.[code]...

View 3 Replies View Related

Stop Select From Refreshing To First Item On Page Refresh

Apr 7, 2010

I have a selection tag that has a list of dates for data collection, user selects a date and the pages refreshes to display data on a map problem is that the user's selected item in the selection is not preserved during the refresh and the selection drop-down refreshes to the first item of the list. How can I preserve the selected item in the drop-down after page refresh?

View 3 Replies View Related

Refreshing A Div - Refreshing A Div Were For Updating Dropdown Boxes ?

Jun 6, 2009

I have been searching high and low on how to do this and I think I'm at a loss because I'm so unfamiliar with js and ajax.What I would like to do is have just a single div on a page refresh every 5-10 secs; the content of the div shows what users are logged on; the content is generated by a query on my db

<div id="players"><?php
$online_query = "SELECT user_log.user_id,user_log.ip,user_log.logged_in,user_log.logged_out,users.username,users.type_id FROM user_log LEFT JOIN users ON user_log.user_id=users.id WHERE user_log.logged_in IS NOT NULL AND user_log.logged_out IS NULL ORDER BY users.username";[code]....

almost all of the google results I got for refreshing a div were for updating dropdown boxes or dealt with some kind of page event...so now I'm at a loss on what else to look for..

View 3 Replies View Related

Confirm Doesn't Stop On Cancel / Stop It?

Nov 3, 2011

I m trying to make a person stay on same page on cancel, but the confirm takes the user to the next page like they press ok. how can i stop it? code...

View 1 Replies View Related

Add A Stop Button To Stop The Clock?

Oct 19, 2010

How do I add a stop button to stop the clock. Here is my code below.

<HTML>
<HEAD>
<script language="Javascript1.2">
<!--

[Code]....

View 3 Replies View Related

Refreshing Frames

Jul 23, 2005

Let me just start by saying... and I truly do mean this... I HATE frames. Now that I have that out of my system, unfortnualty I do not have a choice and am forced to use the complex structure that I am so SO needing help with. My framesets look like this

---------------------
| title |
|--------------------
| buttons |
|--------------------
| base |
|--------------------

inside the base frame I have ANOTHER frameset... split into frmLeft and frmRight... now if your mind isnt tied into knots... I am sure this will do it... I have a button called 'add category', which is on the buttons frame. When I click the button, I get a popup with the details... I add the category details... then I need the frame titled frmLeft to refresh. Is this possible?

View 1 Replies View Related

Refreshing A Page

Feb 9, 2006

When a user clicks the "Close Panel Manager" link on page2.htm I would like page1.htm to be refreshed without losing the address in browser1/page1.htm. Page2.htm is a child popup from parent window page1.htm.

browser2/page2.htm

<A href="javascript:self.close();">Close Panel Manager</a>

browser1/page1.htm

Address: http://www.somewebsite.com?ID=24

View 1 Replies View Related

Constantly Refreshing In IE

Feb 15, 2010

I'm using this code to force a PHP form to redirect. I already inserted a header for PHP and for whatever reason it's not working. This code works like a dream in Firefox, but it continuously loops in IE and makes it impossible to enter anything into the PHP form

<body onload="javascript: self.location.href = 'index.html';">
</body>

how to make this code not refresh IE literally every second?

View 2 Replies View Related

Possible To Login Without Refreshing?

Nov 14, 2010

How is it possible to login a form using javascript, without refreshing the page?

View 10 Replies View Related

Refreshing Problem

Aug 12, 2004

The user can manipulate a html-document presented in one of the frames, and then choose to save these changes.

After a php-script has saved the changes, it should reload the document using javascript:

parent.location.href="index.php?doc=<?php echo $file ?>";

and thus show the updated version of the document, but unfortunately, it doesn't. To see the changes made I have to refresh the webpage manually with the F5-key.

I'm guessing the browser caches the document, but how do I stop it from doing that?

View 1 Replies View Related

Refreshing Part Of A Page

Feb 15, 2006

Is it possible to refresh only part of a page rather than reload the
entire thing?

I have dropdown box that's populated from a database using ASP that I
need refreshed but I don't want to reload the entire page.

View 6 Replies View Related

Refreshing Two Frames With Only One Click

Jul 20, 2005

I have a web welcome-page consisting of three frames. On the left there is
an index. The two others (above each other on the right of the screen)
contain data related to the index-items.

I'm looking for the possibility to refresh the two related frames when an
index-item in the frame on the left is clicked.

I tried this with the HREF-command but this only works for one frame at the
time.
<a href = "info1.htm" target = right_above>index-item_1</a>
or
<a href = "info2.htm" target = right_under>>index-item_1</a>

Id there a way to solve this in java-script? Or perhaps HTML?

View 4 Replies View Related

JQuery :: Refreshing A Div After Operation?

Jun 27, 2009

http:[url]....but this example has a problem that after a new task has been added by ajax, it does not update the task lists ie suppose i have 2 task in the list now and now i add another one successfully, it showed me the message that 1 task has been added name "foobar" but in task list it still shows 2 tasks not 3.How to update the task list div>ul after the ajax operation Well I tried something like below

$('#submit').click(function(){
var note = $('#wrapper textarea').val();
if(note == defaultText || note == ""){[code].....

View 1 Replies View Related

Div's Not Loading Without Refreshing Browser?

Dec 26, 2008

I have a page with various divs containing SWF's and some HTML and JavaScript. The problem is that, when the page is first visited using IE7, half of the content doesn't appear. So, I have created a loadDivs(); function that looks like this::

Code:

function loadDivs()
{
var mardi2= $('mardiGras');
mardi2.show();

[Code].....

View 6 Replies View Related

How To Change URL Without Refreshing The Page

Jan 27, 2011

My URL is: http://localhost/testproject/product.html#catId=155I want to URL: http://localhost/testproject/product.html without refreshing the page.Is this possible using javascript Or jquery ?

View 3 Replies View Related

Disable Browser From Refreshing?

Feb 18, 2009

Is it possible to disable the browser from refreshing when settings document.location.href

for example here's what i would like to do

if you're at mysite.com you'll click on a link. that link will fire a func that will make the location mysite.com/about however i don't want the browser to refresh. instead i want to write some javascript that will do someother stuff. i know it seems pointless but for the project i am working on it actually make pretty good sense (to me at least LOL).

i don't care about clicking the refresh button or F5 right now. just not having the browser refresh when i change the document.location.

View 1 Replies View Related

Refreshing A Page On Second Or More Visits

Apr 18, 2009

how to refresh a page when it is visited for the second or more times using javascript.

View 1 Replies View Related

Changing URL Without Refreshing Page?

Nov 30, 2010

Im not sure if im going about this the right way but what I'm trying to achieve is to have my webpage seperated into two main div's.The first div contains a media player so it cant be refreshed or the media stops.The second div is used to view content.I've used innerHTML to change the content of the second div from links in the first.The problem is the URL displayed doesn't reflect the change in content of the second divI want to be able to load content into the second div using innerHTML while changing the URL so people can link directly to that content

View 5 Replies View Related

Change URL Without Refreshing The Page?

Jan 27, 2011

My URL is: http://localhost/testproject/product.html#catId=155I want to URL: http://localhost/testproject/product.html without refreshing the page.Is this possible using javascript/jquery or not ?

View 6 Replies View Related

Page Refreshing Issue

Sep 4, 2006

here's a few lines of code I've got in a page that has a php database query in it and I want it to arrive at the anchor link I have called "bottom each time"

<script language="javascript">

function loadPage()
{
location.href = "http://www.mysite.com/help/chat/chat_window.php?theID=<?php echo $id; ?>";
}

</script>

</head>

<body bgcolor="#CCCCCC" onLoad="setTimeout('loadPage()',20000)">

The page has enough data to produce scrollbars. Is there something I'm doing wrong?

View 1 Replies View Related

Refreshing The Parent Window?

May 13, 2010

i had a user.php page. wen i went to this page i can see the list of projects with radio buttons. so wen i select a radio button and click submit the name of the project wil be send to the next page(upload.php) by 'url' i had used get method for that.so in upload.php i can upload files and those files are displayed in table with download link each so if i press download link it wil download that file.everything is fine but here is my problem when i click on download link a popup open(open with, save like that) and the parent window is refreshing and the projectname i am getting by 'URL' is disappearing and the table is empty. with out that projectname i can do nothing.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved