Update Popup Opener without postpack

Posted on 2008-11-13
Last Modified: 2013-12-17
I would like to update a popup opener without sending a postback on the window.opener.
Right now im doing it like the code below but its causing some problems on my window.opener when i postback. So i want to assign a value to txtAccount without a postback on the opener, something like AJAX. im failing to apply it in this senario.
opener.document.getElementById("txtAccount").value = value1;

Thank you
Question by:dawie
    LVL 6

    Expert Comment

    please post the code for the page that is the parent page and the code for the child page. Also post any javascript errors you are seeing in the browser (if using IE, look for the little yellow icon in bottom left of window)

    Author Comment

    Its not giving error messages, its just the behaviour that i dont like, the flickering, i have seen other web apps  which dont use postback on updating the opener, sort of ajax updating. It this line which i dont like:
    i dont know if u still want me to send you my code. Just let me know.
    LVL 6

    Accepted Solution

    I would recommend looking at the jQuery javascript library ( for implementing an ajax solution. I use their library for ajax, screen effect, user interface - all kinds of stuff.

    Here is the ajax API:

    And here are great examples and overview of using ajax in jquery (examples should help you build a function to submit the form in your parent window)

    If you need specific help, you'd have to post all your code here.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now