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

  • SEARCH
  • Home
  • 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 8339125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:47:51+00:00 2026-06-09T04:47:51+00:00

Im working on a dynamic paging website (Essentially clicking a link and it loads

  • 0

Im working on a dynamic paging website (Essentially clicking a link and it loads the content without a page-refresh (ajax).

My problem is when I got example.com/first/second it messes up the javascript and css directories (as the browser can’t find those since it’s doing /first/example.css and not /example.css). I tried doing:

    $Dots = $_SERVER['DOCUMENT_ROOT'];

And adding that before the link to my css/javascript. This didn’t work, so what can I do?

  • 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-09T04:47:53+00:00Added an answer on June 9, 2026 at 4:47 am

    set the absolute path to the css file

    /path/to/css_file.css (note the slash beore path)

    you should do the same thing for the javascript files

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

Sidebar

Related Questions

im working on a website system its dynamic with javascript/jquery/ajax so i dont know
I am working on a dynamic search view wherein clicking a button should add
I have been working on a dynamic page http://www.euroworker.no/order and I want my lovely
Thanks to some help I received yesterday I've got some dynamic summing working on
Following is a Paging enabled Query for SQL server, it is working well without
I have a working dynamic TableLayout that holds user data. Clicking an Add Event
I am working on dynamic page where height of the page is concern. So,
I am working on dynamic page. Using {$pagetitle} smarty tag I get selectbox something
I was working on adding dynamic controls to asp page. In the sample code,
I'm working on a dynamic website in Java and I'm interested in sticking with

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.