SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2009
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Trying to load another page w/o refreshing using JS

    Hello,

    A friend and I are trying to fix a site.
    There is a test page: http://wp1.tpninc.com
    If you click on "who we are" - it is supposed to load this page:
    http://wp1.tpninc.com/whowearehtml.html - without refreshing the index page.
    However, it doesn't seem to be working.

    When you load the URL http://wp1.tpninc.com/whowearehtml.html directly on the browser, it does load the entire page as it should. But when you try to load it from the index page by clicking "who we are", it doesn't load completely (just partially).

    It seems there is a JS function that uses location.hash that is supposed to handle this. But as mentioned, it does not seem to be working. And since I'm no JS expert, I'm not even certain that we're looking in the right place.

    I was wondering if one of you guys could help us figure out what might be wrong with the code.

    Thanks in advance for any info.

  2. #2
    SitePoint Member
    Join Date
    Apr 2012
    Location
    Michigan, United States
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, its trying to load the following URL into the page:
    http://wp1.tpninc.com/whoweare?bodyonly=true
    with result 404 - Not Found


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
  •