Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    70
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    these pages mean 2 different windows or one window is popped up from the other?

  • #3
    Regular Coder
    Join Date
    Jan 2007
    Posts
    213
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)

  • #4
    New Coder
    Join Date
    Aug 2005
    Posts
    70
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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)

  • #5
    Regular Coder
    Join Date
    Jan 2007
    Posts
    213
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •