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 8522155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:02:10+00:00 2026-06-11T07:02:10+00:00

I am using extjs4 to build a webapp that resides within drupal. Many of

  • 0

I am using extjs4 to build a webapp that resides within drupal.
Many of my ajax calls are to menu items in a module within drupal.
The images my css directs to sometimes reside within my extjs folder, and sometimes in drupal.

A coworker insists that relative paths that use ‘../dir_a/’ are bad design, and are prone to risks.

Is this correct?
Is there another way?

My folder structure:

- drupal
   - v2 (extjs home folder)
      - css
      - extjs
   - sites
      - mySite
          - modules
              - webApp

My css files contain calls like these:

.x-action-col-cell img.restart-test-icon {
    background-image: url(../extjs/examples/sandbox/images/gears.png);
}

My applications has calls like these:

Ext.Ajax.request({
   url: '../webapp/tests/create/',
   method: 'Post'
});

Edit: Commenters have asked for clarification.
The coworker’s two main issue with this are:
1. “If the server side code will generate an address like /a/b/c without a trailing / you might have a situation where you get /a/b/c../d“
True? This sounds more like a server side problem.
2. “Have you seen anyone else using it?”
Which in my opinion is a very poor way to decide anything.
But I went ahead and tested some JS intensive sites (gmail, aws), using firebug and found no use of ../ in their JS or CSS.
Can anyone help me back up my claim that it’s perfectly OK?

  • 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-11T07:02:11+00:00Added an answer on June 11, 2026 at 7:02 am

    a. “If the server side code will generate an address like /a/b/c without a trailing / you might have a situation where you get
    /a/b/c../d” True? This sounds more like a server side problem.

    I can’t think of any problem, if paths are well configured in your files.

    b. “Have you seen anyone else using it?” Which in my opinion is a very poor way to decide anything.

    It is a poor way, indeed (1). I tried the first website available (stackoverflow.com), see all.css included in this page:

    .review-diff-bar .review-diff-bar-helper {
        background: url("../Img/diff-icons/full-html-diff.png") no-repeat scroll 0 0 transparent;
        ...
    }
    
    .openid-identifier {
        background: url("../img/openid-large.png") no-repeat scroll left center transparent;
        ...
    }
    

    this is a css, but the same applies to js files.

    (1) info about fallacies like this one: http://www.fallacyfiles.org/ignorant.html

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

Sidebar

Related Questions

I'm working with ExtJS4 and trying to build a search feature using a form.
I am using ExtJS to build a window containing several panels as items. One
I've built an app that is using ExtJS that connects through Ajax requests to
i'm using extjs4 store In xhtpp calls it shows the http://localhost/home_dir/index.php/questions/content_pie?_dc=1312366604831&hi=&page=1&start=0&limit=25 This is the
I am working on extjs4, my case is: Extjs mvc is used to build
I'm facing a problem using ExtJS4. My application has a tree containing a string
I'm using ExtJS to make a form that generates a report from the data
im using extjs4 with dwr3 to upload a file this is all i have
I am using ExtJs4.I have a form in my web application in which there
I am using EXTJS4. I have a tree which displays classes (classname) on one

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.