View Full Version : How load dynamic content?

02-13-2007, 05:52 PM
What I'm trying to achieve is, to have a page with dynamic content which can be toggled on and off without refreshing the page. The problem is, that content needs to be toggled on and off by another page. Both pages are opened at the same time, and one controls if the other should display some certain content or not. It doesn't have to strictly be in javascript, but I assumed the solution might use javascript.

02-13-2007, 07:40 PM
these pages mean 2 different windows or one window is popped up from the other?

02-13-2007, 08:49 PM
You would use an AJAX call from the popped open page to the original page to get the content.

02-14-2007, 03:57 AM
One of the pages will be 'inside' the other by the use of an Iframe, i've tried many dynamic content scripts (written in ajax), and can never manage to get the page trapped inside the iframe to control content in the page with the iframe. How can I use ajax to do this (i've tried but unsuccessful)

02-14-2007, 10:06 AM
ok to change things inside the iframe you use the following...

frames['I_frame'].document.getElementById(THEID).blah blah blah;

To adjust things from the parent window from within the iframe

parent.document.getElementById(THEID).blah blah blah

That should help get you started