Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-13-2007, 05:52 PM   PM User | #1
amir103
New Coder

 
Join Date: Aug 2005
Posts: 70
Thanks: 1
Thanked 0 Times in 0 Posts
amir103 is an unknown quantity at this point
How load dynamic content?

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.
amir103 is offline   Reply With Quote
Old 02-13-2007, 07:40 PM   PM User | #2
shyam
Senior Coder

 
shyam's Avatar
 
Join Date: Jul 2005
Posts: 1,563
Thanks: 2
Thanked 163 Times in 160 Posts
shyam will become famous soon enough
these pages mean 2 different windows or one window is popped up from the other?
shyam is offline   Reply With Quote
Old 02-13-2007, 08:49 PM   PM User | #3
neomaximus2k
Regular Coder

 
Join Date: Jan 2007
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
neomaximus2k is an unknown quantity at this point
You would use an AJAX call from the popped open page to the original page to get the content.
__________________
Matthew Bagley
Paramiliar Design Studios
Website Design | Website Development | Search Engine Optimisation (SEO)
neomaximus2k is offline   Reply With Quote
Old 02-14-2007, 03:57 AM   PM User | #4
amir103
New Coder

 
Join Date: Aug 2005
Posts: 70
Thanks: 1
Thanked 0 Times in 0 Posts
amir103 is an unknown quantity at this point
How to load dynamic content

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)
amir103 is offline   Reply With Quote
Old 02-14-2007, 10:06 AM   PM User | #5
neomaximus2k
Regular Coder

 
Join Date: Jan 2007
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
neomaximus2k is an unknown quantity at this point
ok to change things inside the iframe you use the following...

Code:
		frames['I_frame'].document.getElementById(THEID).blah blah blah;
To adjust things from the parent window from within the iframe

Code:
parent.document.getElementById(THEID).blah blah blah
That should help get you started
__________________
Matthew Bagley
Paramiliar Design Studios
Website Design | Website Development | Search Engine Optimisation (SEO)
neomaximus2k is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:37 PM.


Advertisement
Log in to turn off these ads.