Jump to content


This topic is now archived and is closed to further replies.


accessing a varibles.

Recommended Posts

i'm pretty good with JS and PHP. i want to beable to access my PHP/MySQL data with out the browser reloading a page. my idea was to have a link that will pop a small window which will access the php and mysql data and then pass that back to the window which it was poped from.

but i haven't got a clue how to pass data between to web browser windows. i sure it can be done. i think ive seen a script at does it for something else.

plz help


code for frames will do as well

Share this post

Link to post
Share on other sites
Use ajax to communicate with the server without a page refresh. Refer to [a href=\"http://www.ajaxfreaks.com\" target=\"_blank\"]http://www.ajaxfreaks.com[/a] for some tutorials. I think that is the best way to do what you are wanting.

However, if you want to communicate with an opened window:

[code]var win = window.open(url);[/code]

Then, manipulate the dom and variables just like you would in the current window, just put win in front...

[code]win.getElementById('mydiv').style.display = "none";[/code]

and so on.

From the opened window, you can control the opening window using window.opener in the same manner.

Do a google search and you will find a wealth of info. [a href=\"http://www.w3schools.com\" target=\"_blank\"]http://www.w3schools.com[/a] has quite a bit as well.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.