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 8099859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:32:54+00:00 2026-06-05T22:32:54+00:00

Page1 : test.php (open in popup) <script type=text/javascript> function addFiles(aFiles) { if ($(‘#addfiles’).length==0) $(‘#addfiles’).html;

  • 0

Page1 : test.php (open in popup)

<script type="text/javascript">
function addFiles(aFiles) {
if ($('#addfiles').length==0) $('#addfiles').html;
for (var i=0;i<aFiles.length;i++)   $("#addfiles").append(""+aFiles[i].file+"");
                      }
</script>

<?php
$result = "<div id=\"addfiles\"></div>";    (everything works good here, i have only one result)
?>

Page2: results.php (main page , already open)

<input type="texta" name="texta" id="texta" value="<? echo $result; ?>"/> ( i need value=”” to be auto updated with $result when $result have some result without refresh all page.)

Thanks

Edit:

function addFiles(aFiles) {
if ($('#addfiles').length==0) $('#addfiles').html;
for (var i=0;i<aFiles.length;i++) $("#addfiles").append(""+aFiles[0].file+"");
(window.opener.location = 'http://www.example.com/value='+aFiles[0].file+'');
self.close();   
}       

Working great now. Thanks

  • 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-05T22:32:55+00:00Added an answer on June 5, 2026 at 10:32 pm
    <?php 
    if($result) {
        echo '<script language="JavaScript">window.opener.location = "http://example.com/?value='.$result.'");self.close();</script>';
    }
    ?>
    

    Then make the parent window get the value stored in ‘value’ via $_GET['value'] and echo this into the ‘value’ attribute of the input field.

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

Sidebar

Related Questions

I have a page, test.php, with the following code: <html> <body> <form> <script type=text/javascript>
http://steph.net23.net/work.php here is my test link. This page has a jquery script in it
Imagine the following: User goes to script ( http://sample.org/test.php ), Script sends an HTTP
If you open up this page in Chrome it's fine: http://www.dsi-usa.com/test/about.php However in Firefox
I have a very simple test page for PHP session. <?php session_start(); if (isset($_SESSIONS['views']))
How to style the elements dynamic in iteration In test.phtml page <?php foreach($tests =>
I have a contact form i want to use Ajax for. My contact.php script
I'm using Firefox 3.6.6. I have a PHP script called index.php with the following
I am unable to set focus to my php page dc-test.php (this is a
When a test tries to open a page that doesn't load, and the timeout

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.