Jump to content


accessing a varibles.

  • Please log in to reply
1 reply to this topic

#1 davidja

  • Members
  • Pip
  • Newbie
  • 8 posts

Posted 19 March 2006 - 12:04 PM

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

#2 hitman6003

  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 19 March 2006 - 10:14 PM

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:

var win = window.open(url);

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

win.getElementById('mydiv').style.display = "none";

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users