How to put data from Pop Up to main page?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
MicroBoy
Forum Contributor
Posts: 112
Joined: Sat Mar 14, 2009 5:16 pm

How to put data from Pop Up to main page?

Post by MicroBoy »

I have a pop-up to search members, when I found one I like to put data to the form in the main page, I use PHP. Maybe this can work just with javascrip...? but I don't know so I asked here.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: How to put data from Pop Up to main page?

Post by pickle »

You can change the URL of the main page, and otherwise affect the main page by referencing window.opener(), or maybe window.parent() - I think there's a few different ways.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
MicroBoy
Forum Contributor
Posts: 112
Joined: Sat Mar 14, 2009 5:16 pm

Re: How to put data from Pop Up to main page?

Post by MicroBoy »

If you think by using $_GET via url in php I don't like to use it now, I saw in phpBB in admin panel you can select a member in a pop-up and his name will appear in the main page without needing to reload page or etc... I will look in google for window.opener() I hope that this will help me.
Post Reply