Results 1 to 3 of 3

Thread: Ajax Dynamic Content Not Loading

  1. #1
    Join Date
    May 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Ajax Dynamic Content Not Loading

    1) Script Title: Dynamic Ajax Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem:

    Hey guys I'm using this script on my webpage...
    http://derrickbarra.com

    In order to dynamically load up my navigation.html webpage, which appears on all pages except for my splash page. It should be on the top right side of the page (absolutely positioned).

    When I created this page in dreamweaver it tested fine locally but now that its online its not showing up. I've checked to make sure nothing is pointing to a local address.

    The script I'm using should automatically load the navigation.html page when the page is loaded.

    The code that loads the navigation page is below.
    <script type="text/javascript">
    ajaxpage('navigation.html;', 'NavigationWrapper')
    </script>

    The div that contains the navigation.html is the same size as the wrapper containing the contents of navigation.html.

    For reference heres what navigation.html looks like when working properly.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,496
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    On resume.html this:

    Code:
    <script type="text/javascript">
    ajaxpage('navigation.html;', 'NavigationWrapper')
    </script>
    comes before this:

    HTML Code:
      <div id="NavigationWrapper" class="NavigationWrapper">
     
      </div>
    So, even if it didn't have the highlighted syntax error, it wouldn't work.

    Move it to after the target division and correct the syntax error (remove the semi-colon).
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Derrick Barra (05-12-2010)

  4. #3
    Join Date
    May 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks so much! I was unaware that the script had to be called after the div was created (makes sense in normal programming, didn't realize that was the way it worked in html).

Bookmarks

Posting Permissions

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