Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8232793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:56:48+00:00 2026-06-07T17:56:48+00:00

well the question is enough explained can it be done. what I am trying

  • 0

well the question is enough explained can it be done.

what I am trying to do is to get data from a popup and onclose I want to send the content I retrieved to a php controller for processing.

But I dont want to use jquery library, because it is creating a conflict for me.

Update

window.onbeforeunload = confirmExit;
function confirmExit()
{        

    var a = document.getElementsByTagName("div");
    for (i = 0; i < a.length; i++) {           
        if(a[i].className == 'Ymacs-frame-content'){
            var b = a[i].getElementsByTagName("div").innerHTML;             
        //alert(b);
        }             
    }

//Ajax should be here

        window.onbeforeunload = reloadOpener;

        if (top.opener && !top.opener.closed) {
            try {
                opener.location.reload(1); 
            }
            catch(e) {  }
            window.close();
        }
    }
    window.ununload=function() {
        reloadOpener();


}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:56:50+00:00Added an answer on June 7, 2026 at 5:56 pm

    You can just use jquery-less AJAX:

    var a = new XMLHttpRequest();
    a.open("GET","myscript.php?var=foo&othervar=bar",true);
    a.onreadystatechange = function() {
        if( this.readyState == 4) {
            if( this.status == 200) {
                // data sent successfully
                // response is in this.responseText
            }
            else alert("HTTP error "+this.status);
        }
    };
    a.send();
    

    Alternatively, you can create an iframe tag and point it to the right page. You can even create a form and post it to the frame if needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully I can articulate my question well enough to get some clear and usable
I hope I can explain the question well enough. I have a table with
I think this explains my question well enough: public class Model { public static
I don't seem to be able to phrase this question well enough to google
Sorry if the title isn't really related to my question well enough, I wasn't
This is probably a really newbie question (well, I'm pretty sure it is), but
Sorry this is not a very well defined question, I am thinking about an
Sorry for the non-technical title, but I think it summarizes my question well. If
As well as my question Removing MKMapView Annotations causes leaks. I have discovered that
I know this question may well be the silliest question you've heard today, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.