Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7815283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:28:36+00:00 2026-06-02T05:28:36+00:00

Here is the scenario: I Have 3 files: index.php : <html><head> <script type=text/javascript src=../jquery.js></script>

  • 0

Here is the scenario:

I Have 3 files:

index.php:

<html><head>
<script type="text/javascript" src="../jquery.js"></script>
<script>
    $(document).ready(function(){
        $("#local").load("FarLinkLoader/farlink.php");
    });
</script>
</head><body>
<div id='local'></div>
</body></html>

/FarLinkLoader / farlink.php:

<div>
<a href="farfar/farfarlink.php">farfarlink</a>
</div>

/FarLinkLoader / farfar / farfarlink.php:

text or whatever

The problem is that when the farlink.php is loaded into index.php the link within farlink.php becomes invalid, the reference of the link being from index.php and not from the former file.

Is there anyway around this? iframe was good at this, being actually a “browser” within a browser because the page that was being loaded through iframe had it’s neighbor files/directories referenced from there and not from the page within the former page was loaded as it happens in case of ajax requests.

What are the various possibilities of replacing this desired functionality?

Anticipated thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:28:37+00:00Added an answer on June 2, 2026 at 5:28 am

    I know you’ve said that “absolute URLs are not a solution”, but if all your files reside on the same server, you can use URLs that aren’t relative and aren’t absolute with a stated domain but are absolute to the root of your server and thus would always refer to the same file regardless of what page they are contained in. Just use a preceding “/” character and the full path from the root to each file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my scenario: I have a document, currently a FlowDocument, that I would
I have business scenario as source files (text files) comes to load into SQL
Here is the scenario: I have a directory with 2+ million files. The code
Here is the scenario: In my working directory, I have a number of files
Here's my scenario: I have a set of source files that I'd prefer to
Ok, so here is the scenario: I have an activeX that uploads files using
Here is the scenario, I have two files: 1. dir/A.pm 2. dir/new_dir/a.t This is
Here is the scenario: I have a visual that displays some data The data
Here's the scenario: I have 2 tables with data, one is the 2009 version
Here's the scenario: I have a private site that, once logged on, will display

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.