Steps to reload parent ASPX page from a pop-up window with no security prompts

When I open a popup window using showModalDialog and refresh the parent page upon closing the popup, it triggers an unwanted "Internet Explorer needs to resend the information" prompt. How can I prevent this from happening? (Note: Ajax is not an option in this case).

Thank you.

Answer №1

Are you suggesting "refreshing the parent page" as simply reloading the page from the server?

If it's just a basic GET request, you can try using window.location.reload(true).

If your requirements are more complex, please provide additional details for assistance.

UPDATE:

After reviewing your code snippets, it seems that you are unnecessarily reloading the parent window location in multiple ways. Furthermore, if you accessed the current page through a POST operation (such as a Postback in ASP.Net), calling location.reload() will actually prompt a re-sending of the POST data. This prompts an alert in IE warning about potential duplicate data submission to the server.

Before refreshing the page, is it possible to make a clean request to the parent page without resubmitting prior data? If a simple GET request suffices, consider removing the "doOnClose" function from the popup page and allowing "window.location = window.location" in the parent page to refresh it.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

FileUpload component mistakenly uploading file against intended behavior

Currently, I have a file upload form that utilizes the FileUpload control in asp.net 4.0. Within my upload button's code, I am verifying the submitted file for specific restrictions like so: FileUpload fu = new FileUpload(); if (fu.HasFile) ...

The functionality to disable or enable the note field is contingent on whether the value of the note field is

$(document).on('click', '.update', function() { var user_id = $(this).attr("id"); $.ajax({ url: "fetch_single.php", method: "POST", data: { user_id: user_id }, dataType: "json", success: function(data) { ...

React Native map using Google API, the search bar does not adjust to fit the screen width

This code snippet showcases how React Native Map uses Google Maps API for integration. import React, { useEffect, useState } from 'react'; import { PermissionsAndroid, StyleSheet, View, Dimensions } from 'react-native'; import MapView, ...

Should I go with Plain Web API or Web API along with OData?

Embarking on a new project that involves creating a RESTful service for various clients on different operating systems. Currently researching Web API and OData with Web API and struggling to choose between them. What are the significant advantages and di ...

JavaScript error: forEach is not a function

I've encountered an issue while attempting to loop through a JSON object to extract data. Whenever I run my code, I receive this error: Type Error: element.listing.forEach is not a function. It's worth mentioning that I've used this method ...

The JavaScript window variable is not being returned from an AJAX request without a delay

At the beginning of my script, I set a default value for the name of a kmz file that I need for Google Maps. This value is stored in a window variable. window.kmz="Delaware_River_Basin.kmz" After running an ajax request, I receive the correct value for t ...

transferring double quotation marks and square brackets through a parameter

I have an angularjs (1.x) scope set up as follows: $scope.report = { resource: '/public/emplyACH', params: { "employeeId": [78] } }; When I try to access it using console.log (console.log(scope.parms)) I see the output as ...

Syncing Google Map marker movement with MySQL database updates

I have implemented a Google map that displays positions with movable markers, with latitude and longitude information coming from a database. Now I need to update the database with new latitude and longitude values whenever a marker is moved. Can this be a ...

Error in Angular 2: The app.component.html file triggered an exception at line 1, character 108 due to excessive recursion

After successfully setting up the Angular 2 quickstart and connecting to an express server, I encountered a problem when switching from using the template property to component templateUrl. I have created a Plunker to showcase this issue: Plunker Demo imp ...

Retrieving Book Title using Google Books API and ISBN

As a newcomer to Javascript and React-Native, I am in the process of developing a simple app that scans book barcodes for their ISBN numbers and matches them with their titles. Despite successfully retrieving the ISBN number, I am encountering an issue whe ...

Responsive parent div size adjusting to fit HTML5 video resolution dynamically

I am encountering a challenge with my responsive design website that features an HTML5 video occupying the entire browser width. The video's CSS is set to width:100%;height:auto;, ensuring the video maintains its resolution ratio regardless of the bro ...

Using Wordpress with Gravity Forms Ajax and Swup JS for dynamic form submissions

For page transitions and AJAX content changes, I have implemented swup.js. However, Gravity forms is not properly handling the AJAX request and the form stops working after transitioning. To reinitialize my scripts upon page load, I am using the following ...

Issue with VUE JS: Score not increasing on click event as desired

Greetings! I've been working on a basic game that increments the score by 1 when the user clicks a button. new Vue({ el: '#MyApp', data: { score: '10', }, methods: { ScoreIncre: function(incre) { this.score ...

React: The issue with async and await not functioning as expected when using fetch

I am working with an API on a Node server that returns JSON data like this: {"result":[{"ProductID":1,"ProductName":"iPhone10","ProductDescription":"Latest smartphone from Apple","ProductQuan ...

Discovering the Vertical Dimension of a Web Page Displayed in a Window

Working with an ASP.NET Site that utilizes a single Master Page, I am facing a challenge on one of the pages where I display a PDF file as the main content. I am looking for a solution to determine the appropriate size for the PDF control so that it fits ...

"Learn how to deactivate the submit button while the form is being processed and reactivate it once the process is

I have been searching for solutions to this issue, but none seem to address my specific concern. Here is the HTML in question: <form action=".."> <input type="submit" value="download" /> </form> After submitting the form, it takes a ...

Exploring Node and Express Request Query

I'm struggling with a specific endpoint setup in my code. // GET /api/logs/ app.get('/api/logs', function (req, res) { if (req.query.reverse === true) { res.send((mainModule.logs).reverse()); } else { res.send(mainModule.logs) ...

Prevent users from entering past dates in the date input field

In my project, I have decided to use input type date instead of datepicker. Is there a way to prevent users from selecting back dates in input type date without using datepicker? If you have any suggestions, please let me know. Thank you! ...

Using one payload.js file for all Nuxt static generated routes with identical data

I am facing a challenge with my NuxtJS site where I have only one page /pages/matrix/index.vue but numerous dynamic routes pointing to this page, all utilizing the same data set. During static build generation for deployment on Netlify, the size of the dis ...

Angular 2: Enhancing Tables

I am looking to create a custom table using Angular 2. Here is the desired layout of the table: https://i.sstatic.net/6Mrtf.png I have a Component that provides me with data export class ResultsComponent implements OnInit { public items: any; ngO ...