Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2005, 06:05 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default window.location.reload(false);

Code:
function refresh()
{
    window.location.reload(false);
}
i have this function that i use on a onClick. is there anyway to bypass the preceeding 'retry' button
(a message box asking you if you want to send the information again. the "Retry" button) or automatically click it?

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
www.piccosmini.co.uk.tt
www.morton.uk.tt
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old July 12th, 2005, 10:40 PM
Registered User
 
Join Date: Jul 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

function refresh()
{
    var sflag = false;
    sflag = confirm("Are you ready?");
    if (sflag == false)
    {
        return false;
    }
    window.location.reload(false);
}
 
Old September 4th, 2008, 04:21 AM
Registered User
 
Join Date: Sep 2008
Location: hyderabad, ap, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

there are 2 options to bypass this.
1. instead of window.reload use window.location = "ur location";
2. if u r using reload method then u've to use a simple hack.

cheers





Similar Threads
Thread Thread Starter Forum Replies Last Post
parent.location.reload() not working in FireFox AbrarNazeer Javascript 3 February 25th, 2008 05:35 AM
parent.location.reload() issue in FireFox AbrarNazeer Javascript 1 February 21st, 2008 09:07 AM
Browser window: Specifying the size and location? asearle HTML Code Clinic 2 November 22nd, 2007 08:50 AM
window.location crmpicco Javascript 1 July 7th, 2005 08:55 AM
Window Size and DIV location TSEROOGY Javascript 6 August 30th, 2004 10:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.